diff -r 1b39655331a3 -r 6e82ae192c3a mtpfws/mtpfw/dataproviders/dputility/inc/cmtpmoveobject.h --- a/mtpfws/mtpfw/dataproviders/dputility/inc/cmtpmoveobject.h Fri Apr 16 15:51:48 2010 +0300 +++ b/mtpfws/mtpfw/dataproviders/dputility/inc/cmtpmoveobject.h Mon May 03 13:19:02 2010 +0300 @@ -24,10 +24,13 @@ #include "rmtpframework.h" #include "cmtprequestprocessor.h" #include "mtpdebug.h" +#include "rmtpdpsingletons.h" class CFileMan; class CMTPObjectMetaData; +const TInt KMoveObjectTimeOut = 180000000; // 180s + /** Defines data provider MoveObject request processor @@ -48,7 +51,9 @@ private: //from CMTPRequestProcessor virtual void ServiceL(); - TMTPResponseCode CheckRequestL(); + TMTPResponseCode CheckRequestL(); + TBool DoHandleCompletingPhaseL(); + TBool Match(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection) const; private: void ConstructL(); @@ -60,19 +65,26 @@ void SetPreviousPropertiesL(const TDesC& aFileName); void MoveFileL(const TDesC& aNewFileName); void MoveFolderL(); + static TInt OnTimeoutL(TAny* aPtr); + void DoOnTimeoutL(); + void RunL(); private: - CFileMan* iFileMan; + CFileMan* iFileMan; CMTPObjectMetaData* iObjectInfo; //Not owned. - HBufC* iDest; - HBufC* iNewRootFolder; - TUint32 iNewParentHandle; - TUint32 iStorageId; - TTime iPreviousModifiedTime; - HBufC* iPathToMove; - RArray iObjectHandles; - TInt iMoveObjectIndex; - RMTPFramework iSingletons; + HBufC* iDest; + HBufC* iNewRootFolder; + TUint32 iNewParentHandle; + TUint32 iStorageId; + TTime iPreviousModifiedTime; + HBufC* iPathToMove; + RArray iObjectHandles; + TInt iMoveObjectIndex; + RMTPFramework iSingletons; + RMTPDpSingletons iDpSingletons; + CPeriodic* iTimer; + HBufC* iNewFileName; + TBool iIsFolder; /** FLOGGER debug trace member variable. */