mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/mediamtpdataprovider/inc/cmediamtpdataproviderenumerator.h
equal
deleted
inserted
replaced
23 #include <d32dbms.h> |
23 #include <d32dbms.h> |
24 |
24 |
25 #include "mmmtpenumerationcallback.h" |
25 #include "mmmtpenumerationcallback.h" |
26 #include "cmmmtpdpperflog.h" |
26 #include "cmmmtpdpperflog.h" |
27 |
27 |
28 // keep here to avoid warning on urel |
|
29 _LIT( KDirectoryScan, "DirectoryScan" ); |
|
30 _LIT( KFormatFilter, "FormatFilter" ); |
|
31 _LIT( KObjectManagerObjectUid, "ObjectManagerObjectUid" ); |
|
32 _LIT( KObjectManagerInsert, "ObjectManagerInsert" ); |
|
33 |
|
34 // Forward declarations |
28 // Forward declarations |
35 class MMTPDataProviderFramework; |
29 class MMTPDataProviderFramework; |
36 class MMTPObjectMgr; |
30 class MMTPObjectMgr; |
37 class CMTPObjectMetaData; |
31 class CMTPObjectMetaData; |
38 class CMediaMtpDataProvider; |
32 class CMediaMtpDataProvider; |
61 /** |
55 /** |
62 * Kick off the enumeration on the specified storage |
56 * Kick off the enumeration on the specified storage |
63 * @param aStorageId storage to be enumerated |
57 * @param aStorageId storage to be enumerated |
64 */ |
58 */ |
65 void StartL( TUint32 aStorageId ); |
59 void StartL( TUint32 aStorageId ); |
66 |
60 |
67 // introduce to cleanup db at close session |
61 // introduce to cleanup db at close session |
68 void SessionClosedL(); |
62 void SessionClosedL(); |
69 |
63 |
70 protected: |
64 protected: |
71 // from CActive |
65 // from CActive |
190 /** MTP Object Manager */ |
184 /** MTP Object Manager */ |
191 MMTPObjectMgr& iObjectMgr; |
185 MMTPObjectMgr& iObjectMgr; |
192 |
186 |
193 /** MTP Data Provider ID */ |
187 /** MTP Data Provider ID */ |
194 TUint iDataProviderId; |
188 TUint iDataProviderId; |
195 |
189 |
196 CMediaMtpDataProvider& iDataProvider; |
190 CMediaMtpDataProvider& iDataProvider; |
197 TParse iPath; |
191 TParse iPath; |
198 RDir iDir; |
192 RDir iDir; |
199 TEntryArray iEntries; |
193 TEntryArray iEntries; |
200 TInt iFirstUnprocessed; |
194 TInt iFirstUnprocessed; |
206 TBool iScanningDir; |
200 TBool iScanningDir; |
207 |
201 |
208 // record the system tick |
202 // record the system tick |
209 TUint iTickCountBegin; |
203 TUint iTickCountBegin; |
210 TInt iTickPeriod; |
204 TInt iTickPeriod; |
211 |
205 |
212 #if defined(_DEBUG) || defined(MMMTPDP_PERFLOG) |
206 #if defined(_DEBUG) || defined(MMMTPDP_PERFLOG) |
213 CMmMtpDpPerfLog* iPerfLog; |
207 CMmMtpDpPerfLog* iPerfLog; |
214 #endif |
208 #endif |
215 |
209 |
216 }; |
210 }; |