author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 27 Aug 2009 07:43:07 +0300 | |
changeset 22 | fc9cf246af83 |
parent 19 | 989d2f495d90 |
child 33 | 50974a8b132e |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2002 - 2007 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 the License "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 |
||
20 |
||
21 |
// INCLUDE FILES |
|
22 |
#include <e32svr.h> |
|
23 |
#include <StifParser.h> |
|
24 |
#include <Stiftestinterface.h> |
|
25 |
#include "tContact_edit.h" |
|
26 |
||
27 |
// EXTERNAL DATA STRUCTURES |
|
28 |
//extern ?external_data; |
|
29 |
||
30 |
// EXTERNAL FUNCTION PROTOTYPES |
|
31 |
//extern ?external_function( ?arg_type,?arg_type ); |
|
32 |
||
33 |
// CONSTANTS |
|
34 |
//const ?type ?constant_var = ?constant; |
|
35 |
||
36 |
// MACROS |
|
37 |
//#define ?macro ?macro_def |
|
38 |
||
39 |
// LOCAL CONSTANTS AND MACROS |
|
40 |
//const ?type ?constant_var = ?constant; |
|
41 |
//#define ?macro_name ?macro_def |
|
42 |
||
43 |
// MODULE DATA STRUCTURES |
|
44 |
//enum ?declaration |
|
45 |
//typedef ?declaration |
|
46 |
||
47 |
// LOCAL FUNCTION PROTOTYPES |
|
48 |
//?type ?function_name( ?arg_type, ?arg_type ); |
|
49 |
||
50 |
// FORWARD DECLARATIONS |
|
51 |
//class ?FORWARD_CLASSNAME; |
|
52 |
||
53 |
// ============================= LOCAL FUNCTIONS =============================== |
|
54 |
||
55 |
// ----------------------------------------------------------------------------- |
|
56 |
// ?function_name ?description. |
|
57 |
// ?description |
|
58 |
// Returns: ?value_1: ?description |
|
59 |
// ?value_n: ?description_line1 |
|
60 |
// ?description_line2 |
|
61 |
// ----------------------------------------------------------------------------- |
|
62 |
// |
|
63 |
/* |
|
64 |
?type ?function_name( |
|
65 |
?arg_type arg, // ?description |
|
66 |
?arg_type arg) // ?description |
|
67 |
{ |
|
68 |
||
69 |
?code // ?comment |
|
70 |
||
71 |
// ?comment |
|
72 |
?code |
|
73 |
} |
|
74 |
*/ |
|
75 |
||
76 |
TInt handlerror_cnt,handleiter_cnt; |
|
77 |
||
78 |
//HBufC8 *contactid ; |
|
79 |
TBuf8<100> contactid; |
|
80 |
CSingleContact* myContact=NULL; |
|
81 |
||
82 |
||
83 |
||
84 |
void CContactCallback::HandleReturnValue( TOperationEvent aEventId, const TInt& aError, TInt aTransId ) |
|
85 |
{ |
|
86 |
||
87 |
CActiveScheduler::Stop(); |
|
88 |
iError= aError ; |
|
89 |
} |
|
90 |
||
91 |
||
92 |
void CContactCallback:: HandleReturnIter( const TInt& aError, CContactIter* aIter, TInt aTransId ) |
|
93 |
{ |
|
94 |
||
95 |
||
96 |
CActiveScheduler::Stop(); |
|
97 |
||
98 |
CSingleContactField* field = NULL; |
|
99 |
HBufC8* cntMyBuf = NULL; |
|
100 |
HBufC8* tmpid; |
|
101 |
HBufC8* buf = NULL; |
|
102 |
||
103 |
TInt count=0 ; |
|
104 |
||
105 |
||
106 |
if(aError==KErrNone) |
|
107 |
{ |
|
108 |
aIter->NextL(myContact,cntMyBuf); |
|
109 |
||
110 |
if(myContact) |
|
111 |
{ |
|
112 |
||
113 |
CleanupStack::PushL(myContact); |
|
114 |
//CleanupStack::PushL(cntMyBuf); |
|
115 |
||
116 |
contactid = *cntMyBuf; |
|
117 |
||
118 |
CleanupStack::Pop(myContact); |
|
119 |
||
120 |
} |
|
121 |
||
122 |
} //if |
|
123 |
||
124 |
delete aIter; |
|
125 |
||
126 |
} |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
127 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
128 |
void CContactCallback::HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ) |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
129 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
130 |
CActiveScheduler::Stop(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
131 |
} |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
132 |
|
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
133 |
void CContactCallback::HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ) |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
134 |
{ |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
135 |
CActiveScheduler::Stop(); |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
136 |
} |
19 | 137 |
|
138 |
// ============================ MEMBER FUNCTIONS =============================== |
|
139 |
||
140 |
// ----------------------------------------------------------------------------- |
|
141 |
// Ctdeleteadd::Delete |
|
142 |
// Delete here all resources allocated and opened from test methods. |
|
143 |
// Called from destructor. |
|
144 |
// ----------------------------------------------------------------------------- |
|
145 |
// |
|
146 |
void Ctdeleteadd::Delete() |
|
147 |
{ |
|
148 |
||
149 |
} |
|
150 |
||
151 |
// ----------------------------------------------------------------------------- |
|
152 |
// Ctdeleteadd::RunMethodL |
|
153 |
// Run specified method. Contains also table of test mothods and their names. |
|
154 |
// ----------------------------------------------------------------------------- |
|
155 |
// |
|
156 |
TInt Ctdeleteadd::RunMethodL( |
|
157 |
CStifItemParser& aItem ) |
|
158 |
{ |
|
159 |
||
160 |
static TStifFunctionInfo const KFunctions[] = |
|
161 |
{ |
|
162 |
// Copy this line for every implemented function. |
|
163 |
// First string is the function name used in TestScripter script file. |
|
164 |
// Second is the actual implementation member function. |
|
165 |
||
166 |
ENTRY( "Edit_Test1", Ctdeleteadd::Edit_Test1L ), |
|
167 |
ENTRY( "Edit_Test2", Ctdeleteadd::Edit_Test2L ), |
|
168 |
ENTRY( "Edit_Test3", Ctdeleteadd::Edit_Test3L ), |
|
169 |
ENTRY( "Edit_Test4", Ctdeleteadd::Edit_Test4L ), |
|
170 |
ENTRY( "Edit_Test5", Ctdeleteadd::Edit_Test5L ), |
|
171 |
ENTRY( "Edit_Test6", Ctdeleteadd::Edit_Test6L ), |
|
172 |
ENTRY( "Edit_Test7", Ctdeleteadd::Edit_Test7L ), |
|
173 |
ENTRY( "Edit_Test8", Ctdeleteadd::Edit_Test8L ), |
|
174 |
ENTRY( "Edit_Test9", Ctdeleteadd::Edit_Test9L ), |
|
175 |
ENTRY( "Edit_Test10", Ctdeleteadd::Edit_Test10L ), |
|
176 |
ENTRY( "Edit_Test11", Ctdeleteadd::Edit_Test11L ), |
|
177 |
ENTRY( "Edit_Test12", Ctdeleteadd::Edit_Test12L ), |
|
178 |
||
179 |
}; |
|
180 |
||
181 |
const TInt count = sizeof( KFunctions ) / |
|
182 |
sizeof( TStifFunctionInfo ); |
|
183 |
||
184 |
return RunInternalL( KFunctions, count, aItem ); |
|
185 |
||
186 |
} |
|
187 |
||
188 |
||
189 |
||
190 |
/* Editing a contact */ |
|
191 |
TInt Ctdeleteadd::Edit_Test1L( CStifItemParser& aItem ) |
|
192 |
{ |
|
193 |
||
194 |
TInt flag = 0 ,count; |
|
195 |
// Print to UI |
|
196 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
197 |
_LIT( KExample, "In Example" ); |
|
198 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
199 |
// Print to log file |
|
200 |
iLog->Log( KExample ); |
|
201 |
||
202 |
_LIT8(KFirstName1,"FirstName"); |
|
203 |
_LIT(KName1,"ABCDEFG"); |
|
204 |
||
205 |
||
206 |
_LIT8(KFirstName,"FirstName"); |
|
207 |
_LIT(KName,"Anitha"); |
|
208 |
_LIT(KFirst,"First Name"); |
|
209 |
aItem.GetNextInt(count) ; |
|
210 |
||
211 |
//instantiate service class object |
|
212 |
||
213 |
/* create contactitem with invalid fieldname "FrstName */ |
|
214 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
215 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
216 |
||
217 |
||
218 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
219 |
singleContact->AddFieldToContactL(singleContactField); |
|
220 |
||
221 |
||
222 |
/* Add the contactitem */ |
|
223 |
aItem.GetNextInt(count) ; |
|
224 |
icontactservice->AddL(icallback,0,singleContact); |
|
225 |
CActiveScheduler::Start(); |
|
226 |
||
227 |
/* get the contactid of any contact from phonebook */ |
|
228 |
icontactservice->GetListL(icallback,1,EContacts); |
|
229 |
CActiveScheduler::Start(); |
|
230 |
||
231 |
myContact->RemoveAllFields(); |
|
232 |
||
233 |
||
234 |
||
235 |
singleContactField->SetFieldParamsL(KFirstName1,KNullDesC,KName1); |
|
236 |
myContact->AddFieldToContactL(singleContactField); |
|
237 |
||
238 |
//aItem.GetNextInt(count) ; |
|
239 |
icontactservice->AddL(icallback,0,myContact); |
|
240 |
CActiveScheduler::Start(); |
|
241 |
||
242 |
/* check whether Add api returns the expected error code */ |
|
243 |
if(count == icallback->iError) |
|
244 |
return KErrNone ; |
|
245 |
||
246 |
return KErrNone ; |
|
247 |
||
248 |
} |
|
249 |
||
250 |
TInt Ctdeleteadd::Edit_Test2L( CStifItemParser& aItem ) |
|
251 |
{ |
|
252 |
||
253 |
TInt flag = 0 ,count; |
|
254 |
// Print to UI |
|
255 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
256 |
_LIT( KExample, "In Example" ); |
|
257 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
258 |
// Print to log file |
|
259 |
iLog->Log( KExample ); |
|
260 |
||
261 |
_LIT8(KMobilePhoneHome,"MobilePhoneHome"); |
|
262 |
_LIT(KPhone,"123456"); |
|
263 |
||
264 |
aItem.GetNextInt(count) ; |
|
265 |
||
266 |
||
267 |
_LIT8(KFirstName,"FirstName"); |
|
268 |
_LIT(KName,"Edit_test2"); |
|
269 |
_LIT(KFirst,"First Name"); |
|
270 |
||
271 |
||
272 |
//instantiate service class object |
|
273 |
||
274 |
/* create contactitem with invalid fieldname "FrstName */ |
|
275 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
276 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
277 |
||
278 |
||
279 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
280 |
singleContact->AddFieldToContactL(singleContactField); |
|
281 |
||
282 |
||
283 |
/* Add the contactitem */ |
|
284 |
aItem.GetNextInt(count) ; |
|
285 |
icontactservice->AddL(icallback,0,singleContact); |
|
286 |
CActiveScheduler::Start(); |
|
287 |
/* get the contactid of any contact from phonebook */ |
|
288 |
icontactservice->GetListL(icallback,1,EContacts); |
|
289 |
CActiveScheduler::Start(); |
|
290 |
||
291 |
||
292 |
singleContactField->SetFieldParamsL(KMobilePhoneHome,KNullDesC,KPhone); |
|
293 |
myContact->AddFieldToContactL(singleContactField); |
|
294 |
||
295 |
//aItem.GetNextInt(count) ; |
|
296 |
icontactservice->AddL(icallback,0,myContact); |
|
297 |
CActiveScheduler::Start(); |
|
298 |
||
299 |
/* check whether Add api returns the expected error code */ |
|
300 |
if(count == icallback->iError) |
|
301 |
return KErrNone ; |
|
302 |
||
303 |
return KErrGeneral ; |
|
304 |
||
305 |
} |
|
306 |
||
307 |
/* Removing all fields from contact */ |
|
308 |
TInt Ctdeleteadd::Edit_Test3L( CStifItemParser& aItem ) |
|
309 |
{ |
|
310 |
||
311 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
312 |
TInt flag = 0 ,count; |
|
313 |
// Print to UI |
|
314 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
315 |
_LIT( KExample, "In Example" ); |
|
316 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
317 |
// Print to log file |
|
318 |
iLog->Log( KExample ); |
|
319 |
||
320 |
_LIT8(KFirstName,"FirstName"); |
|
321 |
_LIT(KName,"Edit_test3"); |
|
322 |
_LIT(KFirst,"First Name"); |
|
323 |
aItem.GetNextInt(count) ; |
|
324 |
||
325 |
//instantiate service class object |
|
326 |
||
327 |
/* create contactitem with invalid fieldname "FrstName */ |
|
328 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
329 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
330 |
||
331 |
||
332 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
333 |
singleContact->AddFieldToContactL(singleContactField); |
|
334 |
||
335 |
||
336 |
/* Add the contactitem */ |
|
337 |
aItem.GetNextInt(count) ; |
|
338 |
icontactservice->AddL(icallback,0,singleContact); |
|
339 |
CActiveScheduler::Start(); |
|
340 |
||
341 |
/* get the contactid of any contact from phonebook */ |
|
342 |
TPtrC searchval(_L("Edit_test3")); |
|
343 |
TBuf8<15> fstname(_L8("FirstName")); |
|
344 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
345 |
srchfield->AppendL(fstname); |
|
346 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
347 |
CActiveScheduler::Start(); |
|
348 |
||
349 |
myContact->RemoveAllFields(); |
|
350 |
icontactservice->AddL(icallback,0,myContact); |
|
351 |
CActiveScheduler::Start(); |
|
352 |
/* check whether Add api returns the expected error code */ |
|
353 |
if(count == icallback->iError) |
|
354 |
return KErrNone ; |
|
355 |
||
356 |
return KErrNone ; |
|
357 |
||
358 |
} |
|
359 |
||
360 |
/* Removing all fields from contact and adding it again*/ |
|
361 |
TInt Ctdeleteadd::Edit_Test4L( CStifItemParser& aItem ) |
|
362 |
{ |
|
363 |
||
364 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
365 |
TInt flag = 0 ,count; |
|
366 |
// Print to UI |
|
367 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
368 |
_LIT( KExample, "In Example" ); |
|
369 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
370 |
// Print to log file |
|
371 |
iLog->Log( KExample ); |
|
372 |
||
373 |
_LIT8(KFirstName,"FirstName"); |
|
374 |
_LIT(KName,"Edit_test4"); |
|
375 |
_LIT(KFirst,"First Name"); |
|
376 |
aItem.GetNextInt(count) ; |
|
377 |
||
378 |
//instantiate service class object |
|
379 |
||
380 |
/* create contactitem with invalid fieldname "FrstName */ |
|
381 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
382 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
383 |
||
384 |
||
385 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
386 |
singleContact->AddFieldToContactL(singleContactField); |
|
387 |
||
388 |
||
389 |
/* Add the contactitem */ |
|
390 |
aItem.GetNextInt(count) ; |
|
391 |
icontactservice->AddL(icallback,0,singleContact); |
|
392 |
CActiveScheduler::Start(); |
|
393 |
||
394 |
/* get the contactid of any contact from phonebook */ |
|
395 |
TPtrC searchval(_L("Edit_test4")); |
|
396 |
TBuf8<15> fstname(_L8("FirstName")); |
|
397 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
398 |
srchfield->AppendL(fstname); |
|
399 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
400 |
CActiveScheduler::Start(); |
|
401 |
||
402 |
myContact->RemoveAllFields(); |
|
403 |
myContact->AddFieldToContactL(singleContactField); |
|
404 |
||
405 |
//aItem.GetNextInt(count) ; |
|
406 |
icontactservice->AddL(icallback,0,myContact); |
|
407 |
CActiveScheduler::Start(); |
|
408 |
||
409 |
/* check whether Add api returns the expected error code */ |
|
410 |
if(count == icallback->iError) |
|
411 |
return KErrNone ; |
|
412 |
||
413 |
return KErrNone ; |
|
414 |
||
415 |
} |
|
416 |
||
417 |
/* Overwriting the fields without removing*/ |
|
418 |
TInt Ctdeleteadd::Edit_Test5L( CStifItemParser& aItem ) |
|
419 |
{ |
|
420 |
||
421 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
422 |
TInt flag = 0 ,count; |
|
423 |
// Print to UI |
|
424 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
425 |
_LIT( KExample, "In Example" ); |
|
426 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
427 |
// Print to log file |
|
428 |
iLog->Log( KExample ); |
|
429 |
||
430 |
_LIT8(KFirstName,"FirstName"); |
|
431 |
_LIT(KName,"Edita"); |
|
432 |
_LIT(KName1,"Editb"); |
|
433 |
_LIT(KFirst,"First Name"); |
|
434 |
aItem.GetNextInt(count) ; |
|
435 |
||
436 |
//instantiate service class object |
|
437 |
||
438 |
/* create contactitem with invalid fieldname "FrstName */ |
|
439 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
440 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
441 |
||
442 |
||
443 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
444 |
singleContact->AddFieldToContactL(singleContactField); |
|
445 |
||
446 |
||
447 |
/* Add the contactitem */ |
|
448 |
aItem.GetNextInt(count) ; |
|
449 |
icontactservice->AddL(icallback,0,singleContact); |
|
450 |
CActiveScheduler::Start(); |
|
451 |
||
452 |
/* get the contactid of any contact from phonebook */ |
|
453 |
TPtrC searchval(_L("Edita")); |
|
454 |
TBuf8<15> fstname(_L8("FirstName")); |
|
455 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
456 |
srchfield->AppendL(fstname); |
|
457 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
458 |
CActiveScheduler::Start(); |
|
459 |
||
460 |
//CSingleContact* singleContact1 = CSingleContact::NewL(); |
|
461 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
462 |
||
463 |
singleContactField1->SetFieldParamsL(KFirstName,KFirst,KName1); |
|
464 |
//singleContact1->AddFieldToContactL(singleContactField1); |
|
465 |
||
466 |
myContact->AddFieldToContactL(singleContactField1); |
|
467 |
||
468 |
//aItem.GetNextInt(count) ; |
|
469 |
icontactservice->AddL(icallback,0,myContact); |
|
470 |
CActiveScheduler::Start(); |
|
471 |
||
472 |
TInt fldcnt=myContact->FieldCount(); |
|
473 |
CSingleContactField* ResultContactField1 = CSingleContactField::NewL(); |
|
474 |
ResultContactField1=myContact->FieldAt(0); |
|
475 |
ResultContactField1=myContact->FieldAt(1); |
|
476 |
ResultContactField1=myContact->FieldAt(2); |
|
477 |
||
478 |
/* check whether Add api returns the expected error code */ |
|
479 |
if(count == icallback->iError) |
|
480 |
return KErrNone ; |
|
481 |
||
482 |
return KErrNone ; |
|
483 |
||
484 |
} |
|
485 |
||
486 |
/* Removing the field */ |
|
487 |
TInt Ctdeleteadd::Edit_Test6L( CStifItemParser& aItem ) |
|
488 |
{ |
|
489 |
||
490 |
TInt count =KErrGeneral; |
|
491 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
492 |
_LIT8(KFirstname,"FirstName"); |
|
493 |
_LIT8(KHomePhone,"LandPhoneHome"); |
|
494 |
_LIT(Kname,"Ambar"); |
|
495 |
_LIT(Kphone,"123545"); |
|
496 |
_LIT(Knme,"Name"); |
|
497 |
_LIT(Phone,"Phone no."); |
|
498 |
//instantiate service class object |
|
499 |
||
500 |
/* create contactitem to add */ |
|
501 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
502 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
503 |
CSingleContactField* singleContactField2 = CSingleContactField::NewL(); |
|
504 |
||
505 |
singleContactField1->SetFieldParamsL(KFirstname,Knme,Kname); |
|
506 |
singleContactField2->SetFieldParamsL(KHomePhone,Phone,Kphone); |
|
507 |
||
508 |
singleContact->AddFieldToContactL(singleContactField1); |
|
509 |
singleContact->AddFieldToContactL(singleContactField2); |
|
510 |
||
511 |
aItem.GetNextInt(count) ; |
|
512 |
||
513 |
/* Add the contactitem */ |
|
514 |
icontactservice->AddL(icallback,0,singleContact); |
|
515 |
CActiveScheduler::Start(); |
|
516 |
||
517 |
TPtrC searchval(_L("Ambar")); |
|
518 |
TBuf8<15> fstname(_L8("FirstName")); |
|
519 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
520 |
srchfield->AppendL(fstname); |
|
521 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
522 |
CActiveScheduler::Start(); |
|
523 |
||
524 |
TInt fldcnt1=myContact->FieldCount(); |
|
525 |
myContact->RemoveField(0); |
|
526 |
||
527 |
icontactservice->AddL(icallback,0,myContact); |
|
528 |
CActiveScheduler::Start(); |
|
529 |
TInt fldcnt2=myContact->FieldCount(); |
|
530 |
/* check whether add api returns the expected error code */ |
|
531 |
if(fldcnt1==(fldcnt2+1)) |
|
532 |
return KErrNone ; |
|
533 |
||
534 |
return KErrGeneral ; |
|
535 |
||
536 |
||
537 |
} |
|
538 |
||
539 |
/* Removing synchronisation field */ |
|
540 |
TInt Ctdeleteadd::Edit_Test7L( CStifItemParser& aItem ) |
|
541 |
{ |
|
542 |
||
543 |
TInt count =KErrGeneral; |
|
544 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
545 |
_LIT8(KFirstname,"FirstName"); |
|
546 |
_LIT8(KHomePhone,"LandPhoneHome"); |
|
547 |
_LIT8(Sync,"SyncClass"); |
|
548 |
_LIT(Kname,"Ambar"); |
|
549 |
_LIT(Kphone,"123545"); |
|
550 |
_LIT(Knme,"Name"); |
|
551 |
_LIT(Phone,"Phone no."); |
|
552 |
//instantiate service class object |
|
553 |
||
554 |
/* create contactitem to add */ |
|
555 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
556 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
557 |
CSingleContactField* singleContactField2 = CSingleContactField::NewL(); |
|
558 |
||
559 |
singleContactField1->SetFieldParamsL(KFirstname,Knme,Kname); |
|
560 |
singleContactField2->SetFieldParamsL(KHomePhone,Phone,Kphone); |
|
561 |
||
562 |
singleContact->AddFieldToContactL(singleContactField1); |
|
563 |
singleContact->AddFieldToContactL(singleContactField2); |
|
564 |
||
565 |
aItem.GetNextInt(count) ; |
|
566 |
||
567 |
/* Add the contactitem */ |
|
568 |
icontactservice->AddL(icallback,0,singleContact); |
|
569 |
CActiveScheduler::Start(); |
|
570 |
||
571 |
TPtrC searchval(_L("Ambar")); |
|
572 |
TBuf8<15> fstname(_L8("FirstName")); |
|
573 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
574 |
srchfield->AppendL(fstname); |
|
575 |
||
576 |
TInt err1,err2; |
|
577 |
TRAP(err1,icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield)); |
|
578 |
CActiveScheduler::Start(); |
|
579 |
||
580 |
TInt fldcnt1=myContact->FieldCount(); |
|
581 |
CSingleContactField* Resultfield = CSingleContactField::NewL(); |
|
582 |
TPtrC8 fieldkey; |
|
583 |
TPtrC label; |
|
584 |
TPtrC value; |
|
585 |
for (TInt i=0; i<fldcnt1 ;i++) |
|
586 |
{ |
|
587 |
Resultfield=myContact->FieldAt(i); |
|
588 |
||
589 |
Resultfield->GetFieldDataL(fieldkey,label,value); |
|
590 |
if(!(fieldkey.Compare(Sync))) |
|
591 |
myContact->RemoveField(i); |
|
592 |
||
593 |
} |
|
594 |
||
595 |
icontactservice->AddL(icallback,0,myContact); |
|
596 |
CActiveScheduler::Start(); |
|
597 |
||
598 |
TInt fldcnt2=myContact->FieldCount(); |
|
599 |
/* check whether add api returns the expected error code */ |
|
600 |
if(fldcnt1==(fldcnt2+1)) |
|
601 |
return KErrNone ; |
|
602 |
||
603 |
return KErrGeneral ; |
|
604 |
||
605 |
||
606 |
} |
|
607 |
||
608 |
/* Removing sync field*/ |
|
609 |
TInt Ctdeleteadd::Edit_Test8L( CStifItemParser& aItem ) |
|
610 |
{ |
|
611 |
||
612 |
TInt count =KErrGeneral; |
|
613 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
614 |
_LIT8(Sync,"SyncClass"); |
|
615 |
_LIT8(KFirstName,"FirstName"); |
|
616 |
_LIT(KName,"TestingSync"); |
|
617 |
_LIT(KFirst,"Name"); |
|
618 |
||
619 |
//instantiate service class object |
|
620 |
||
621 |
/* create contactitem to add */ |
|
622 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
623 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
624 |
||
625 |
||
626 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
627 |
||
628 |
||
629 |
singleContact->AddFieldToContactL(singleContactField); |
|
630 |
||
631 |
aItem.GetNextInt(count) ; |
|
632 |
||
633 |
/* Add the contactitem */ |
|
634 |
icontactservice->AddL(icallback,0,singleContact); |
|
635 |
CActiveScheduler::Start(); |
|
636 |
||
637 |
TPtrC searchval(_L("TestingSync")); |
|
638 |
TBuf8<15> fstname(_L8("FirstName")); |
|
639 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
640 |
srchfield->AppendL(fstname); |
|
641 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
642 |
CActiveScheduler::Start(); |
|
643 |
int err_getlist = icallback->iError; |
|
644 |
if (err_getlist) |
|
645 |
return KErrGeneral ; |
|
646 |
||
647 |
TInt fldcnt1=myContact->FieldCount(); |
|
648 |
CSingleContactField* Resultfield = CSingleContactField::NewL(); |
|
649 |
TPtrC8 fieldkey; |
|
650 |
TPtrC label; |
|
651 |
TPtrC value; |
|
652 |
for (TInt i=0; i<fldcnt1 ;i++) |
|
653 |
{ |
|
654 |
Resultfield=myContact->FieldAt(i); |
|
655 |
||
656 |
Resultfield->GetFieldDataL(fieldkey,label,value); |
|
657 |
if(!(fieldkey.Compare(Sync))) |
|
658 |
myContact->RemoveField(i); |
|
659 |
||
660 |
} |
|
661 |
||
662 |
icontactservice->AddL(icallback,0,myContact); |
|
663 |
CActiveScheduler::Start(); |
|
664 |
srchfield =CSearchFields :: NewL(icontactservice); |
|
665 |
srchfield->AppendL(fstname); |
|
666 |
CContactIter* ite; |
|
667 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
668 |
CActiveScheduler::Start(); |
|
669 |
TInt fldcnt2=myContact->FieldCount(); |
|
670 |
/* check whether add api returns the expected error code */ |
|
671 |
if(fldcnt1==(fldcnt2)) |
|
672 |
return KErrNone ; |
|
673 |
||
674 |
return KErrGeneral ; |
|
675 |
||
676 |
||
677 |
} |
|
678 |
||
679 |
||
680 |
/* Trying to remove the fields one at a time */ |
|
681 |
TInt Ctdeleteadd::Edit_Test9L( CStifItemParser& aItem ) |
|
682 |
{ |
|
683 |
||
684 |
TInt count =KErrGeneral; |
|
685 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
686 |
_LIT8(KFirstname,"FirstName"); |
|
687 |
_LIT8(KHomePhone,"LandPhoneHome"); |
|
688 |
_LIT8(Sync,"SyncClass"); |
|
689 |
_LIT(Kname,"Ambar"); |
|
690 |
_LIT(Kphone,"123545"); |
|
691 |
_LIT(Knme,"Name"); |
|
692 |
_LIT(Phone,"Phone no."); |
|
693 |
//instantiate service class object |
|
694 |
||
695 |
/* create contactitem to add */ |
|
696 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
697 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
698 |
CSingleContactField* singleContactField2 = CSingleContactField::NewL(); |
|
699 |
||
700 |
singleContactField1->SetFieldParamsL(KFirstname,Knme,Kname); |
|
701 |
singleContactField2->SetFieldParamsL(KHomePhone,Phone,Kphone); |
|
702 |
||
703 |
singleContact->AddFieldToContactL(singleContactField1); |
|
704 |
singleContact->AddFieldToContactL(singleContactField2); |
|
705 |
||
706 |
aItem.GetNextInt(count) ; |
|
707 |
||
708 |
/* Add the contactitem */ |
|
709 |
icontactservice->AddL(icallback,0,singleContact); |
|
710 |
CActiveScheduler::Start(); |
|
711 |
||
712 |
TPtrC searchval(_L("Ambar")); |
|
713 |
TBuf8<15> fstname(_L8("FirstName")); |
|
714 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
715 |
srchfield->AppendL(fstname); |
|
716 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
717 |
CActiveScheduler::Start(); |
|
718 |
||
719 |
int err_getlist = icallback->iError; |
|
720 |
if (err_getlist) |
|
721 |
return KErrGeneral ; |
|
722 |
TInt fldcnt1=myContact->FieldCount(); |
|
723 |
CSingleContactField* Resultfield = CSingleContactField::NewL(); |
|
724 |
TBuf8<20> fieldkey; |
|
725 |
TBuf<20> label; |
|
726 |
TBuf<20> value; |
|
727 |
||
728 |
myContact->RemoveField(0); |
|
729 |
||
730 |
icontactservice->AddL(icallback,0,myContact); |
|
731 |
CActiveScheduler::Start(); |
|
732 |
||
733 |
myContact->RemoveField(0); |
|
734 |
icontactservice->AddL(icallback,0,myContact); |
|
735 |
CActiveScheduler::Start(); |
|
736 |
||
737 |
myContact->RemoveField(0); |
|
738 |
icontactservice->AddL(icallback,0,myContact); |
|
739 |
CActiveScheduler::Start(); |
|
740 |
||
741 |
TInt fldcnt2=myContact->FieldCount(); |
|
742 |
/* check whether add api returns the expected error code */ |
|
743 |
if(fldcnt1==(fldcnt2+3)) |
|
744 |
return KErrNone ; |
|
745 |
||
746 |
return KErrGeneral ; |
|
747 |
||
748 |
||
749 |
} |
|
750 |
||
751 |
||
752 |
/* Trying to remove invalid field */ |
|
753 |
TInt Ctdeleteadd::Edit_Test10L( CStifItemParser& aItem ) |
|
754 |
{ |
|
755 |
||
756 |
TInt count =KErrGeneral; |
|
757 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
758 |
_LIT8(KFirstname,"FirstName"); |
|
759 |
_LIT8(KHomePhone,"LandPhoneHome"); |
|
760 |
_LIT(Kname,"Antony"); |
|
761 |
_LIT(Kphone,"123545"); |
|
762 |
_LIT(Knme,"Name"); |
|
763 |
_LIT(Phone,"Phone no."); |
|
764 |
//instantiate service class object |
|
765 |
||
766 |
/* create contactitem to add */ |
|
767 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
768 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
769 |
CSingleContactField* singleContactField2 = CSingleContactField::NewL(); |
|
770 |
||
771 |
singleContactField1->SetFieldParamsL(KFirstname,Knme,Kname); |
|
772 |
singleContactField2->SetFieldParamsL(KHomePhone,Phone,Kphone); |
|
773 |
||
774 |
singleContact->AddFieldToContactL(singleContactField1); |
|
775 |
singleContact->AddFieldToContactL(singleContactField2); |
|
776 |
||
777 |
aItem.GetNextInt(count) ; |
|
778 |
||
779 |
/* Add the contactitem */ |
|
780 |
icontactservice->AddL(icallback,0,singleContact); |
|
781 |
CActiveScheduler::Start(); |
|
782 |
||
783 |
TPtrC searchval(_L("Antony")); |
|
784 |
TBuf8<15> fstname(_L8("FirstName")); |
|
785 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
786 |
srchfield->AppendL(fstname); |
|
787 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
788 |
CActiveScheduler::Start(); |
|
789 |
||
790 |
TInt fldcnt1=myContact->FieldCount(); |
|
791 |
TInt err; |
|
792 |
err=myContact->RemoveField(6); |
|
793 |
if(err) |
|
794 |
return KErrNone ; |
|
795 |
||
796 |
return KErrGeneral ; |
|
797 |
||
798 |
||
799 |
} |
|
800 |
||
801 |
/* Removing the middle syncfields*/ |
|
802 |
TInt Ctdeleteadd::Edit_Test11L( CStifItemParser& aItem ) |
|
803 |
{ |
|
804 |
_LIT8(Sync,"SyncClass"); |
|
805 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
806 |
TInt flag = 0 ,count; |
|
807 |
// Print to UI |
|
808 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
809 |
_LIT( KExample, "In Example" ); |
|
810 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
811 |
// Print to log file |
|
812 |
iLog->Log( KExample ); |
|
813 |
||
814 |
_LIT8(KFirstName,"LandPhoneHome"); |
|
815 |
_LIT(KName,"9986767"); |
|
816 |
_LIT(KName1,"12345677"); |
|
817 |
_LIT(KFirst,"Phone no"); |
|
818 |
_LIT8(KFirstname,"FirstName"); |
|
819 |
_LIT8(KHomePhone,"LandPhoneHome"); |
|
820 |
_LIT(Kname,"Antony"); |
|
821 |
_LIT(Kphone,"123545"); |
|
822 |
_LIT(Knme,"Name"); |
|
823 |
_LIT(Phone,"Phone no."); |
|
824 |
aItem.GetNextInt(count) ; |
|
825 |
||
826 |
//instantiate service class object |
|
827 |
||
828 |
/* create contactitem to add */ |
|
829 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
830 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
831 |
CSingleContactField* singleContactField2 = CSingleContactField::NewL(); |
|
832 |
||
833 |
singleContactField1->SetFieldParamsL(KFirstname,Knme,Kname); |
|
834 |
singleContactField2->SetFieldParamsL(KHomePhone,Phone,Kphone); |
|
835 |
||
836 |
singleContact->AddFieldToContactL(singleContactField1); |
|
837 |
singleContact->AddFieldToContactL(singleContactField2); |
|
838 |
||
839 |
aItem.GetNextInt(count) ; |
|
840 |
||
841 |
/* Add the contactitem */ |
|
842 |
icontactservice->AddL(icallback,0,singleContact); |
|
843 |
CActiveScheduler::Start(); |
|
844 |
||
845 |
TPtrC searchval(_L("Antony")); |
|
846 |
TBuf8<15> fstname(_L8("FirstName")); |
|
847 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
848 |
srchfield->AppendL(fstname); |
|
849 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
850 |
CActiveScheduler::Start(); |
|
851 |
||
852 |
//CSingleContact* singleContact1 = CSingleContact::NewL(); |
|
853 |
//CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
854 |
||
855 |
singleContactField1->SetFieldParamsL(KFirstName,KFirst,KName1); |
|
856 |
//singleContact1->AddFieldToContactL(singleContactField1); |
|
857 |
if(!myContact) |
|
858 |
{ |
|
859 |
return KErrGeneral; |
|
860 |
} |
|
861 |
myContact->AddFieldToContactL(singleContactField1); |
|
862 |
||
863 |
//aItem.GetNextInt(count) ; |
|
864 |
icontactservice->AddL(icallback,0,myContact); |
|
865 |
CActiveScheduler::Start(); |
|
866 |
||
867 |
TInt fldcnt1=myContact->FieldCount(); |
|
868 |
CSingleContactField* Resultfield = CSingleContactField::NewL(); |
|
869 |
TPtrC8 fieldkey; |
|
870 |
TPtrC label; |
|
871 |
TPtrC value; |
|
872 |
for (TInt i=0; i<fldcnt1 ;i++) |
|
873 |
{ |
|
874 |
Resultfield=myContact->FieldAt(i); |
|
875 |
if(Resultfield) |
|
876 |
Resultfield->GetFieldDataL(fieldkey,label,value); |
|
877 |
||
878 |
if(!(fieldkey.Compare(Sync))) |
|
879 |
{ |
|
880 |
myContact->RemoveField(i); |
|
881 |
break; |
|
882 |
} |
|
883 |
||
884 |
} |
|
885 |
||
886 |
icontactservice->AddL(icallback,0,myContact); |
|
887 |
CActiveScheduler::Start(); |
|
888 |
||
889 |
/*Resultfield->GetFieldData(fieldkey,label,value);*/ |
|
890 |
TPtrC searchval1(_L("12345677")); |
|
891 |
CSearchFields *srchfield1 =CSearchFields :: NewL(icontactservice); |
|
892 |
srchfield1->AppendL(fstname); |
|
893 |
||
894 |
/*Resultfield->GetFieldData(fieldkey,label,value);*/ |
|
895 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield1); |
|
896 |
CActiveScheduler::Start(); |
|
897 |
||
898 |
||
899 |
||
900 |
TInt fldcnt2=myContact->FieldCount(); |
|
901 |
||
902 |
/* check whether Add api returns the expected error code */ |
|
903 |
if(fldcnt1==(fldcnt2)) |
|
904 |
return KErrNone ; |
|
905 |
||
906 |
return KErrGeneral ; |
|
907 |
||
908 |
} |
|
909 |
||
910 |
/* adding sync field*/ |
|
911 |
TInt Ctdeleteadd::Edit_Test12L( CStifItemParser& aItem ) |
|
912 |
{ |
|
913 |
||
914 |
_LIT(KCntDbUri, "cntdb://c:contacts.cdb"); |
|
915 |
TInt flag = 0 ,count; |
|
916 |
// Print to UI |
|
917 |
_LIT( Ktdeleteadd, "tdeleteadd" ); |
|
918 |
_LIT( KExample, "In Example" ); |
|
919 |
TestModuleIf().Printf( 0, Ktdeleteadd, KExample ); |
|
920 |
// Print to log file |
|
921 |
iLog->Log( KExample ); |
|
922 |
||
923 |
_LIT8(KFirstName,"FirstName"); |
|
924 |
_LIT8(KSync,"SyncClass"); |
|
925 |
_LIT(KName,"Anitha"); |
|
926 |
_LIT(KName1,"private"); |
|
927 |
_LIT(KFirst,"First Name"); |
|
928 |
_LIT(Klabel,"Synchronisation"); |
|
929 |
aItem.GetNextInt(count) ; |
|
930 |
||
931 |
//instantiate service class object |
|
932 |
||
933 |
/* create contactitem with invalid fieldname "FrstName */ |
|
934 |
CSingleContact* singleContact = CSingleContact::NewL(); |
|
935 |
CSingleContactField* singleContactField = CSingleContactField::NewL(); |
|
936 |
||
937 |
||
938 |
singleContactField->SetFieldParamsL(KFirstName,KFirst,KName); |
|
939 |
singleContact->AddFieldToContactL(singleContactField); |
|
940 |
||
941 |
||
942 |
/* Add the contactitem */ |
|
943 |
aItem.GetNextInt(count) ; |
|
944 |
icontactservice->AddL(icallback,0,singleContact); |
|
945 |
CActiveScheduler::Start(); |
|
946 |
||
947 |
/* get the contactid of any contact from phonebook */ |
|
948 |
TPtrC searchval(_L("Anitha")); |
|
949 |
TBuf8<15> fstname(_L8("FirstName")); |
|
950 |
CSearchFields *srchfield =CSearchFields :: NewL(icontactservice); |
|
951 |
srchfield->AppendL(fstname); |
|
952 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield); |
|
953 |
CActiveScheduler::Start(); |
|
954 |
TInt fldcnt1=myContact->FieldCount(); |
|
955 |
||
956 |
//CSingleContact* singleContact1 = CSingleContact::NewL(); |
|
957 |
CSingleContactField* singleContactField1 = CSingleContactField::NewL(); |
|
958 |
||
959 |
singleContactField1->SetFieldParamsL(KSync,Klabel,KName1); |
|
960 |
//singleContact1->AddFieldToContactL(singleContactField1); |
|
961 |
||
962 |
myContact->AddFieldToContactL(singleContactField1); |
|
963 |
||
964 |
//aItem.GetNextInt(count) ; |
|
965 |
icontactservice->AddL(icallback,0,myContact); |
|
966 |
CActiveScheduler::Start(); |
|
967 |
||
968 |
TPtrC searchval1(_L("private")); |
|
969 |
CSearchFields *srchfield1 =CSearchFields :: NewL(icontactservice); |
|
970 |
TBuf8<15> fstname1(_L8("SyncClass")); |
|
971 |
srchfield1->AppendL(fstname); |
|
972 |
||
973 |
icontactservice->GetListL(icallback,0,EContacts,KNullDesC8,searchval,srchfield1); |
|
974 |
CActiveScheduler::Start(); |
|
975 |
TInt fldcnt2=myContact->FieldCount(); |
|
976 |
||
977 |
/* check whether Add api returns the expected error code */ |
|
978 |
if(fldcnt1==fldcnt2-1) |
|
979 |
return KErrNone ; |
|
980 |
||
981 |
return KErrGeneral ; |
|
982 |
||
983 |
} |
|
984 |
||
985 |
||
986 |
// ----------------------------------------------------------------------------- |
|
987 |
// Ctdeleteadd::?member_function |
|
988 |
// ?implementation_description |
|
989 |
// (other items were commented in a header). |
|
990 |
// ----------------------------------------------------------------------------- |
|
991 |
// |
|
992 |
/* |
|
993 |
TInt Ctdeleteadd::?member_function( |
|
994 |
CItemParser& aItem ) |
|
995 |
{ |
|
996 |
||
997 |
?code |
|
998 |
||
999 |
} |
|
1000 |
*/ |
|
1001 |
||
1002 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
1003 |
// None |
|
1004 |
||
1005 |
// End of File |