18 |
18 |
19 #ifndef MMMTPDPUTILITY_H |
19 #ifndef MMMTPDPUTILITY_H |
20 #define MMMTPDPUTILITY_H |
20 #define MMMTPDPUTILITY_H |
21 |
21 |
22 #include <mtp/mtpprotocolconstants.h> |
22 #include <mtp/mtpprotocolconstants.h> |
|
23 #include <mtpprivatepskeys.h> |
23 |
24 |
24 #include "mmmtpdpfiledefs.h" |
25 #include "mmmtpdpfiledefs.h" |
25 |
26 |
26 // forward declacration |
27 // forward declacration |
27 class RFs; |
28 class RFs; |
141 * Get DRM status |
142 * Get DRM status |
142 * @param aFullFileName, full file name |
143 * @param aFullFileName, full file name |
143 * @return return DRM status code |
144 * @return return DRM status code |
144 */ |
145 */ |
145 IMPORT_C static TInt GetDrmStatus( const TDesC& aFullFileName ); |
146 IMPORT_C static TInt GetDrmStatus( const TDesC& aFullFileName ); |
|
147 |
|
148 /** |
|
149 * Set MTP PS Status |
|
150 * @param aStatus, next TMtpPSStatus |
|
151 * |
|
152 * newly implemented function to as enabler |
|
153 * to provide more state transition on application (MusicPlayer/MPX) during MTP by fully utilize the 3 PSStatus: |
|
154 * |
|
155 * EMtpPSStatusActive, == MTP operation related Media Files is performaning |
|
156 * EMtpPSStatusUninitialized == MTP not in use |
|
157 * EMtpPSStatusReadyToSync == MTP is connected, but no active operation related to Media Files |
|
158 * |
|
159 * this CAN enable 2 new behaviors: |
|
160 * 1. MTP status monitor is extracted out from USB Event Observer in harvester |
|
161 * Harvester and Music player should be fully blocked if PS Status is EMtpPSStatusActive |
|
162 * Music Player would prevent refresh/delete/add on UI level if PS Status is EMtpPSStatusReadyToSync |
|
163 * 2. collectioncachedhelper to observed this status. |
|
164 * when the ps status changed from EMtpPSStatusActive to EMtpPSStatusReadyToSync, it starts timer. |
|
165 * and when it is reached, it flush all cache. |
|
166 * the timer is canceled when ps status is back to active. |
|
167 */ |
|
168 IMPORT_C static void SetPSStatus( TMtpPSStatus aStatus ); |
|
169 |
|
170 /** |
|
171 * Set MTP PS Status (actually) |
|
172 * @param aStatus, next TMtpPSStatus |
|
173 */ |
|
174 static void DoSetPSStatus( TMtpPSStatus aStatus ); |
146 |
175 |
147 }; |
176 }; |
148 |
177 |
149 #endif // MMMTPDPUTILITY_H |
178 #endif // MMMTPDPUTILITY_H |