equal
deleted
inserted
replaced
22 // INCLUDES |
22 // INCLUDES |
23 #include <apgcli.h> // RApaLsSession |
23 #include <apgcli.h> // RApaLsSession |
24 #include <contentharvesterplugin.h> |
24 #include <contentharvesterplugin.h> |
25 #include <widgetappdefs.rh> |
25 #include <widgetappdefs.rh> |
26 #include "wrtharvesterregistryaccess.h" |
26 #include "wrtharvesterregistryaccess.h" |
27 #include "wrtusbhandler.h" |
|
28 |
27 |
29 // FORWARD DECLARATIONS |
28 // FORWARD DECLARATIONS |
30 class CWrtHarvesterPSNotifier; |
29 class CWrtHarvesterPSNotifier; |
31 class CWrtHarvesterPublisherObserver; |
30 class CWrtHarvesterPublisherObserver; |
32 class MLiwInterface; |
31 class MLiwInterface; |
111 * @param aOperation Operation to be queued |
110 * @param aOperation Operation to be queued |
112 * @param aUid Uid of the widget |
111 * @param aUid Uid of the widget |
113 */ |
112 */ |
114 void QueueOperationL( TWidgetOperations aOperation, TUid aUid ); |
113 void QueueOperationL( TWidgetOperations aOperation, TUid aUid ); |
115 |
114 |
116 void DialogShown(){ iDialogShown = EFalse; } |
|
117 //to check if the device is in mass memory mode |
115 //to check if the device is in mass memory mode |
118 TInt IsInMSMode() { return iMSMode; } |
116 TInt IsInMSMode() { return iMSMode; } |
119 void SetMSMode(TInt val) { iMSMode = val; } |
117 void SetMSMode(TInt val) { iMSMode = val; } |
120 |
118 //To check if registry can be accessed |
|
119 TInt CanAccessRegistry(){ return iCanAccessRegistry; } |
|
120 void SetRegistryAccess(TBool aValue){ iCanAccessRegistry = aValue; } |
|
121 |
|
122 void SetReinstallWidget(TBool aValue){ iReinstallingWidget = aValue; } |
|
123 |
|
124 void DialogShown(); |
|
125 |
|
126 static TInt DeleteCallback(TAny* aPtr); |
|
127 |
|
128 void SetSystemShutdown(TBool aState){ iSystemShutdown = aState; } |
121 |
129 |
122 private: |
130 private: |
123 |
131 |
124 /** |
132 /** |
125 * Perform the second phase construction |
133 * Perform the second phase construction |
270 /** |
278 /** |
271 * Publish & Subscribe listener |
279 * Publish & Subscribe listener |
272 * own |
280 * own |
273 */ |
281 */ |
274 CWrtUsbHandler* iWidgetUsbListener; |
282 CWrtUsbHandler* iWidgetUsbListener; |
|
283 |
|
284 /** |
|
285 * Publish & Subscribe listener |
|
286 * own |
|
287 */ |
|
288 CWrtHarvesterPSNotifier* iWidgetSystemShutdownListener; |
|
289 |
|
290 /** |
|
291 * Publish & Subscribe listener |
|
292 * own |
|
293 */ |
|
294 CWrtHarvesterPSNotifier* iMsModeListener; |
275 |
295 |
276 /** |
296 /** |
277 * |
297 * |
278 */ |
298 */ |
279 RWrtArray<CWrtHarvesterPublisherObserver> iObservers; |
299 RWrtArray<CWrtHarvesterPublisherObserver> iObservers; |
327 /** |
347 /** |
328 * |
348 * |
329 * |
349 * |
330 */ |
350 */ |
331 RPointerArray<HBufC> iHSWidgets; |
351 RPointerArray<HBufC> iHSWidgets; |
|
352 /** |
|
353 * |
|
354 */ |
|
355 TBool iCanAccessRegistry; |
|
356 |
|
357 /** |
|
358 * |
|
359 */ |
|
360 TBool iReinstallingWidget; |
|
361 |
|
362 /** |
|
363 * |
|
364 */ |
|
365 RArray<TUid> iUid; |
|
366 |
|
367 /** |
|
368 * |
|
369 */ |
|
370 CAsyncCallBack* iAsyncCallBack; |
|
371 |
|
372 /** |
|
373 * |
|
374 */ |
|
375 TBool iSystemShutdown; |
332 }; |
376 }; |
333 |
377 |
334 #endif // C_WRTCONTENTHARVESTER_H |
378 #endif // C_WRTCONTENTHARVESTER_H |