idlefw/plugins/mcsplugin/settings/src/mcspluginsettings.cpp
branchRCL_3
changeset 101 9e077f9a342c
parent 64 b276298d5729
equal deleted inserted replaced
82:ace62b58f4b2 101:9e077f9a342c
    33 #include "mcspluginuids.hrh"
    33 #include "mcspluginuids.hrh"
    34 
    34 
    35 const TUid KUidScutSettingsPlugin =
    35 const TUid KUidScutSettingsPlugin =
    36 {
    36 {
    37     AI_UID_ECOM_IMPLEMENTATION_SETTINGS_MCSPLUGIN
    37     AI_UID_ECOM_IMPLEMENTATION_SETTINGS_MCSPLUGIN
    38 };
       
    39 
       
    40 const TUid KUidAiFwCommon =
       
    41 {
       
    42         AI_UID3_AIFW_COMMON
       
    43 };
    38 };
    44 
    39 
    45 _LIT(KMCSSettingsResourceFileName, "mcspluginsettingsres.rsc");
    40 _LIT(KMCSSettingsResourceFileName, "mcspluginsettingsres.rsc");
    46 
    41 
    47 /** Implementation table for MCS settings plug-in */
    42 /** Implementation table for MCS settings plug-in */
   146     case EAknCmdHelp:
   141     case EAknCmdHelp:
   147         Container()->HandleHelpCommandL();
   142         Container()->HandleHelpCommandL();
   148         break;
   143         break;
   149 
   144 
   150     case EAknSoftkeyBack:
   145     case EAknSoftkeyBack:
   151         if (iAppUi->View(KGSMainViewUid))
       
   152         {
       
   153         // if we are in GS activate parent plugin view (standby view)...
       
   154         iAppUi->ActivateLocalViewL(KGSPrslnPluginUid);
       
   155         }
       
   156         else
       
   157         {
       
   158             iAppUi->ActivateLocalViewL(iPrevViewId.iViewUid);
       
   159         }
       
   160         break;
       
   161 
       
   162     case EAknSoftkeyExit:
   146     case EAknSoftkeyExit:
   163         iAppUi->HandleCommandL(EAknCmdExit);
   147         iAppUi->HandleCommandL(EAknCmdExit);
   164         break;
   148         break;
   165 
   149 
   166     default:
   150     default:
   174 // First method called by the Avkon framwork
   158 // First method called by the Avkon framwork
   175 // ----------------------------------------------------------------------------
   159 // ----------------------------------------------------------------------------
   176 //
   160 //
   177 void CMCSPluginSettings::DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage)
   161 void CMCSPluginSettings::DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage)
   178     {
   162     {
   179     CEikButtonGroupContainer* cba = Cba();
       
   180 
       
   181     if (cba)
       
   182     {
       
   183         if (aCustomMessageId == KUidAiFwCommon)
       
   184         {
       
   185             cba->SetCommandSetL(R_SCUT_SOFTKEYS_OPTIONS_EXIT_CHANGE);
       
   186         }
       
   187         else
       
   188         {
       
   189             cba->SetCommandSetL(R_SCUT_SOFTKEYS_OPTIONS_BACK_CHANGE);
       
   190         }
       
   191         cba->DrawDeferred();
       
   192     }
       
   193 
       
   194     iModel->SetPluginIdL( aCustomMessage );
   163     iModel->SetPluginIdL( aCustomMessage );
   195     iModel->UpdateAppListL( EFalse );
   164     iModel->UpdateAppListL( EFalse );
   196     iModel->UpdateBkmListL( EFalse );
   165     iModel->UpdateBkmListL( EFalse );
   197     iModel->UpdateSettingsL();
   166     iModel->UpdateSettingsL();
   198     CGSBaseView::DoActivateL( aPrevViewId, aCustomMessageId, aCustomMessage );
   167     CGSBaseView::DoActivateL( aPrevViewId, aCustomMessageId, aCustomMessage );