|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "ncd_cp_detailimpl.h" |
|
20 #include "ncdprotocolutils.h" |
|
21 #include "catalogsdebug.h" |
|
22 |
|
23 CNcdConfigurationProtocolContentImpl* CNcdConfigurationProtocolContentImpl::NewL() |
|
24 { |
|
25 CNcdConfigurationProtocolContentImpl* self = new(ELeave) |
|
26 CNcdConfigurationProtocolContentImpl(); |
|
27 CleanupStack::PushL( self ); |
|
28 self->ConstructL(); |
|
29 CleanupStack::Pop( self ); |
|
30 return self; |
|
31 } |
|
32 |
|
33 CNcdConfigurationProtocolContentImpl* CNcdConfigurationProtocolContentImpl::NewLC() |
|
34 { |
|
35 CNcdConfigurationProtocolContentImpl* self = |
|
36 new (ELeave) CNcdConfigurationProtocolContentImpl(); |
|
37 CleanupStack::PushL(self); |
|
38 self->ConstructL(); |
|
39 return self; |
|
40 } |
|
41 |
|
42 |
|
43 void CNcdConfigurationProtocolContentImpl::ConstructL() |
|
44 { |
|
45 DLTRACEIN(("")); |
|
46 NcdProtocolUtils::AssignEmptyDesL( iKey ); |
|
47 NcdProtocolUtils::AssignEmptyDesL( iValue ); |
|
48 NcdProtocolUtils::AssignEmptyDesL( iContent ); |
|
49 DLTRACEOUT(("")); |
|
50 } |
|
51 |
|
52 CNcdConfigurationProtocolContentImpl::~CNcdConfigurationProtocolContentImpl() |
|
53 { |
|
54 DLTRACEIN(("")); |
|
55 delete iKey; |
|
56 delete iValue; |
|
57 delete iContent; |
|
58 DLTRACEOUT(("")); |
|
59 } |
|
60 |
|
61 const TDesC& CNcdConfigurationProtocolContentImpl::Key() const |
|
62 { |
|
63 return *iKey; |
|
64 } |
|
65 |
|
66 const TDesC& CNcdConfigurationProtocolContentImpl::Value() const |
|
67 { |
|
68 return *iValue; |
|
69 } |
|
70 |
|
71 const TDesC& CNcdConfigurationProtocolContentImpl::Content() const |
|
72 { |
|
73 return *iContent; |
|
74 } |
|
75 |
|
76 CNcdConfigurationProtocolDetailImpl* CNcdConfigurationProtocolDetailImpl::NewL() |
|
77 { |
|
78 CNcdConfigurationProtocolDetailImpl* self = new(ELeave) |
|
79 CNcdConfigurationProtocolDetailImpl(); |
|
80 CleanupStack::PushL( self ); |
|
81 self->ConstructL(); |
|
82 CleanupStack::Pop( self ); |
|
83 return self; |
|
84 } |
|
85 |
|
86 CNcdConfigurationProtocolDetailImpl* CNcdConfigurationProtocolDetailImpl::NewLC() |
|
87 { |
|
88 CNcdConfigurationProtocolDetailImpl* self = |
|
89 new (ELeave) CNcdConfigurationProtocolDetailImpl(); |
|
90 CleanupStack::PushL(self); |
|
91 self->ConstructL(); |
|
92 return self; |
|
93 } |
|
94 |
|
95 |
|
96 void CNcdConfigurationProtocolDetailImpl::ConstructL() |
|
97 { |
|
98 DLTRACEIN(("")); |
|
99 NcdProtocolUtils::AssignEmptyDesL( iId ); |
|
100 NcdProtocolUtils::AssignEmptyDesL( iValue ); |
|
101 NcdProtocolUtils::AssignEmptyDesL( iGroupId ); |
|
102 NcdProtocolUtils::AssignEmptyDesL( iLabel ); |
|
103 DLTRACEOUT(("")); |
|
104 } |
|
105 |
|
106 CNcdConfigurationProtocolDetailImpl::~CNcdConfigurationProtocolDetailImpl() |
|
107 { |
|
108 DLTRACEIN(("")); |
|
109 delete iId; |
|
110 delete iValue; |
|
111 delete iGroupId; |
|
112 delete iLabel; |
|
113 iDetails.ResetAndDestroy(); |
|
114 iContents.ResetAndDestroy(); |
|
115 DLTRACEOUT(("")); |
|
116 } |
|
117 |
|
118 const TDesC& CNcdConfigurationProtocolDetailImpl::Id() const |
|
119 { |
|
120 return *iId; |
|
121 } |
|
122 |
|
123 const TDesC& CNcdConfigurationProtocolDetailImpl::Value() const |
|
124 { |
|
125 return *iValue; |
|
126 } |
|
127 |
|
128 const TDesC& CNcdConfigurationProtocolDetailImpl::GroupId() const |
|
129 { |
|
130 return *iGroupId; |
|
131 } |
|
132 |
|
133 const TDesC& CNcdConfigurationProtocolDetailImpl::Label() const |
|
134 { |
|
135 return *iLabel; |
|
136 } |
|
137 |
|
138 const RPointerArray<MNcdConfigurationProtocolDetail>& CNcdConfigurationProtocolDetailImpl::Details() const |
|
139 { |
|
140 return iDetails; |
|
141 } |
|
142 |
|
143 const RPointerArray<MNcdConfigurationProtocolContent>& CNcdConfigurationProtocolDetailImpl::Contents() const |
|
144 { |
|
145 return iContents; |
|
146 } |