|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef CMTPIMAGEDPMOVEOBJECT_H |
|
22 #define CMTPIMAGEDPMOVEOBJECT_H |
|
23 |
|
24 #include "cmtprequestprocessor.h" |
|
25 #include "cmtpimagedpobjectpropertymgr.h" |
|
26 |
|
27 class CFileMan; |
|
28 class CMTPObjectMetaData; |
|
29 class CMTPImageDpThumbnailCreator; |
|
30 class CMTPImageDataProvider; |
|
31 |
|
32 class CMTPImageDpMoveObject : public CMTPRequestProcessor |
|
33 { |
|
34 public: |
|
35 static MMTPRequestProcessor* NewL( |
|
36 MMTPDataProviderFramework& aFramework, |
|
37 MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider); |
|
38 ~CMTPImageDpMoveObject(); |
|
39 |
|
40 private: |
|
41 CMTPImageDpMoveObject( |
|
42 MMTPDataProviderFramework& aFramework, |
|
43 MMTPConnection& aConnection, |
|
44 CMTPImageDataProvider& aDataProvider); |
|
45 |
|
46 private: //from CMTPRequestProcessor |
|
47 virtual void ServiceL(); |
|
48 virtual TMTPResponseCode CheckRequestL(); |
|
49 |
|
50 private: |
|
51 void ConstructL(); |
|
52 void GetParametersL(); |
|
53 void SetDefaultParentObjectL(); |
|
54 TMTPResponseCode MoveObjectL(); |
|
55 TMTPResponseCode CanMoveObjectL(const TDesC& aOldName, const TDesC& aNewName) const; |
|
56 TMTPResponseCode MoveFileL(const TDesC& aOldFileName, const TDesC& aNewFileName); |
|
57 TInt MoveImageFile(const TDesC& aOldImageName, const TDesC& aNewImageName); |
|
58 |
|
59 private: |
|
60 CFileMan* iFileMan; |
|
61 CMTPObjectMetaData* iObjectInfo; |
|
62 HBufC* iDest; |
|
63 HBufC* iNewRootFolder; |
|
64 TUint32 iNewParentHandle; |
|
65 TUint32 iStorageId; |
|
66 TTime iPreviousModifiedTime; |
|
67 CMTPImageDataProvider& iDataProvider; |
|
68 /** |
|
69 FLOGGER debug trace member variable. |
|
70 */ |
|
71 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
72 }; |
|
73 |
|
74 #endif //CMTPIMAGEDPMOVEOBJECT_H |
|
75 |