Revision: 201003 default PDK_3.0.g
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:22:03 +0200
changeset 4 3f8368f032cf
parent 3 a50b123945f0
child 8 f62c3a3d66b8
Revision: 201003 Kit: 201005
gssettingsuis/Gs/GSPowerSavingQueryPlugin/Data/GSPowerSavingQueryPluginRsc.rss
gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPlugin.h
gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginContainer.h
gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPlugin.cpp
gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPluginContainer.cpp
--- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Data/GSPowerSavingQueryPluginRsc.rss	Tue Jan 26 12:09:08 2010 +0200
+++ b/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Data/GSPowerSavingQueryPluginRsc.rss	Tue Feb 02 00:22:03 2010 +0200
@@ -92,10 +92,31 @@
 //
 RESOURCE AVKON_VIEW r_gs_power_saving_query_view
     {
-    menubar = r_gs_menubar_change_exit;
+    menubar = r_gs_powersavingquery_menubar;
     cba = R_GS_SOFTKEYS_OPTIONS_BACK_CHANGE;
     }
 
+// -----------------------------------------------------------------------------
+//
+// r_gs_powersavingquery_menubar
+// GS_Powersavingquery_Plugin menu with 'change' and 'exit' items without help.
+//
+// -----------------------------------------------------------------------------
+//
+RESOURCE MENU_BAR r_gs_powersavingquery_menubar
+    {
+    titles =
+        {
+        MENU_TITLE
+            {
+            menu_pane = r_gs_menu_item_exit;
+            },
+        MENU_TITLE
+            {
+            menu_pane = r_gs_menu_item_change;
+            }
+        };
+    }
 
 //----------------------------------------------------
 //
--- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPlugin.h	Tue Jan 26 12:09:08 2010 +0200
+++ b/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPlugin.h	Tue Feb 02 00:22:03 2010 +0200
@@ -121,10 +121,6 @@
         */
         CGSPowerSavingQueryPluginContainer* Container();
 
-    protected: // From MEikMenuObserver
-
-        void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
-
     protected:
 
         /**
--- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginContainer.h	Tue Jan 26 12:09:08 2010 +0200
+++ b/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginContainer.h	Tue Feb 02 00:22:03 2010 +0200
@@ -81,13 +81,6 @@
          */
         void MakePowerSavingQueryItemL();
     
-    private:
-        /**
-        * Required for help.
-        * 
-        */
-        void GetHelpContext( TCoeHelpContext& aContext ) const;
-    
     private: // data
         //Listbox item array model
         CGSListBoxItemTextArray* iListboxItemArray;
--- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPlugin.cpp	Tue Jan 26 12:09:08 2010 +0200
+++ b/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPlugin.cpp	Tue Feb 02 00:22:03 2010 +0200
@@ -200,15 +200,6 @@
         case EAknSoftkeyBack:
             iAppUi->ActivateLocalViewL( KGSDeviceManagementPluginUid );
             break;
-        case EAknCmdHelp:
-            {
-            if( FeatureManager::FeatureSupported( KFeatureIdHelp ) )
-                {
-                HlpLauncher::LaunchHelpApplicationL(
-                    iEikonEnv->WsSession(), iAppUi->AppHelpContextL() );
-                }
-            break;
-            }
         default:
             iAppUi->HandleCommandL( aCommand );
             break;
@@ -372,24 +363,6 @@
   
     }
 
-
-// -----------------------------------------------------------------------------
-// CGSPowerSavingQueryPlugin::DynInitMenuPaneL()
-//
-// dynamically handle help item if not supported
-// -----------------------------------------------------------------------------
-//
-void CGSPowerSavingQueryPlugin::DynInitMenuPaneL( TInt aResourceId, 
-                                          CEikMenuPane* aMenuPane )
-    {   
-    if( aResourceId == R_GS_MENU_ITEM_HELP )
-        {
-        User::LeaveIfNull( aMenuPane );
-        
-        aMenuPane->SetItemDimmed( EAknCmdHelp, 
-                !FeatureManager::FeatureSupported( KFeatureIdHelp ) );
-        }
-    }
 // -----------------------------------------------------------------------------
 // CGSPowerSavingQueryPlugin::SwitchOnOffValue()
 //
--- a/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPluginContainer.cpp	Tue Jan 26 12:09:08 2010 +0200
+++ b/gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPluginContainer.cpp	Tue Feb 02 00:22:03 2010 +0200
@@ -156,18 +156,6 @@
     }
 
 // ---------------------------------------------------------------------------
-// CGSPowerSavingQueryPluginContainer::GetHelpContext() const
-//  
-// Gets Help 
-// ---------------------------------------------------------------------------
-//
-void CGSPowerSavingQueryPluginContainer::GetHelpContext( TCoeHelpContext& aContext ) const
-    {
-      aContext.iMajor = KUidGS;
-  //  aContext.iContext = 0;
-    }
-
-// ---------------------------------------------------------------------------
 // CGSPowerSavingQueryPluginContainer::CurrentFeatureId()
 //
 // Return the feature id of selected listitem