serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/tcontacts_async_blocks.cpp
branchRCL_3
changeset 39 1aa6688bfd6b
parent 23 50974a8b132e
child 41 50d20108beab
equal deleted inserted replaced
38:ea43c23d28d2 39:1aa6688bfd6b
    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>
   738     __UHEAP_MARKEND;    
   738     __UHEAP_MARKEND;    
   739     }
   739     }
   740     
   740     
   741 //Check for contact
   741 //Check for contact
   742 void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray<TDesC8>& aIdArray)
   742 void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray<TDesC8>& aIdArray)
   743     {    
   743     { 
       
   744     CleanupResetAndDestroyPushL(aIdArray);   
   744     // Print to UI
   745     // Print to UI
   745     _LIT( KContactsTest, "ContactsUT" );
   746     _LIT( KContactsTest, "ContactsUT" );
   746     _LIT( KExample, "In CheckContactsL" );
   747     _LIT( KExample, "In CheckContactsL" );
   747     TestModuleIf().Printf( 0, KContactsTest, KExample );
   748     TestModuleIf().Printf( 0, KContactsTest, KExample );
   748     // Print to log file
   749     // Print to log file
   764         aIdArray.AppendL((const_cast<MVPbkContactLink&>(iFindResults->At(--count))).PackLC());
   765         aIdArray.AppendL((const_cast<MVPbkContactLink&>(iFindResults->At(--count))).PackLC());
   765         CleanupStack::Pop();
   766         CleanupStack::Pop();
   766         }
   767         }
   767     delete iFindResults;
   768     delete iFindResults;
   768     iFindResults = NULL;
   769     iFindResults = NULL;
   769    // __UHEAP_MARKENDC(aCount);          
   770    // __UHEAP_MARKENDC(aCount);
       
   771    CleanupStack::Pop(&aIdArray);          
   770     }
   772     }
   771     
   773     
   772 // -----------------------------------------------------------------------------
   774 // -----------------------------------------------------------------------------
   773 // CContactsUT::?member_function
   775 // CContactsUT::?member_function
   774 // ?implementation_description
   776 // ?implementation_description