systemsettings/gssensorplugin/src/gssenturnctrlview.cpp
branchRCL_3
changeset 82 4610cd70c542
parent 63 c2c61fdca848
equal deleted inserted replaced
70:739cef680932 82:4610cd70c542
    27 
    27 
    28 #include <aknViewAppUi.h>
    28 #include <aknViewAppUi.h>
    29 #include <gssensorpluginrsc.rsg>
    29 #include <gssensorpluginrsc.rsg>
    30 #include <gscommon.hrh>
    30 #include <gscommon.hrh>
    31 #include <eikbtgpc.h>
    31 #include <eikbtgpc.h>
    32 #include <featmgr.h>
       
    33 #include <hlplch.h>
       
    34 
    32 
    35 
    33 
    36 // ========================= MEMBER FUNCTIONS ================================
    34 // ========================= MEMBER FUNCTIONS ================================
    37 
    35 
    38 // ---------------------------------------------------------------------------
    36 // ---------------------------------------------------------------------------
   121             // Update MSK label
   119             // Update MSK label
   122             CheckMiddleSoftkeyLabelL();
   120             CheckMiddleSoftkeyLabelL();
   123             break;
   121             break;
   124             }
   122             }
   125         case EGSCmdOk:
   123         case EGSCmdOk:
   126         case EAknSoftkeyBack:
   124             // Check selections
   127             {
       
   128 				 // Check selections
       
   129             Container()->CheckSelections();
   125             Container()->CheckSelections();
   130             // Store changes and show previous view
   126             // Store changes and show previous view
   131             Container()->StoreSelectionsL();
   127             Container()->StoreSelectionsL();
   132             // cont. to next case
   128             // cont. to next case
       
   129         case EAknSoftkeyBack:
       
   130             {
   133             // activate previous view
   131             // activate previous view
   134             iAppUi->ActivateLocalViewL( KGSSensorPluginUid );
   132             iAppUi->ActivateLocalViewL( KGSSensorPluginUid );
   135             break;
   133             break;
   136             }
   134             }
   137 		case EAknCmdHelp:
       
   138             {   
       
   139             if ( FeatureManager::FeatureSupported( KFeatureIdHelp ) )
       
   140                  {
       
   141                  HlpLauncher::LaunchHelpApplicationL(
       
   142                  iEikonEnv->WsSession(), iAppUi->AppHelpContextL() );
       
   143                  }
       
   144             break;
       
   145             }  
       
   146         case EGSSenMenuExit:
       
   147             {
       
   148          aCommand=EAknCmdExit;
       
   149          iAppUi->HandleCommandL( aCommand );
       
   150           break;
       
   151             }
       
   152 
       
   153         default:
   135         default:
   154             iAppUi->HandleCommandL( aCommand );
   136             iAppUi->HandleCommandL( aCommand );
   155             break;
   137             break;
   156         }
   138         }
   157     TRACE_( "[GSSensorPlugin] CGSSenTurnCtrlView::HandleCommandL() - return" );
   139     TRACE_( "[GSSensorPlugin] CGSSenTurnCtrlView::HandleCommandL() - return" );
   158     }
   140     }
   159 // ---------------------------------------------------------------------------
   141 
   160 // CGSSenTurnCtrlView::DoDeactivate
       
   161 // Deactivates the current view 
       
   162 // ---------------------------------------------------------------------------
       
   163 void CGSSenTurnCtrlView::DoDeactivate()
       
   164     {
       
   165     // Check selections
       
   166            Container()->CheckSelections();
       
   167            // Store changes and show previous view
       
   168            Container()->StoreSelectionsL();
       
   169            CGSSensorBaseView::DoDeactivate();
       
   170     
       
   171     }
       
   172 // ---------------------------------------------------------------------------
   142 // ---------------------------------------------------------------------------
   173 // CGSSenTurnCtrlView::Container
   143 // CGSSenTurnCtrlView::Container
   174 // Returns call container item
   144 // Returns call container item
   175 // ---------------------------------------------------------------------------
   145 // ---------------------------------------------------------------------------
   176 //
   146 //