equal
deleted
inserted
replaced
123 |
123 |
124 iState = ENSmlClosed; |
124 iState = ENSmlClosed; |
125 iStoreName = NULL; |
125 iStoreName = NULL; |
126 iRetCommand = KErrNone; |
126 iRetCommand = KErrNone; |
127 iLastOperation = ENSmlNone; |
127 iLastOperation = ENSmlNone; |
128 |
128 if(iDeleteAllOperation) |
|
129 { |
|
130 delete iDeleteAllOperation; |
|
131 iDeleteAllOperation = NULL; |
|
132 } |
129 _DBG_FILE("CNSmlContactsDataStore::CNSmlContactsDataStore(): end"); |
133 _DBG_FILE("CNSmlContactsDataStore::CNSmlContactsDataStore(): end"); |
130 } |
134 } |
131 |
135 |
132 // ---------------------------------------------------------------------------- |
136 // ---------------------------------------------------------------------------- |
133 // CNSmlContactsDataStore::ConstructL() |
137 // CNSmlContactsDataStore::ConstructL() |
200 |
204 |
201 if ( iChangeFinder ) |
205 if ( iChangeFinder ) |
202 { |
206 { |
203 TRAP_IGNORE( iChangeFinder->CloseL() ); |
207 TRAP_IGNORE( iChangeFinder->CloseL() ); |
204 delete iChangeFinder; |
208 delete iChangeFinder; |
|
209 iChangeFinder = NULL; |
205 } |
210 } |
206 |
211 |
207 if(iIdConverter) |
212 if(iIdConverter) |
208 { |
213 { |
209 delete iIdConverter; |
214 delete iIdConverter; |
|
215 iIdConverter = NULL; |
210 } |
216 } |
211 if(iContactLnks) |
217 if(iContactLnks) |
212 { |
218 { |
213 delete iContactLnks; |
219 delete iContactLnks; |
214 } |
220 } |
219 delete iContactViewBase; |
225 delete iContactViewBase; |
220 if ( iContactsModsFetcher ) |
226 if ( iContactsModsFetcher ) |
221 { |
227 { |
222 iContactsModsFetcher->CancelRequest(); |
228 iContactsModsFetcher->CancelRequest(); |
223 delete iContactsModsFetcher; |
229 delete iContactsModsFetcher; |
|
230 iContactsModsFetcher = NULL; |
224 } |
231 } |
225 if ( iContactManager ) |
232 if ( iContactManager ) |
226 { |
233 { |
227 if(iStore) |
234 if(iStore) |
228 { |
235 { |
229 iStore->Close( *this ); |
236 iStore->Close( *this ); |
230 } |
237 } |
231 delete iContactManager; |
238 delete iContactManager; |
|
239 iContactManager = NULL; |
232 } |
240 } |
233 |
241 |
234 |
242 |
235 delete iVCardEngine; |
243 delete iVCardEngine; |
236 // Delete UidSets |
244 // Delete UidSets |
272 delete iPacketStoreName; |
280 delete iPacketStoreName; |
273 |
281 |
274 delete iStoreName; |
282 delete iStoreName; |
275 |
283 |
276 iAddResultArray.Close(); |
284 iAddResultArray.Close(); |
|
285 |
|
286 if(iDeleteAllOperation) |
|
287 { |
|
288 delete iDeleteAllOperation; |
|
289 iDeleteAllOperation = NULL; |
|
290 } |
277 |
291 |
278 } |
292 } |
279 |
293 |
280 // ---------------------------------------------------------------------------- |
294 // ---------------------------------------------------------------------------- |
281 // void CNSmlContactsDataStore::DoOpenL(const TDesC& aStoreName, |
295 // void CNSmlContactsDataStore::DoOpenL(const TDesC& aStoreName, |
358 // void CNSmlContactsDataStore::DoCancelRequest() |
372 // void CNSmlContactsDataStore::DoCancelRequest() |
359 // ---------------------------------------------------------------------------- |
373 // ---------------------------------------------------------------------------- |
360 EXPORT_C void CNSmlContactsDataStore::DoCancelRequest() |
374 EXPORT_C void CNSmlContactsDataStore::DoCancelRequest() |
361 { |
375 { |
362 _DBG_FILE("CNSmlContactsDataStore::DoCancelRequest(): begin"); |
376 _DBG_FILE("CNSmlContactsDataStore::DoCancelRequest(): begin"); |
|
377 if(iLastOperation == ENSMLDeleteAllOp) |
|
378 { |
|
379 if(iDeleteAllOperation) |
|
380 { |
|
381 delete iDeleteAllOperation; |
|
382 iDeleteAllOperation = NULL; |
|
383 } |
|
384 |
|
385 if( iChangeFinder ) |
|
386 { |
|
387 TRAP_IGNORE(iChangeFinder->ResetL()); |
|
388 } |
|
389 iSnapshotRegistered = EFalse; |
|
390 |
|
391 if(iContactLnks) |
|
392 { |
|
393 delete iContactLnks; |
|
394 iContactLnks = NULL; |
|
395 iContactLink = NULL; |
|
396 } |
|
397 |
|
398 if(iContactViewBase) |
|
399 { |
|
400 delete iContactViewBase; |
|
401 iContactViewBase = NULL; |
|
402 } |
|
403 User::RequestComplete( iCallerStatus, KErrCancel ); |
|
404 } |
363 if(iContactsModsFetcher) |
405 if(iContactsModsFetcher) |
364 { |
406 { |
365 iContactsModsFetcher->CancelRequest(); |
407 iContactsModsFetcher->CancelRequest(); |
366 } |
408 } |
367 |
409 |