diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/viewframework/commandhandlers/commandhandlerbase/inc/glxmedialistcommandhandler.h --- a/photosgallery/viewframework/commandhandlers/commandhandlerbase/inc/glxmedialistcommandhandler.h Wed Apr 14 15:57:24 2010 +0300 +++ b/photosgallery/viewframework/commandhandlers/commandhandlerbase/inc/glxmedialistcommandhandler.h Tue Apr 27 16:37:53 2010 +0300 @@ -161,7 +161,8 @@ IMPORT_C virtual TBool ExecuteL(TInt aCommand); /// See @ref MGlxCommandHandler::DynInitMenuPaneL */ - IMPORT_C virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); + IMPORT_C virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane, + TBool aIsBrowseMode); /** * See @ref MGlxCommandHandler::Deactivate @@ -328,6 +329,17 @@ void GetRequiredAttributesL(RArray< TMPXAttribute >& aAttributes, TBool aFilterUsingSelection) const; + /** + * Check if the command handler is currently disabled in browse mode + * @param aCommandId command ID of the command. + * @param aMediaList Medialist instance to check the counts + * @param aIsContextItem ETrue if the current item is an context menu item. + */ + TBool CGlxMediaListCommandHandler::CheckDisabledForBrowseModeL( + TInt aCommandId, + MGlxMediaList& aMediaList, + TBool aIsContextItem); + private: /** Provider of media list */