photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraiwedit.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:    Image Editor command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXCOMMANDHANDLERAIWEDIT_H
       
    22 #define C_GLXCOMMANDHANDLERAIWEDIT_H
       
    23 
       
    24 #include "glxcommandhandleraiwbase.h"
       
    25 
       
    26 class CGlxAttributeContext;
       
    27 class CAiwGenericParamList;
       
    28 class CGlxMedia;
       
    29 class MGlxMediaListProvider;
       
    30 
       
    31 
       
    32 /**
       
    33  *  CGlxCommandHandlerAiwEdit
       
    34  *
       
    35  *  Edit AIW command handler
       
    36  *
       
    37  *  @lib glxcommoncommandhandlers.lib
       
    38  */
       
    39 NONSHARABLE_CLASS (CGlxCommandHandlerAiwEdit)
       
    40     : public CGlxCommandHandlerAiwBase
       
    41     {
       
    42 public:
       
    43     /**
       
    44      * Two-phase constructor
       
    45      * @param aMediaListProvider object that provides the media list
       
    46      * @param aMenuResource The menu resource that the AIW command will be 
       
    47      *          implented in
       
    48      * @return Fully constructed command handler
       
    49      * @warning ConstructL of base class is called. If ConstructL is 
       
    50      *          implemented in this class, then care must be taken to call 
       
    51      *          CGlxCommandHandlerAiwBase::ConstructL
       
    52      */
       
    53 	IMPORT_C static CGlxCommandHandlerAiwEdit* NewL(
       
    54 	    MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource);
       
    55 	    
       
    56 protected: // From CGlxMediaListCommandHandler
       
    57 	/**
       
    58 	 * See @ref CGlxMediaListCommandHandler::DoGetRequiredAttributesL
       
    59 	 */
       
    60     virtual void DoGetRequiredAttributesL(RArray<TMPXAttribute>& aAttributes, TBool aFilterUsingSelection) const;
       
    61 
       
    62 protected: // From CGlxCommandHandlerAiwBase
       
    63     virtual TBool AppendAiwParameterL(const TGlxMedia& aItem, 
       
    64                                      CGlxAiwServiceHandler& aAiwServiceHandler);
       
    65     virtual TInt CommandId() const;
       
    66     virtual TInt AiwCommandId() const ;
       
    67     virtual TInt AiwInterestResource() const ;
       
    68     virtual TInt CommandSpace() const ;
       
    69 	//single clk chng-hide edit for 0 or >1 items
       
    70     void AiwDoDynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    71 private:
       
    72     /**
       
    73      * Constructor
       
    74      */
       
    75     CGlxCommandHandlerAiwEdit(MGlxMediaListProvider* aMediaListProvider, 
       
    76             TInt aMenuResource);
       
    77     };
       
    78 
       
    79 #endif // C_GLXCOMMANDHANDLERAIWEDIT_H