equal
deleted
inserted
replaced
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 // ----------------------------------------------------------------------------- |