22 #include <mtp/cmtpdataproviderplugin.h> |
22 #include <mtp/cmtpdataproviderplugin.h> |
23 |
23 |
24 #include "abstractmediamtpdataproviderprocessor.h" |
24 #include "abstractmediamtpdataproviderprocessor.h" |
25 #include "mmmtpenumerationcallback.h" |
25 #include "mmmtpenumerationcallback.h" |
26 #include "mmmtpdpconfig.h" |
26 #include "mmmtpdpconfig.h" |
27 |
27 #include "mmmtpdp_variant.hrh" |
28 |
28 |
29 // Forward declaration |
29 // Forward declaration |
30 class MMmRequestProcessor; |
30 class MMmRequestProcessor; |
31 class CAbstractMediaMtpDataProviderEnumerator; |
31 class CAbstractMediaMtpDataProviderEnumerator; |
32 class CMTPObjectMetaData; |
32 class CMTPObjectMetaData; |
64 * @return TUint32 Default storage Id which read from resource file |
64 * @return TUint32 Default storage Id which read from resource file |
65 */ |
65 */ |
66 TUint32 GetDefaultStorageIdL() const; |
66 TUint32 GetDefaultStorageIdL() const; |
67 |
67 |
68 /** |
68 /** |
69 * @return the reference of CMmMtpDpMetadataAccessWrapper to enumerator |
69 * Get db handler wrapper |
|
70 * @return wrapper references |
70 */ |
71 */ |
71 CMmMtpDpMetadataAccessWrapper& GetWrapperL(); |
72 CMmMtpDpMetadataAccessWrapper& GetWrapperL(); |
|
73 |
|
74 /** |
|
75 * @return The utility to setting properties |
|
76 */ |
|
77 CPropertySettingUtility* PropSettingUtility(); |
|
78 |
|
79 /** |
|
80 * @return The utiltiy to setting descriptions |
|
81 */ |
|
82 CDescriptionUtility* DescriptionUtility(); |
72 |
83 |
73 protected: |
84 protected: |
74 // from CMTPDataProviderPlugin |
85 // from CMTPDataProviderPlugin |
75 void Cancel(); |
86 void Cancel(); |
76 |
87 |
95 */ |
106 */ |
96 void SessionOpenedL( const TMTPNotificationParamsSessionChange& aSession ); |
107 void SessionOpenedL( const TMTPNotificationParamsSessionChange& aSession ); |
97 |
108 |
98 /** |
109 /** |
99 * Notify the data provider that the session has been closed |
110 * Notify the data provider that the session has been closed |
100 * @param aConnection The connection of the sesssion |
111 * @param aSession The connection of the sesssion |
101 */ |
112 */ |
102 void SessionClosedL( const TMTPNotificationParamsSessionChange& aSession ); |
113 void SessionClosedL( const TMTPNotificationParamsSessionChange& aSession ); |
103 |
114 |
104 /** |
115 /** |
105 * Notify the data provider that the object has been changed |
116 * Notify the data provider that the object has been changed |
165 void InsertL( RArray<TUint>& aArray, const TUint aProperCode ) const; |
176 void InsertL( RArray<TUint>& aArray, const TUint aProperCode ) const; |
166 |
177 |
167 void GetSupportedFormatL(); |
178 void GetSupportedFormatL(); |
168 |
179 |
169 void GetSupportedPropertiesL(); |
180 void GetSupportedPropertiesL(); |
|
181 |
|
182 void GetAllSupportedPropL(); |
170 |
183 |
171 private: |
184 private: |
172 // data |
185 // data |
173 RPointerArray<MMmRequestProcessor> iActiveProcessors; |
186 RPointerArray<MMmRequestProcessor> iActiveProcessors; |
174 CAbstractMediaMtpDataProviderEnumerator* iAbstractMediaEnumerator; |
187 CAbstractMediaMtpDataProviderEnumerator* iAbstractMediaEnumerator; |
175 RArray<TUint32> iPendingEnumerations; |
188 RArray<TUint32> iPendingEnumerations; |
176 |
189 |
177 TInt iActiveProcessor; |
190 TInt iActiveProcessor; |
|
191 TBool iActiveProcessorRemoved; |
178 |
192 |
179 CAbstractMediaMtpDataProviderRenameObject *iRenameObject; |
193 CAbstractMediaMtpDataProviderRenameObject *iRenameObject; |
180 TBool iIsSessionOpen; |
194 TBool iIsSessionOpen; |
181 |
195 |
182 RArray<TUint> iSupportedFormat; |
196 RArray<TUint> iSupportedFormat; |
183 |
197 |
184 RArray<TUint> iSupportedProperties; |
198 #ifdef MMMTPDP_ABSTRACTAUDIOALBUM_SUPPORT |
|
199 RArray<TUint> iSupportedPropAbstractAlbum; |
|
200 #endif |
|
201 RArray<TUint> iSupportedPropPlaylist; |
|
202 RArray<TUint> iSupportedPropAll; |
|
203 |
|
204 CPropertySettingUtility* iPropSettingUtility; |
|
205 CDescriptionUtility* iDescriptionUtility; |
185 |
206 |
186 }; |
207 }; |
187 |
208 |
188 #endif // CABSTRACTMEDIAMTPDATAPROVIDER_H |
209 #endif // CABSTRACTMEDIAMTPDATAPROVIDER_H |