photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraiwshowmap.h
changeset 0 4e91876724a2
child 3 9a9c174934f5
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     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      * @return Fully constructed command handler
       
    50      * @warning ConstructL of base class is called. If ConstructL is 
       
    51      *          implemented in this class, then care must be taken to call 
       
    52      *          CGlxCommandHandlerAiwBase::ConstructL
       
    53      */
       
    54 	IMPORT_C static CGlxCommandHandlerAiwShowMap* NewL(
       
    55 	    MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource);
       
    56 	
       
    57     /**
       
    58      * Perform any actions needed before the options menu is displayed.
       
    59      * The view calling this must first arrange a wait dialog to be displayed, as this operation may take
       
    60      * a long time to complete
       
    61      */
       
    62 	void PreDynInitMenuPaneL(TInt aResourceId);
       
    63 	
       
    64 	/**
       
    65 	 * Destructor
       
    66 	 */
       
    67 	~CGlxCommandHandlerAiwShowMap();
       
    68 
       
    69 protected: // From CGlxMediaListCommandHandler
       
    70 	/**
       
    71 	 * See @ref CGlxMediaListCommandHandler::DoGetRequiredAttributesL
       
    72 	 */
       
    73     virtual void DoGetRequiredAttributesL(RArray<TMPXAttribute>& aAttributes, TBool aFilterUsingSelection) const;
       
    74 
       
    75 protected: // From CGlxCommandHandlerAiwBase
       
    76     TBool AppendAiwParameterL(const TGlxMedia& aItem, 
       
    77                                      CGlxAiwServiceHandler& aAiwServiceHandler);
       
    78     TInt CommandId() const;
       
    79     TInt AiwCommandId() const ;
       
    80     TInt AiwInterestResource() const ;
       
    81     TInt CommandSpace() const ;
       
    82     void AiwDoDynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    83 
       
    84 
       
    85     
       
    86 private:
       
    87     /**
       
    88      * Constructor
       
    89      * @param aMediaListProvider object that provides the media list
       
    90      * @param aMenuResource The menu resource that the AIW command will be 
       
    91      *          implented in
       
    92      */
       
    93     CGlxCommandHandlerAiwShowMap(MGlxMediaListProvider* aMediaListProvider, 
       
    94             TInt aMenuResource);
       
    95     
       
    96     /**
       
    97      * Check if a selected item in a media list has location information.
       
    98      * @param MediaList to check
       
    99      * @return ETrue if location information is there. EFalse if not
       
   100      */
       
   101     TBool IsItemWithLocationInfoSelected(MGlxMediaList& aList);
       
   102             
       
   103 private:
       
   104     RPointerArray<HBufC8> iBufferArray;  // owned
       
   105     };
       
   106 
       
   107 #endif // C_GLXCOMMANDHANDLERAIWSHOWMAP_H