mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/inc/cabstractmediamtpdataproviderenumerator.h
equal
deleted
inserted
replaced
22 #include <e32base.h> |
22 #include <e32base.h> |
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 |
|
28 // keep here to avoid warning on urel |
|
29 _LIT( KMpxGetAllPlaylist, "MpxGetAllPlaylist" ); |
|
30 _LIT( KMpxGetPlaylistName, "MpxGetPlaylistName" ); |
|
31 _LIT( KMpxQueryPlaylistReference, "MpxQueryPlaylistReference" ); |
|
32 _LIT( KObjectManagerObjectUid, "ObjectManagerObjectUid" ); |
|
33 _LIT( KObjectManagerInsert, "ObjectManagerInsert" ); |
|
34 _LIT( KObjectManagerHandle, "ObjectManagerHandle" ); |
|
35 _LIT( KReferenceManagerSetReference, "ReferenceManagerSetReference" ); |
|
36 |
27 |
37 // Forward declarations |
28 // Forward declarations |
38 class MMTPDataProviderFramework; |
29 class MMTPDataProviderFramework; |
39 class MMTPObjectMgr; |
30 class MMTPObjectMgr; |
40 class CAbstractMediaMtpDataProvider; |
31 class CAbstractMediaMtpDataProvider; |
81 * Ignore the error, continue with the next one |
72 * Ignore the error, continue with the next one |
82 */ |
73 */ |
83 TInt RunError( TInt aError ); |
74 TInt RunError( TInt aError ); |
84 |
75 |
85 private: |
76 private: |
|
77 |
|
78 enum TEnumState |
|
79 { |
|
80 EEnumPlaylist, |
|
81 EEnumAbstractAlbum, |
|
82 EEnumCount |
|
83 }; |
|
84 |
86 /** |
85 /** |
87 * Standard C++ Constructor |
86 * Standard C++ Constructor |
88 * @param aFramework Reference to MMTPDataProviderFramework |
87 * @param aFramework Reference to MMTPDataProviderFramework |
89 * @param aDataProvider Reference to Abstract Media DataProvider |
88 * @param aDataProvider Reference to Abstract Media DataProvider |
90 */ |
89 */ |
97 * Called when the enumeration is completed |
96 * Called when the enumeration is completed |
98 */ |
97 */ |
99 void SignalCompleteL( MMTPEnumerationCallback& aCallback, |
98 void SignalCompleteL( MMTPEnumerationCallback& aCallback, |
100 TInt aError = KErrNone ); |
99 TInt aError = KErrNone ); |
101 |
100 |
102 void ScanStorageL( TUint32 aStorageId ); |
101 void InitStorageL( ); |
103 |
102 |
104 /** |
103 /** |
105 * Scan next storage |
104 * Scan next storage |
106 */ |
105 */ |
107 void ScanNextL(); |
106 void ScanNextL(); |
141 TUint32 iParentHandle; |
140 TUint32 iParentHandle; |
142 |
141 |
143 CMPXMediaArray* iAbstractMedias; |
142 CMPXMediaArray* iAbstractMedias; |
144 TInt iCount; |
143 TInt iCount; |
145 TInt iCurrentIndex; |
144 TInt iCurrentIndex; |
|
145 TInt iEnumState; |
146 |
146 |
147 #if defined(_DEBUG) || defined(MMMTPDP_PERFLOG) |
147 #if defined(_DEBUG) || defined(MMMTPDP_PERFLOG) |
148 CMmMtpDpPerfLog* iPerfLog; |
148 CMmMtpDpPerfLog* iPerfLog; |
149 #endif |
149 #endif |
150 |
150 |