156 * @since S60 v5.0 |
156 * @since S60 v5.0 |
157 * @param aIDArray Item IDs to query |
157 * @param aIDArray Item IDs to query |
158 */ |
158 */ |
159 void QueryL( RArray<TItemId>& aIDArray ); |
159 void QueryL( RArray<TItemId>& aIDArray ); |
160 |
160 |
|
161 /** |
|
162 * QueryPlaceholdersL |
|
163 * |
|
164 * @since S60 v5.0 |
|
165 */ |
161 void QueryPlaceholdersL(); |
166 void QueryPlaceholdersL(); |
|
167 |
|
168 /** |
|
169 * DeleteAndCancelQuery |
|
170 * |
|
171 * @since Symbian^3 |
|
172 */ |
|
173 void DeleteAndCancelQuery(); |
162 |
174 |
163 protected: |
175 protected: |
164 |
176 |
165 /** |
177 /** |
166 * Handles an active object's request completion event. |
178 * Handles an active object's request completion event. |
241 * @since S60 v5.0 |
253 * @since S60 v5.0 |
242 * @param aDefine (re)define PS key before setting value |
254 * @param aDefine (re)define PS key before setting value |
243 */ |
255 */ |
244 void UpdatePSValues(const TBool aDefine = EFalse); |
256 void UpdatePSValues(const TBool aDefine = EFalse); |
245 |
257 |
|
258 /** |
|
259 * Comparison function for logaritmic use of queue arrays |
|
260 * |
|
261 * @since S60 v5.0 |
|
262 */ |
|
263 static TInt Compare(const TItemId& aLeft, const TItemId& aRight); |
|
264 |
246 private: |
265 private: |
247 |
266 |
248 // not own |
267 // not own |
249 CMdESession* iMdESession; |
268 CMdESession* iMdESession; |
250 CMdENamespaceDef* iDefNamespace; |
269 CMdENamespaceDef* iDefNamespace; |
263 //not processing queue, used to keep KItemsLeft PS correct |
282 //not processing queue, used to keep KItemsLeft PS correct |
264 RArray<TItemId> i2ndRoundGenerateQueue; |
283 RArray<TItemId> i2ndRoundGenerateQueue; |
265 //reference to current processing queue |
284 //reference to current processing queue |
266 RArray<TItemId>* iLastQueue; |
285 RArray<TItemId>* iLastQueue; |
267 |
286 |
|
287 //background generation state |
|
288 // EFalse = 1st round, create only grid size thumbnail for images and videos |
|
289 // ETrue = 2nds round, create all missing sizes for all media items |
268 TBool i2ndRound; |
290 TBool i2ndRound; |
269 |
291 |
|
292 //MDS query issues |
270 TBool iQueryActive; |
293 TBool iQueryActive; |
|
294 //MDS query complete |
271 TBool iQueryReady; |
295 TBool iQueryReady; |
272 |
296 |
|
297 //Processing MDS itens which are modified |
273 TBool iModify; |
298 TBool iModify; |
274 TInt iProcessingCount; |
299 TInt iProcessingCount; |
275 |
300 |
276 //Flag is MDS Harvester harevsting |
301 //MDS harvester's overall state |
277 TBool iHarvesting; |
302 TBool iHarvesting; |
278 TBool iHarvestingTemp; |
303 TBool iHarvestingTemp; |
279 |
304 |
280 //Flag is MDS placeholder harvesting active |
305 //MDS Harvester's placeholder harvesting state |
281 TBool iPHHarvesting; |
306 TBool iPHHarvesting; |
282 TBool iPHHarvestingTemp; |
307 TBool iPHHarvestingTemp; |
|
308 |
|
309 //MDS Harvester's SD card harvesting state |
|
310 TBool iMMCHarvesting; |
|
311 TBool iMMCHarvestingTemp; |
|
312 |
283 |
313 |
284 CPeriodic* iPeriodicTimer; |
314 CPeriodic* iPeriodicTimer; |
285 |
315 |
286 //MDS Harvester client |
316 //MDS Harvester client |
287 RHarvesterClient iHarvesterClient; |
317 RHarvesterClient iHarvesterClient; |