equal
deleted
inserted
replaced
181 //Fill iPacketStoreName buffer with legacy store name |
181 //Fill iPacketStoreName buffer with legacy store name |
182 TBuf<KOldSymbianDBLength> dataBase(aLegacyStore); |
182 TBuf<KOldSymbianDBLength> dataBase(aLegacyStore); |
183 iPacketStoreName = HBufC::NewL(dataBase.Length()); |
183 iPacketStoreName = HBufC::NewL(dataBase.Length()); |
184 TPtr pktStorePtr(iPacketStoreName->Des()); |
184 TPtr pktStorePtr(iPacketStoreName->Des()); |
185 pktStorePtr.Copy(dataBase); |
185 pktStorePtr.Copy(dataBase); |
|
186 iDeleteAllOperation = NULL; |
186 |
187 |
187 _DBG_FILE("CNSmlContactsDataStore::ConstructL(): end"); |
188 _DBG_FILE("CNSmlContactsDataStore::ConstructL(): end"); |
188 } |
189 } |
189 |
190 |
190 // ---------------------------------------------------------------------------- |
191 // ---------------------------------------------------------------------------- |
214 delete iIdConverter; |
215 delete iIdConverter; |
215 iIdConverter = NULL; |
216 iIdConverter = NULL; |
216 } |
217 } |
217 if(iContactLnks) |
218 if(iContactLnks) |
218 { |
219 { |
219 delete iContactLnks; |
220 delete iContactLnks; |
220 } |
221 iContactLnks = NULL; |
221 if(iContactLink) |
222 } |
222 { |
223 |
223 delete iContactLink; |
224 if(iContactViewBase) |
224 } |
225 { |
225 delete iContactViewBase; |
226 delete iContactViewBase; |
|
227 iContactViewBase = NULL; |
|
228 } |
226 if ( iContactsModsFetcher ) |
229 if ( iContactsModsFetcher ) |
227 { |
230 { |
228 iContactsModsFetcher->CancelRequest(); |
231 iContactsModsFetcher->CancelRequest(); |
229 delete iContactsModsFetcher; |
232 delete iContactsModsFetcher; |
230 iContactsModsFetcher = NULL; |
233 iContactsModsFetcher = NULL; |
2381 ResetBuffer(); |
2384 ResetBuffer(); |
2382 } |
2385 } |
2383 } |
2386 } |
2384 else |
2387 else |
2385 { |
2388 { |
|
2389 if(iLastOperation == ENSMLDeleteAllOp) |
|
2390 { |
|
2391 iDeleteAllOperation = NULL; |
|
2392 } |
2386 if( iChangeFinder ) |
2393 if( iChangeFinder ) |
2387 { |
2394 { |
2388 iChangeFinder->ResetL(); |
2395 iChangeFinder->ResetL(); |
2389 } |
2396 } |
2390 iSnapshotRegistered = EFalse; |
2397 iSnapshotRegistered = EFalse; |
2433 iContactLink = contact.CreateLinkLC(); |
2440 iContactLink = contact.CreateLinkLC(); |
2434 iContactLnks->AppendL(iContactLink); |
2441 iContactLnks->AppendL(iContactLink); |
2435 CleanupStack::Pop(); |
2442 CleanupStack::Pop(); |
2436 } |
2443 } |
2437 |
2444 |
2438 iContactManager->DeleteContactsL( *iContactLnks, *this ); |
2445 iDeleteAllOperation = iContactManager->DeleteContactsL( *iContactLnks, *this ); |
2439 |
2446 |
2440 } |
2447 } |
2441 |
2448 |
2442 // --------------------------------------------------------------------------- |
2449 // --------------------------------------------------------------------------- |
2443 // CNSmlContactsDataStore::ContactViewUnavailable |
2450 // CNSmlContactsDataStore::ContactViewUnavailable |