mtpfws/mtpfw/dataproviders/dputility/inc/cmtpmoveobject.h
branchRCL_3
changeset 12 8b094906a049
parent 0 d0791faffa3f
child 19 ef55b168cedb
equal deleted inserted replaced
11:4843bb5893b6 12:8b094906a049
    19 */
    19 */
    20 
    20 
    21 #ifndef CMTPMOVEOBJECT_H
    21 #ifndef CMTPMOVEOBJECT_H
    22 #define CMTPMOVEOBJECT_H
    22 #define CMTPMOVEOBJECT_H
    23 
    23 
       
    24 #include "rmtpframework.h"
    24 #include "cmtprequestprocessor.h"
    25 #include "cmtprequestprocessor.h"
    25 #include "mtpdebug.h"
    26 #include "mtpdebug.h"
    26 
    27 
    27 class CFileMan;
    28 class CFileMan;
    28 class CMTPObjectMetaData;
    29 class CMTPObjectMetaData;
    45 					MMTPDataProviderFramework& aFramework,
    46 					MMTPDataProviderFramework& aFramework,
    46 					MMTPConnection& aConnection);
    47 					MMTPConnection& aConnection);
    47 
    48 
    48 private:	//from CMTPRequestProcessor
    49 private:	//from CMTPRequestProcessor
    49 	virtual void ServiceL();
    50 	virtual void ServiceL();
    50 	
    51     TMTPResponseCode CheckRequestL();
    51 private:	//from CActive
       
    52 	void RunL();
       
    53 	TInt RunError(TInt aError);
       
    54 	
    52 	
    55 private:
    53 private:
    56 	void ConstructL();
    54 	void ConstructL();
    57 	void GetParametersL();
    55 	void GetParametersL();
    58 	void SetDefaultParentObjectL();
    56 	void SetDefaultParentObjectL();
    60 	TMTPResponseCode CanMoveObjectL(const TDesC& aOldName, const TDesC& aNewName) const;
    58 	TMTPResponseCode CanMoveObjectL(const TDesC& aOldName, const TDesC& aNewName) const;
    61 	void GetPreviousPropertiesL(const TDesC& aFileName);
    59 	void GetPreviousPropertiesL(const TDesC& aFileName);
    62 	void SetPreviousPropertiesL(const TDesC& aFileName);
    60 	void SetPreviousPropertiesL(const TDesC& aFileName);
    63 	void MoveFileL(const TDesC& aNewFileName);
    61 	void MoveFileL(const TDesC& aNewFileName);
    64 	void MoveFolderL();
    62 	void MoveFolderL();
    65 	TMTPResponseCode FinalPhaseMove();
       
    66 	void MoveAndUpdateL(TUint32 objectHandle);
       
    67 	
    63 	
    68 private:	
    64 private:	
    69 	CFileMan*				iFileMan;
    65 	CFileMan*				iFileMan;
    70 	CMTPObjectMetaData*		iObjectInfo;	//Not owned.
    66 	CMTPObjectMetaData*		iObjectInfo;	//Not owned.
    71 	HBufC*					iDest;
    67 	HBufC*					iDest;
    74 	TUint32					iStorageId;
    70 	TUint32					iStorageId;
    75 	TTime					iPreviousModifiedTime;
    71 	TTime					iPreviousModifiedTime;
    76 	HBufC*					iPathToMove;
    72 	HBufC*					iPathToMove;
    77 	RArray<TUint>           iObjectHandles;
    73 	RArray<TUint>           iObjectHandles;
    78 	TInt                    iMoveObjectIndex;
    74 	TInt                    iMoveObjectIndex;
    79 	
    75     RMTPFramework           iSingletons;
    80 	/**
    76 	/**
    81     FLOGGER debug trace member variable.
    77     FLOGGER debug trace member variable.
    82     */
    78     */
    83     __FLOG_DECLARATION_MEMBER_MUTABLE;
    79     __FLOG_DECLARATION_MEMBER_MUTABLE;
    84 	};
    80 	};