photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraiwshowmap.h
branchRCL_3
changeset 60 5b3385a43d68
equal deleted inserted replaced
59:8e5f6eea9c9f 60: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 on map command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXCOMMANDHANDLERAIWSHOWMAP_H
       
    22 #define C_GLXCOMMANDHANDLERAIWSHOWMAP_H
       
    23 
       
    24 #include "glxcommandhandleraiwbase.h"
       
    25 
       
    26 class CGlxAttributeContext;
       
    27 class CAiwGenericParamList;
       
    28 class CGlxMedia;
       
    29 class MGlxMediaListProvider;
       
    30 class TCoordinate;
       
    31 
       
    32 /**
       
    33  *  CGlxCommandHandlerAiwShowMap
       
    34  *
       
    35  *  Show map AIW command handler
       
    36  *
       
    37  *  @author Rhodri Byles
       
    38  *  @lib glxcommoncommandhandlers.lib
       
    39  */
       
    40 NONSHARABLE_CLASS (CGlxCommandHandlerAiwShowMap)
       
    41     : public CGlxCommandHandlerAiwBase
       
    42     {
       
    43 public:
       
    44     /**
       
    45 	 * Two-phase constructor
       
    46 	 * @param aMediaListProvider object that provides the media list
       
    47 	 * @param aMenuResource The menu resource that the AIW command will be 
       
    48 	 *          implented in
       
    49 	 * @param aFileName resource file
       
    50 	 * @return Fully constructed command handler
       
    51 	 * @warning ConstructL of base class is called. If ConstructL is 
       
    52 	 *          implemented in this class, then care must be taken to call 
       
    53 	 *          CGlxCommandHandlerAiwBase::ConstructL
       
    54 	 */
       
    55 	IMPORT_C static CGlxCommandHandlerAiwShowMap* NewL(
       
    56 			MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource,
       
    57 			const TDesC& aFileName);
       
    58 	
       
    59     /**
       
    60      * Perform any actions needed before the options menu is displayed.
       
    61      * The view calling this must first arrange a wait dialog to be displayed, as this operation may take
       
    62      * a long time to complete
       
    63      */
       
    64 	void PreDynInitMenuPaneL(TInt aResourceId);
       
    65 	
       
    66 	/**
       
    67 	 * Destructor
       
    68 	 */
       
    69 	~CGlxCommandHandlerAiwShowMap();
       
    70 
       
    71 protected: // From CGlxMediaListCommandHandler
       
    72 	/**
       
    73 	 * See @ref CGlxMediaListCommandHandler::DoGetRequiredAttributesL
       
    74 	 */
       
    75     virtual void DoGetRequiredAttributesL(RArray<TMPXAttribute>& aAttributes, TBool aFilterUsingSelection) const;
       
    76 
       
    77 protected: // From CGlxCommandHandlerAiwBase
       
    78     TBool AppendAiwParameterL(const TGlxMedia& aItem, 
       
    79                                      CGlxAiwServiceHandler& aAiwServiceHandler);
       
    80     TInt CommandId() const;
       
    81     TInt AiwCommandId() const ;
       
    82     TInt AiwInterestResource() const ;
       
    83     TInt CommandSpace() const ;
       
    84     void AiwDoDynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    85 
       
    86 
       
    87     
       
    88 private:
       
    89     /**
       
    90      * Constructor
       
    91      * @param aMediaListProvider object that provides the media list
       
    92      * @param aMenuResource The menu resource that the AIW command will be 
       
    93      *          implented in
       
    94      */
       
    95     CGlxCommandHandlerAiwShowMap(MGlxMediaListProvider* aMediaListProvider, 
       
    96             TInt aMenuResource);
       
    97     
       
    98     /**
       
    99      * Check if a selected item in a media list has location information.
       
   100      * @param MediaList to check
       
   101      * @return ETrue if location information is there. EFalse if not
       
   102      */
       
   103     TBool IsItemWithLocationInfoSelected(MGlxMediaList& aList);
       
   104 
       
   105 	/**
       
   106 	 * Checks the viewing mode [FS/Grid]
       
   107 	 */
       
   108     TBool IsInFullScreenViewingModeL();
       
   109 private:
       
   110     RPointerArray<HBufC8> iBufferArray;  // owned
       
   111     };
       
   112 
       
   113 #endif // C_GLXCOMMANDHANDLERAIWSHOWMAP_H