# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1265062923 -7200 # Node ID 3f8368f032cf6fad53ef09bad3b441d1b50cc8d2 # Parent a50b123945f0e02cbc46d8cb2e9651084e69dd01 Revision: 201003 Kit: 201005 diff -r a50b123945f0 -r 3f8368f032cf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Data/GSPowerSavingQueryPluginRsc.rss --- 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; + } + }; + } //---------------------------------------------------- // diff -r a50b123945f0 -r 3f8368f032cf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPlugin.h --- 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: /** diff -r a50b123945f0 -r 3f8368f032cf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Inc/GSPowerSavingQueryPluginContainer.h --- 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; diff -r a50b123945f0 -r 3f8368f032cf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPlugin.cpp --- 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() // diff -r a50b123945f0 -r 3f8368f032cf gssettingsuis/Gs/GSPowerSavingQueryPlugin/Src/GSPowerSavingQueryPluginContainer.cpp --- 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