equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <MVPbkFieldType.h> |
19 #include <MVPbkFieldType.h> |
20 #include <MVPbkContactFieldTextData.h> |
20 #include <MVPbkContactFieldTextData.h> |
21 |
21 #include <mmfcontrollerpluginresolver.h> |
22 #include "singlecontact.h" |
22 #include "singlecontact.h" |
23 #include "singlecontactfield.h" |
23 #include "singlecontactfield.h" |
24 |
24 |
25 /* |
25 /* |
26 ----------------------------------------------------------------------------- |
26 ----------------------------------------------------------------------------- |
141 iidArray = aValue; |
141 iidArray = aValue; |
142 } |
142 } |
143 |
143 |
144 EXPORT_C void CSingleContactField::GetUriFieldParamL(RPointerArray<HBufC>& axspidArray) |
144 EXPORT_C void CSingleContactField::GetUriFieldParamL(RPointerArray<HBufC>& axspidArray) |
145 { |
145 { |
|
146 CleanupResetAndDestroyPushL(axspidArray); |
146 TInt count = iidArray.Count(); |
147 TInt count = iidArray.Count(); |
147 if(count != 0) |
148 if(count != 0) |
148 { |
149 { |
149 |
150 |
150 for(TInt i=0;i<count;i++) |
151 for(TInt i=0;i<count;i++) |
153 } |
154 } |
154 } |
155 } |
155 else |
156 else |
156 { |
157 { |
157 User::Leave(KErrNotFound); |
158 User::Leave(KErrNotFound); |
158 } |
159 } |
|
160 CleanupStack::Pop(&axspidArray); |
159 } |
161 } |
160 |
162 |
161 //Gets the Group Data and returns them as output parameters |
163 //Gets the Group Data and returns them as output parameters |
162 /* |
164 /* |
163 ----------------------------------------------------------------------------- |
165 ----------------------------------------------------------------------------- |
231 } |
233 } |
232 |
234 |
233 |
235 |
234 EXPORT_C void CSingleContactField::GetXspidDataL(RPointerArray<HBufC>& axspidArray) |
236 EXPORT_C void CSingleContactField::GetXspidDataL(RPointerArray<HBufC>& axspidArray) |
235 { |
237 { |
|
238 CleanupResetAndDestroyPushL(axspidArray); |
236 TInt count = iArrayValue.Count(); |
239 TInt count = iArrayValue.Count(); |
237 if(count != 0) |
240 if(count != 0) |
238 { |
241 { |
239 |
242 |
240 for(TInt i=0;i<count;i++) |
243 for(TInt i=0;i<count;i++) |
245 } |
248 } |
246 } |
249 } |
247 else |
250 else |
248 { |
251 { |
249 User::Leave(KErrNotFound); |
252 User::Leave(KErrNotFound); |
250 } |
253 } |
|
254 CleanupStack::Pop(&axspidArray); |
251 } |
255 } |
252 CSingleContactField::~CSingleContactField() |
256 CSingleContactField::~CSingleContactField() |
253 { |
257 { |
254 delete iFieldKey; |
258 delete iFieldKey; |
255 delete iLabel; |
259 delete iLabel; |