|
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 |
|
22 #ifndef CMTPIMAGEDPRENAMEOBJECT_H |
|
23 #define CMTPIMAGEDPRENAMEOBJECT_H |
|
24 |
|
25 #include "mtpdebug.h" |
|
26 |
|
27 // Forward declarations |
|
28 class MMTPDataProviderFramework; |
|
29 class CMTPImageDataProvider; |
|
30 class MMTPObjectMgr; |
|
31 class CMTPObjectMetaData; |
|
32 |
|
33 class CMTPImageDpRenameObject: public CActive |
|
34 { |
|
35 public: |
|
36 static CMTPImageDpRenameObject* NewL(MMTPDataProviderFramework& aFramework, CMTPImageDataProvider& aDataProvider); |
|
37 virtual ~CMTPImageDpRenameObject(); |
|
38 |
|
39 void StartL( const TUint32 aParentHandle, const TDesC& aOldFolderName ); |
|
40 |
|
41 protected: |
|
42 /** |
|
43 * Standard C++ Constructor |
|
44 */ |
|
45 CMTPImageDpRenameObject(MMTPDataProviderFramework& aFramework, CMTPImageDataProvider& aDataProvider); |
|
46 void ConstructL(); |
|
47 |
|
48 protected: |
|
49 // from CActive |
|
50 void DoCancel(); |
|
51 void RunL(); |
|
52 TInt RunError( TInt aError ); |
|
53 |
|
54 private: |
|
55 void GenerateObjectHandleListL(TUint32 aParentHandle); |
|
56 |
|
57 private: |
|
58 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
59 |
|
60 MMTPDataProviderFramework& iFramework; |
|
61 CMTPImageDataProvider& iDataProvider; |
|
62 RArray<TUint> iObjectHandles; |
|
63 CMTPObjectMetaData* iObjectInfo; |
|
64 CMTPObjectMetaData* iParentObjectInfo; |
|
65 TInt iCount; |
|
66 TInt iIndex; |
|
67 RBuf iNewFileName; |
|
68 |
|
69 CActiveSchedulerWait* iRenameWaiter; |
|
70 TUint32 iParentHandle; |
|
71 }; |
|
72 |
|
73 #endif // CMTPIMAGEDPRENAMEOBJECT_H |