|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: CNcdPreminetProtocolSkin definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ncd_pp_skinimpl.h" |
|
20 #include "ncdprotocolutils.h" |
|
21 #include "catalogsdebug.h" |
|
22 |
|
23 CNcdPreminetProtocolSkin* CNcdPreminetProtocolSkin::NewL() |
|
24 { |
|
25 CNcdPreminetProtocolSkin* self = new (ELeave) CNcdPreminetProtocolSkin; |
|
26 CleanupStack::PushL( self ); |
|
27 self->ConstructL(); |
|
28 CleanupStack::Pop( self ); |
|
29 return self; |
|
30 } |
|
31 |
|
32 CNcdPreminetProtocolSkin* CNcdPreminetProtocolSkin::NewLC() |
|
33 { |
|
34 CNcdPreminetProtocolSkin* self = new (ELeave) CNcdPreminetProtocolSkin; |
|
35 CleanupStack::PushL( self ); |
|
36 self->ConstructL(); |
|
37 return self; |
|
38 } |
|
39 |
|
40 CNcdPreminetProtocolSkin::CNcdPreminetProtocolSkin() |
|
41 { |
|
42 } |
|
43 |
|
44 void CNcdPreminetProtocolSkin::ConstructL() |
|
45 { |
|
46 NcdProtocolUtils::AssignEmptyDesL( iId ); |
|
47 NcdProtocolUtils::AssignEmptyDesL( iTimestamp ); |
|
48 NcdProtocolUtils::AssignEmptyDesL( iUri ); |
|
49 } |
|
50 |
|
51 CNcdPreminetProtocolSkin::~CNcdPreminetProtocolSkin() |
|
52 { |
|
53 delete iId; |
|
54 delete iTimestamp; |
|
55 delete iUri; |
|
56 } |
|
57 |
|
58 const TDesC& CNcdPreminetProtocolSkin::Id() const |
|
59 { |
|
60 DASSERT( iId ); |
|
61 return *iId; |
|
62 } |
|
63 |
|
64 const TDesC& CNcdPreminetProtocolSkin::Timestamp() const |
|
65 { |
|
66 DASSERT( iTimestamp ); |
|
67 return *iTimestamp; |
|
68 } |
|
69 |
|
70 const TDesC& CNcdPreminetProtocolSkin::Uri() const |
|
71 { |
|
72 DASSERT( iUri ); |
|
73 return *iUri; |
|
74 } |