photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerfilterimagesorvideos.h
branchRCL_3
changeset 26 5b3385a43d68
equal deleted inserted replaced
25:8e5f6eea9c9f 26:5b3385a43d68
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Show items command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_glxcommandhandlerfilterimagesorvideos_H
       
    22 #define C_glxcommandhandlerfilterimagesorvideos_H
       
    23 
       
    24 // EXTERNAL INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // INTERAL INCLUDES
       
    28 #include <glxmedialistcommandhandler.h>
       
    29 #include <glxfiltergeneraldefs.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class MGlxMediaListProvider;
       
    33 class CGlxUiUtility;
       
    34 
       
    35 /**
       
    36  * @class CGlxCommandHandlerFilterImagesOrVideos
       
    37  *
       
    38  * Command handler providing the options "Show All", "Show Images" and "Show Videos".
       
    39  * Only 2 of the 3 will ever be shown at one time
       
    40  * @author Rowland Cook
       
    41  * @author Kimmo Hoikka (Release 5.5 backport)
       
    42  * @internal reviewed 25/10/2007 by David Holland
       
    43  * @internal reviewed 08/02/2008 by Rhodri Byles
       
    44  */
       
    45 NONSHARABLE_CLASS( CGlxCommandHandlerFilterImagesOrVideos )
       
    46     : public CGlxMediaListCommandHandler
       
    47 	{
       
    48     public:
       
    49 
       
    50         /**
       
    51          * Two-phase constructor
       
    52     	 *
       
    53     	 * @param aMediaListProvider media list owner
       
    54     	 */
       
    55     	IMPORT_C static CGlxCommandHandlerFilterImagesOrVideos* NewL(
       
    56     	    MGlxMediaListProvider* aMediaListProvider );
       
    57 
       
    58     	/** Destructor */
       
    59     	IMPORT_C ~CGlxCommandHandlerFilterImagesOrVideos();
       
    60 
       
    61     private:
       
    62 
       
    63         /** Constructor */
       
    64     	CGlxCommandHandlerFilterImagesOrVideos(
       
    65     	    MGlxMediaListProvider* aMediaListProvider, 
       
    66     	    CGlxUiUtility& aUiUtility );
       
    67         /** 2nd phase Constructor */
       
    68     	void ConstructL();
       
    69 
       
    70     private: // From CGlxMediaListCommandHandler
       
    71 
       
    72         /// @ref CGlxMediaListCommandHandler
       
    73         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane, 
       
    74 								TBool aIsBrowseMode );
       
    75 
       
    76         /// @ref CGlxMediaListCommandHandler
       
    77         void DoActivateL( TInt aViewId );
       
    78 
       
    79         /// @ref CGlxMediaListCommandHandler
       
    80         TBool DoExecuteL( TInt aCommandId, MGlxMediaList& aList );
       
    81 
       
    82     private:
       
    83 
       
    84         /**
       
    85          * Sets the item type in the media list must use
       
    86          * @param the new item type
       
    87          */
       
    88         void SetItemTypeInMediaListL( TGlxFilterItemType aItemType );
       
    89 
       
    90     private: // data
       
    91 
       
    92         /// Ref: HuiUtility
       
    93         CGlxUiUtility& iUiUtility;
       
    94 
       
    95         // boolean to record what screen mode is used.
       
    96         TBool iInFullScreen;
       
    97 
       
    98 	};
       
    99 
       
   100 #endif // C_glxcommandhandlerfilterimagesorvideos_H