photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandlersend.h
branchRCL_3
changeset 25 191387a8b767
parent 13 71da52165949
equal deleted inserted replaced
22:2dac0fdba72b 25:191387a8b767
    49 NONSHARABLE_CLASS (CGlxCommandHandlerSend) : public CGlxMediaListCommandHandler, 
    49 NONSHARABLE_CLASS (CGlxCommandHandlerSend) : public CGlxMediaListCommandHandler, 
    50 							   public MGlxMediaListObserver
    50 							   public MGlxMediaListObserver
    51 	{
    51 	{
    52 public:  // Constructors and destructor
    52 public:  // Constructors and destructor
    53 	/**
    53 	/**
    54 	* Two-phased constructor.
    54 	 * Two-phased constructor.
    55     * @param aMediaListProvider pointer to media list owner
    55 	 * @param aMediaListProvider pointer to media list owner
    56     * @param aHasToolbarItem Whether Command Should be toolbar item (ETrue - if toolbar item)
    56 	 * @param aHasToolbarItem Whether Command Should be toolbar item (ETrue - if toolbar item)
    57     * @return pointer to CGlxCommandHandlerSend object
    57 	 * @param aFileName resource file
    58     */
    58 	 * @return pointer to CGlxCommandHandlerSend object
    59 	IMPORT_C static CGlxCommandHandlerSend* NewL( 
    59 	 */
    60 				MGlxMediaListProvider* aMediaListProvider, TBool aHasToolbarItem );
    60 	IMPORT_C static CGlxCommandHandlerSend* NewL(
       
    61 			MGlxMediaListProvider* aMediaListProvider, TBool aHasToolbarItem,
       
    62 			const TDesC& aFileName);
    61     
    63     
    62     /**
    64     /**
    63     * Destructor.
    65     * Destructor.
    64     */
    66     */
    65     IMPORT_C ~CGlxCommandHandlerSend();
    67     IMPORT_C ~CGlxCommandHandlerSend();
    71 	/** @ref CGlxCommandHandler::DoIsDisabled*/ 
    73 	/** @ref CGlxCommandHandler::DoIsDisabled*/ 
    72 	TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;
    74 	TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;
    73 
    75 
    74 private:
    76 private:
    75 	/**
    77 	/**
    76     * Symbian 2nd phase constructor
    78 	 * Symbian 2nd phase constructor
    77 	*/
    79 	 */
    78     void ConstructL();
    80 	void ConstructL(const TDesC& aFileName);
    79 
    81 
    80     /**
    82     /**
    81     * C++ default constructor.
    83     * C++ default constructor.
    82     * @param aMediaListProvider pointer to media list owner
    84     * @param aMediaListProvider pointer to media list owner
    83     * @ref CGlxMediaListCommandHandler
    85     * @ref CGlxMediaListCommandHandler
   155 	*/
   157 	*/
   156     void HandleFocusChangedL(NGlxListDefs::TFocusChangeType aType, TInt aNewIndex, 
   158     void HandleFocusChangedL(NGlxListDefs::TFocusChangeType aType, TInt aNewIndex, 
   157     				TInt aOldIndex, MGlxMediaList* aList);
   159     				TInt aOldIndex, MGlxMediaList* aList);
   158 
   160 
   159     /**
   161     /**
   160     * not implemented
       
   161 	* @ref MGlxMediaListObserver::HandleItemSelectedL
   162 	* @ref MGlxMediaListObserver::HandleItemSelectedL
   162 	*/
   163 	*/
   163     void HandleItemSelectedL(TInt /*aIndex*/, TBool /*aSelected*/, 
   164     void HandleItemSelectedL(TInt aIndex, TBool aSelected, 
   164     							MGlxMediaList* /*aList*/){};
   165     							MGlxMediaList* aList);
   165 
   166 
   166     /**
   167     /**
   167     * not implemented
   168     * not implemented
   168 	* @ref MGlxMediaListObserver::HandleMessageL
   169 	* @ref MGlxMediaListObserver::HandleMessageL
   169 	*/
   170 	*/
   188 	* Read the selected items uri and use it to send the items
   189 	* Read the selected items uri and use it to send the items
   189 	*/
   190 	*/
   190 	void SendSelectedItemsL();
   191 	void SendSelectedItemsL();
   191 	
   192 	
   192 	/**
   193 	/**
   193 	* Load the resource file
   194 	 * Load the resource file
   194 	*/
   195 	 * @param aFileName resource file
   195 	void LoadRscFileL();	
   196 	 */
       
   197 	void LoadRscFileL(const TDesC& aFileName);	
   196 
   198 
   197 	/**
   199 	/**
   198 	* Return the static capabilities for sending a media item
   200 	* Return the static capabilities for sending a media item
   199 	*/
   201 	*/
   200 	TSendingCapabilities Capabilities();
   202 	TSendingCapabilities Capabilities();