engine/collectionframework/datasource/plugins/glxdatasourcemde2.5/inc/glxdatasourcetaskmdscommand.h
changeset 43 72396548277c
parent 23 74c9f037fd5d
child 71 27f2d7aec52a
equal deleted inserted replaced
42:5e1df1b52eb3 43:72396548277c
    62      * Constructor.
    62      * Constructor.
    63      * @param aRequest request to be executed.
    63      * @param aRequest request to be executed.
    64      * @param aObserver observer to be informed when task has completed.
    64      * @param aObserver observer to be informed when task has completed.
    65      * @param aDataSource data source to be used by this object.
    65      * @param aDataSource data source to be used by this object.
    66      */
    66      */
    67      CGlxDataSourceTaskMdeCommand(CGlxCommandRequest* aRequest, MGlxDataSourceRequestObserver& aObserver,
    67      CGlxDataSourceTaskMdeCommand(CGlxCommandRequest* aRequest, 
       
    68              MGlxDataSourceRequestObserver& aObserver,
    68              CGlxDataSource* aDataSource);
    69              CGlxDataSource* aDataSource);
    69 
    70 
    70      /**
    71      /**
    71       * Symbian 2nd stage constructor
    72       * Symbian 2nd stage constructor
    72       * See @ref CGlxDataSourceTaskMde::ConstructL
    73       * See @ref CGlxDataSourceTaskMde::ConstructL
    86      void AddContainerL(const TDesC& aContainerName);
    87      void AddContainerL(const TDesC& aContainerName);
    87  
    88  
    88      /**
    89      /**
    89      * See @ref MGlxCommandParserCallback::AddToContainerL
    90      * See @ref MGlxCommandParserCallback::AddToContainerL
    90      */ 
    91      */ 
    91      void AddToContainerL(const RArray<TGlxMediaId>& aSourceIds, const RArray<TGlxMediaId>& aTargetContainers);
    92      void AddToContainerL(const RArray<TGlxMediaId>& aSourceIds, 
       
    93              const RArray<TGlxMediaId>& aTargetContainers);
    92      
    94      
    93      /**
    95      /**
    94       * See @ref MGlxCommandParserCallback::AddToContainerL
    96       * See @ref MGlxCommandParserCallback::AddToContainerL
    95       */ 
    97       */ 
    96      void AddToContainerL(const TDesC& aSourceUri, const RArray<TGlxMediaId>& aTargetContainers);    
    98      void AddToContainerL(const TDesC& aSourceUri, 
       
    99              const RArray<TGlxMediaId>& aTargetContainers);    
    97      
   100      
    98      /**
   101      /**
    99       * See @ref MGlxCommandParserCallback::CopyL
   102       * See @ref MGlxCommandParserCallback::CopyL
   100       */ 
   103       */ 
   101      void CopyL(const RArray<TGlxMediaId>& aSourceIds, const TDesC& aDrive);
   104      void CopyL(const RArray<TGlxMediaId>& aSourceIds, const TDesC& aDrive);
   106      void MoveL(const RArray<TGlxMediaId>& aSourceIds, const TDesC& aDrive);
   109      void MoveL(const RArray<TGlxMediaId>& aSourceIds, const TDesC& aDrive);
   107      
   110      
   108      /**
   111      /**
   109       * See @ref MGlxCommandParserCallback::RemoveFromContainerL
   112       * See @ref MGlxCommandParserCallback::RemoveFromContainerL
   110       */ 
   113       */ 
   111      void RemoveFromContainerL(const RArray<TGlxMediaId>& aItemIds, const TGlxMediaId& aContainerId);
   114      void RemoveFromContainerL(const RArray<TGlxMediaId>& aItemIds,
       
   115              const TGlxMediaId& aContainerId);
   112      
   116      
   113      /**
   117      /**
   114       * See @ref MGlxCommandParserCallback::DeleteL
   118       * See @ref MGlxCommandParserCallback::DeleteL
   115       */ 
   119       */ 
   116      void DeleteL(const RArray<TGlxMediaId>& aItemIds);
   120      void DeleteL(const RArray<TGlxMediaId>& aItemIds);
   121      void RenameL(const TGlxMediaId& aSourceItemId, const TDesC& aTitle);
   125      void RenameL(const TGlxMediaId& aSourceItemId, const TDesC& aTitle);
   122      
   126      
   123      /**
   127      /**
   124       * See @ref MGlxCommandParserCallback::SetDescriptionL
   128       * See @ref MGlxCommandParserCallback::SetDescriptionL
   125       */ 
   129       */ 
   126      void SetDescriptionL(const RArray<TGlxMediaId>& aItemIds, const TDesC& aDescription);
   130      void SetDescriptionL(const RArray<TGlxMediaId>& aItemIds, 
       
   131              const TDesC& aDescription);
   127      
   132      
   128      /**
   133      /**
   129       * See @ref MGlxCommandParserCallback::SetCaptureLocationL
   134       * See @ref MGlxCommandParserCallback::SetCaptureLocationL
   130       */ 
   135       */ 
   131      void SetCaptureLocationL(const RArray<TGlxMediaId>& aItemIds, const TCoordinate& aCoordinate);
   136      void SetCaptureLocationL(const RArray<TGlxMediaId>& aItemIds, 
       
   137              const TCoordinate& aCoordinate);
   132      
   138      
   133      /**
   139      /**
   134       * See @ref MGlxCommandParserCallback::ThumbnailCleanupL
   140       * See @ref MGlxCommandParserCallback::ThumbnailCleanupL
   135       */ 
   141       */ 
   136      void ThumbnailCleanupL();
   142      void ThumbnailCleanupL();
   163 	 * Perform a file operation (copy or move).
   169 	 * Perform a file operation (copy or move).
   164 	 * @param aSourceIds an array of media ids to copy or move.
   170 	 * @param aSourceIds an array of media ids to copy or move.
   165 	 * @param aDrive destination drive.
   171 	 * @param aDrive destination drive.
   166 	 * @param aFileOperation file operation to perform (either a copy or a move) 
   172 	 * @param aFileOperation file operation to perform (either a copy or a move) 
   167 	 */
   173 	 */
   168 	void FileOperationL(const TArray<TGlxMediaId>& aSourceIds, const TDesC& aDrive, TFileOperation aFileOperation);
   174 	void FileOperationL(const TArray<TGlxMediaId>& aSourceIds, 
       
   175 	        const TDesC& aDrive, TFileOperation aFileOperation);
   169 	
   176 	
   170     /**
   177     /**
   171 	 * Gets the container id for a given media id.
   178 	 * Gets the container id for a given media id.
   172 	 * If aMedia id is KGlxCollectionRootId (0) then container id
   179 	 * If aMedia id is KGlxCollectionRootId (0) then container id
   173 	 * is determined using the collection id. E.g. if the aMediaId
   180 	 * is determined using the collection id. E.g. if the aMediaId
   280 	/**
   287 	/**
   281      * Matches the given resource ID with the title(user defined new album)
   288      * Matches the given resource ID with the title(user defined new album)
   282      */	
   289      */	
   283 	
   290 	
   284 	TInt SearchStringL(TInt aResourceId);
   291 	TInt SearchStringL(TInt aResourceId);
       
   292 	
       
   293 	/**
       
   294 	 * Timer callback to stop scheduler wait
       
   295 	 * @param aPtr Pointer to object that started the timer
       
   296 	 * @return 0 to signal that further callbacks are unnecessary, 1 otherwise
       
   297 	 */
       
   298 	static TInt SchedulerStopCallback(TAny* aPtr);
       
   299 	    
       
   300 	/**
       
   301 	 * Starts the scheduler wait timer. When complete, Scheduler is stopped
       
   302 	 */	
       
   303 	void SchedulerStopComplete();
   285 
   304 
   286 private:	
   305 private:	
   287 	/**
   306 	/**
   288 	 * Default name space definition.
   307 	 * Default name space definition.
   289 	 */
   308 	 */
   323     /**
   342     /**
   324     * Used to get the localized string from the cache
   343     * Used to get the localized string from the cache
   325     *
   344     *
   326     */
   345     */
   327     CGlxStringCache* iStringCache;
   346     CGlxStringCache* iStringCache;
       
   347     
       
   348     /**
       
   349 	 *  Timer that checks if scheduler wait needs to be cancelled  
       
   350 	 */
       
   351     CPeriodic* iTimer; 
       
   352     
       
   353     /**
       
   354 	*  Active scheduler wait object. (Owned)
       
   355 	*/
       
   356     CActiveSchedulerWait* iSchedulerWait;
   328 	};
   357 	};
   329 
   358 
   330 #endif //_C_GLXDATASOURCETASKMDSCOMMAND_H_
   359 #endif //_C_GLXDATASOURCETASKMDSCOMMAND_H_