photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlerremovefrom.h
changeset 1 9ba538e329bd
parent 0 4e91876724a2
child 3 9a9c174934f5
equal deleted inserted replaced
0:4e91876724a2 1:9ba538e329bd
    46      * the correct confirmation note.) Only confirmation notes for EMPXAlbum
    46      * the correct confirmation note.) Only confirmation notes for EMPXAlbum
    47      * and EMPXTag are supported. A confirmation note will not be displayed for
    47      * and EMPXTag are supported. A confirmation note will not be displayed for
    48      * unsupported types.
    48      * unsupported types.
    49      */
    49      */
    50 	IMPORT_C static CGlxCommandHandlerRemoveFrom* NewL(
    50 	IMPORT_C static CGlxCommandHandlerRemoveFrom* NewL(
    51 	    MGlxMediaListProvider* aMediaListProvider, 
    51 	    MGlxMediaListProvider* aMediaListProvider, TMPXGeneralCategory aContainerType);
    52             TMPXGeneralCategory aContainerType, TInt aCommandId = NULL);
       
    53 	    
    52 	    
    54     /** 
       
    55     * Create remove (from) Favourites command handler 
       
    56     * @param aMediaListProvider object that provides the media list.
       
    57     */
       
    58    IMPORT_C static CGlxCommandHandlerRemoveFrom* NewRemFromFavCommandHandlerL(
       
    59        MGlxMediaListProvider* aMediaListProvider);
       
    60 
       
    61 
       
    62 	/** Destructor */
    53 	/** Destructor */
    63 	IMPORT_C ~CGlxCommandHandlerRemoveFrom();
    54 	IMPORT_C ~CGlxCommandHandlerRemoveFrom();
    64 	
    55 	
    65 	/**
    56 	/**
    66 	 * Set the container from which the items will be removed.
    57 	 * Set the container from which the items will be removed.
    77 	    TBool& aConsume) const;    
    68 	    TBool& aConsume) const;    
    78 
    69 
    79     /** See CGlxMpxCommandCommandHandler::ConfirmationTextL */
    70     /** See CGlxMpxCommandCommandHandler::ConfirmationTextL */
    80     virtual HBufC* ConfirmationTextL(TInt aCommandId, TBool aMultiSelection) const;
    71     virtual HBufC* ConfirmationTextL(TInt aCommandId, TBool aMultiSelection) const;
    81 
    72 
    82     virtual HBufC* CompletionTextL() const;
       
    83     
       
    84 protected: // from CGlxCommandHandler
    73 protected: // from CGlxCommandHandler
    85     /** See @ref CGlxCommandHandler::DoActivateL */
    74     /** See @ref CGlxCommandHandler::DoActivateL */
    86     void DoActivateL(TInt /*aViewId*/);
    75     void DoActivateL(TInt /*aViewId*/);
    87     
    76     
    88 private:
    77 private:
    89     /** Second phase constructor */
    78     /** Second phase constructor */
    90 	void ConstructL(TInt aCommandId);
    79 	void ConstructL();
    91 
    80 
    92     /** Constructor */
    81     /** Constructor */
    93 	CGlxCommandHandlerRemoveFrom(MGlxMediaListProvider* aMediaListProvider, TMPXGeneralCategory aContainerType);
    82 	CGlxCommandHandlerRemoveFrom(MGlxMediaListProvider* aMediaListProvider, TMPXGeneralCategory aContainerType);
    94 	
    83 	
    95 private:
    84 private:
    96     /// Resource file offset
    85     /// Resource file offset
    97 	TInt iResourceOffset;
    86 	TInt iResourceOffset;
    98 	TGlxMediaId iRemoveFromContainerId;
    87 	TGlxMediaId iRemoveFromContainerId;
    99 	TMPXGeneralCategory iContainerType;
    88 	TMPXGeneralCategory iContainerType;
   100 	TInt iCommandId;
       
   101 	};
    89 	};
   102 
    90 
   103 #endif // __C_GLXCOMMANDHANDLERREMOVEFROM_H__
    91 #endif // __C_GLXCOMMANDHANDLERREMOVEFROM_H__