serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_sync/src/tcontacts_sync_blocks.cpp
equal
deleted
inserted
replaced
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 #include <e32svr.h> |
22 #include <e32svr.h> |
23 #include <StifParser.h> |
23 #include <StifParser.h> |
24 #include <StifTestInterface.h> |
24 #include <StifTestInterface.h> |
25 #include <VPbkEng.rsg> |
25 #include <VPbkEng.rsg> |
26 |
26 #include <mmfcontrollerpluginresolver.h> |
27 #include <MVPbkContactFieldTextData.h> |
27 #include <MVPbkContactFieldTextData.h> |
28 #include <MVPbkContactStoreList.h> |
28 #include <MVPbkContactStoreList.h> |
29 #include <MVPbkContactOperationBase.h> |
29 #include <MVPbkContactOperationBase.h> |
30 #include <MVPbkContactLink.h> |
30 #include <MVPbkContactLink.h> |
31 #include <CVPbkContactLinkArray.h> |
31 #include <CVPbkContactLinkArray.h> |
580 __UHEAP_MARKEND; |
580 __UHEAP_MARKEND; |
581 } |
581 } |
582 |
582 |
583 //Check for contact |
583 //Check for contact |
584 void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray<TDesC8>& aIdArray) |
584 void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray<TDesC8>& aIdArray) |
585 { |
585 { |
|
586 CleanupResetAndDestroyPushL(aIdArray); |
586 // Print to UI |
587 // Print to UI |
587 _LIT( KContactsTest, "ContactsUT" ); |
588 _LIT( KContactsTest, "ContactsUT" ); |
588 _LIT( KExample, "In CheckContactsL" ); |
589 _LIT( KExample, "In CheckContactsL" ); |
589 TestModuleIf().Printf( 0, KContactsTest, KExample ); |
590 TestModuleIf().Printf( 0, KContactsTest, KExample ); |
590 // Print to log file |
591 // Print to log file |
606 aIdArray.AppendL((const_cast<MVPbkContactLink&>(iFindResults->At(--count))).PackLC()); |
607 aIdArray.AppendL((const_cast<MVPbkContactLink&>(iFindResults->At(--count))).PackLC()); |
607 CleanupStack::Pop(); |
608 CleanupStack::Pop(); |
608 } |
609 } |
609 delete iFindResults; |
610 delete iFindResults; |
610 iFindResults = NULL; |
611 iFindResults = NULL; |
611 // __UHEAP_MARKENDC(aCount); |
612 // __UHEAP_MARKENDC(aCount); |
|
613 CleanupStack::Pop(&aIdArray); |
612 } |
614 } |
613 |
615 |
614 // ----------------------------------------------------------------------------- |
616 // ----------------------------------------------------------------------------- |
615 // CContactsUT::?member_function |
617 // CContactsUT::?member_function |
616 // ?implementation_description |
618 // ?implementation_description |