phonebookui/Phonebook2/ccapplication/ccadetailsviewplugin/src/ccappdetailsviewplugin.cpp
branchRCL_3
changeset 39 a6539d1e8e43
parent 23 5586b4d2ec3e
child 64 c1e8ba0c2b16
equal deleted inserted replaced
35:4ae315f230bc 39:a6539d1e8e43
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Implementation of details view plugin
    14 * Description:  Implementation of details view plugin
    15 *  Version     : %version: he1s60#23.1.1.2.17 %
    15 *  Version     : %version: be1s60pr#23.1.1.2.18 %
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include <bautils.h>
    20 #include <bautils.h>
   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 // --------------------------------------------------------------------------