contacts_pub/phonebook_data_addedit_ui_api/tsrc/bc/src/BCTestPbkDataAddEditBlocks.cpp
equal
deleted
inserted
replaced
28 #include <CPbkContactEditorDlg.h> |
28 #include <CPbkContactEditorDlg.h> |
29 #include <CPbkDataSaveAppUi.h> |
29 #include <CPbkDataSaveAppUi.h> |
30 #include <eikmenup.h> |
30 #include <eikmenup.h> |
31 #include <coecntrl.h> |
31 #include <coecntrl.h> |
32 |
32 |
33 //#include<pbkview.rsg> |
33 //#include<PbkView.rsg> |
34 #include <stringloader.h> |
34 #include <stringloader.h> |
35 #include <eikbtgpc.h> |
35 #include <eikbtgpc.h> |
36 #include <eikrted.h> |
36 #include <eikrted.h> |
37 #include <aknappui.h> |
37 #include <aknappui.h> |
38 #include <avkon.rsg> |
38 #include <avkon.rsg> |
382 } |
382 } |
383 } |
383 } |
384 |
384 |
385 _LIT( KPhoneNumber, "+358401234567" ); |
385 _LIT( KPhoneNumber, "+358401234567" ); |
386 TInt commandId = TPbkDataSaveCommandId( EPbkCmdDataSaveAddToExisting ); |
386 TInt commandId = TPbkDataSaveCommandId( EPbkCmdDataSaveAddToExisting ); |
387 TRAPD( err, dataSaveAppUi->HandleCommandL( commandId, *fields, KPhoneNumber ) ); |
387 TBool added = dataSaveAppUi->HandleCommandL( commandId, *fields, KPhoneNumber ); |
388 ASSERT(err == KErrNone); |
388 ASSERT(added ); |
389 |
389 |
390 CleanupStack::PopAndDestroy( fields ); |
390 CleanupStack::PopAndDestroy( fields ); |
391 CleanupStack::PopAndDestroy( dataSaveAppUi ); |
391 CleanupStack::PopAndDestroy( dataSaveAppUi ); |
392 //ptrEikonEnv->DeleteResourceFile(offsetRsc); |
392 //ptrEikonEnv->DeleteResourceFile(offsetRsc); |
393 return KErrNone; |
393 return KErrNone; |