505 // -------------------------------------------------------------------------- |
505 // -------------------------------------------------------------------------- |
506 // CCCAppDetailsViewPlugin::StoreUnavailable |
506 // CCCAppDetailsViewPlugin::StoreUnavailable |
507 // -------------------------------------------------------------------------- |
507 // -------------------------------------------------------------------------- |
508 // |
508 // |
509 void CCCAppDetailsViewPlugin::StoreUnavailable( |
509 void CCCAppDetailsViewPlugin::StoreUnavailable( |
510 MVPbkContactStore& /*aContactStore*/, |
510 MVPbkContactStore& aContactStore, |
511 TInt /*aReason*/) |
511 TInt /*aReason*/) |
512 { |
512 { |
513 if (iSchedulerWait.IsStarted()) |
513 if( iLink ) |
514 { |
514 { |
515 iSchedulerWait.AsyncStop(); |
515 TVPbkContactStoreUriPtr linkuri = |
516 } |
516 iLink->ContactStore().StoreProperties().Uri(); |
|
517 |
|
518 TVPbkContactStoreUriPtr uri = aContactStore.StoreProperties().Uri(); |
|
519 |
|
520 if( linkuri.Compare( uri, |
|
521 TVPbkContactStoreUriPtr::EContactStoreUriAllComponents ) == 0 ) |
|
522 { |
|
523 /* |
|
524 * When the end user is selecting a phone contact, the SIM store |
|
525 * will be opened during opening phone stores, and this function is |
|
526 * called if the SIM store is unavailable.However the scheduler wait |
|
527 * object can not stop during the operation (phone contact |
|
528 * selecting), since the program is keeping on waiting for the |
|
529 * other call backs coming. |
|
530 */ |
|
531 if (iSchedulerWait.IsStarted()) |
|
532 { |
|
533 iSchedulerWait.AsyncStop(); |
|
534 } |
|
535 } |
|
536 } |
|
537 else |
|
538 { |
|
539 if (iSchedulerWait.IsStarted()) |
|
540 { |
|
541 iSchedulerWait.AsyncStop(); |
|
542 } |
|
543 } |
517 } |
544 } |
518 |
545 |
519 // -------------------------------------------------------------------------- |
546 // -------------------------------------------------------------------------- |
520 // CCCAppDetailsViewPlugin::HandleStoreEventL |
547 // CCCAppDetailsViewPlugin::HandleStoreEventL |
521 // -------------------------------------------------------------------------- |
548 // -------------------------------------------------------------------------- |