phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CVPbkETelCntConverter.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 0 e686773b3f54
child 58 d4f567ce2e7c
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
   272 //
   272 //
   273 void CVPbkETelCntConverter::ConvertFromETelToVPbkSimContactsL( 
   273 void CVPbkETelCntConverter::ConvertFromETelToVPbkSimContactsL( 
   274     RPointerArray<CVPbkSimContactBuf>& aResultArray,
   274     RPointerArray<CVPbkSimContactBuf>& aResultArray,
   275     TDes8& aETelContactData, MVPbkSimCntStore& aSimStore ) const
   275     TDes8& aETelContactData, MVPbkSimCntStore& aSimStore ) const
   276     {
   276     {
       
   277     CleanupResetAndDestroyPushL( aResultArray );
   277     iETelBuffer->Set( &aETelContactData );
   278     iETelBuffer->Set( &aETelContactData );
   278     User::LeaveIfError( StartRead() );
   279     User::LeaveIfError( StartRead() );
   279     
   280     
   280     TInt cntCounter = 0;
   281     TInt cntCounter = 0;
   281     TPtrC8 etelCnt( GetNextContactData( aETelContactData ) );
   282     TPtrC8 etelCnt( GetNextContactData( aETelContactData ) );
   292     // Check if there was no contacts in the ETel descriptor
   293     // Check if there was no contacts in the ETel descriptor
   293     if ( cntCounter == 0 )
   294     if ( cntCounter == 0 )
   294         {
   295         {
   295         User::Leave( KErrBadDescriptor );
   296         User::Leave( KErrBadDescriptor );
   296         }
   297         }
       
   298     CleanupStack::Pop( &aResultArray );
   297     }
   299     }
   298 
   300 
   299 // -----------------------------------------------------------------------------
   301 // -----------------------------------------------------------------------------
   300 // CVPbkETelCntConverter::ConvertFromETelToVPbkSimContactL
   302 // CVPbkETelCntConverter::ConvertFromETelToVPbkSimContactL
   301 // -----------------------------------------------------------------------------
   303 // -----------------------------------------------------------------------------