|
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 @internalComponent |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef CMTPPICTBRIDGEENUMERATOR_H |
|
23 #define CMTPPICTBRIDGEENUMERATOR_H |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <f32file.h> |
|
27 #include <d32dbms.h> |
|
28 |
|
29 #include <comms-infras/commsdebugutility.h> |
|
30 #include "mtppictbridgedpconst.h" |
|
31 #include "mtpdebug.h" |
|
32 #include "rmtpframework.h" |
|
33 |
|
34 class MMTPDataProviderFramework; |
|
35 class MMTPObjectMgr; |
|
36 class CMTPObjectMetaData; |
|
37 class MMTPPictBridgeEnumeratorCallback; |
|
38 |
|
39 /** |
|
40 Defines file enumerator. Enumerates all files/directories under a specified path or storage |
|
41 |
|
42 */ |
|
43 class CMTPPictBridgeEnumerator : public CBase |
|
44 { |
|
45 public: |
|
46 static CMTPPictBridgeEnumerator* NewL(MMTPDataProviderFramework& aFramework, MMTPPictBridgeEnumeratorCallback& aCallback); |
|
47 ~CMTPPictBridgeEnumerator(); |
|
48 |
|
49 public: |
|
50 void EnumerateObjectsL(TUint32 aStorageId); |
|
51 void EnumerateStoragesL(); |
|
52 TUint32 DeviceDiscoveryHandle() const; |
|
53 |
|
54 private: |
|
55 CMTPPictBridgeEnumerator(MMTPDataProviderFramework& aFramework, MMTPPictBridgeEnumeratorCallback& aCallback); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 // Owned |
|
60 MMTPDataProviderFramework& iFramework; |
|
61 MMTPPictBridgeEnumeratorCallback& iCallback; |
|
62 TUint32 iDpsDiscoveryHandle; |
|
63 RMTPFramework iSingletons; |
|
64 /** |
|
65 FLOGGER debug trace member variable. |
|
66 */ |
|
67 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
68 }; |
|
69 |
|
70 #endif // CMTPPICTBRIDGEENUMERATOR_H |