equal
deleted
inserted
replaced
19 #ifndef WIDGETUIWINDOW_H_ |
19 #ifndef WIDGETUIWINDOW_H_ |
20 #define WIDGETUIWINDOW_H_ |
20 #define WIDGETUIWINDOW_H_ |
21 |
21 |
22 // INCLUDES FILES |
22 // INCLUDES FILES |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <brctldefs.h> |
24 #include <BrCtlDefs.h> |
25 #include <brctlinterface.h> // for MWidgetCallback |
25 #include <brctlinterface.h> // for MWidgetCallback |
26 #include <AknServerApp.h> |
26 #include <AknServerApp.h> |
27 #include <coecntrl.h> |
27 #include <coecntrl.h> |
28 #include "WidgetUiObserver.h" |
28 #include "WidgetUiObserver.h" |
29 |
|
30 |
29 |
31 // CONSTANTS |
30 // CONSTANTS |
32 enum TWidgetAccessGrant |
31 enum TWidgetAccessGrant |
33 { |
32 { |
34 EInvalid, |
33 EInvalid, |
72 class CCpsPublisher; |
71 class CCpsPublisher; |
73 class CFbsBitmap; |
72 class CFbsBitmap; |
74 class CSchemeHandler; |
73 class CSchemeHandler; |
75 class CBrCtlInterface; |
74 class CBrCtlInterface; |
76 class CJpgSaver; |
75 class CJpgSaver; |
77 class CBrowserDialogsProvider; |
|
78 // CLASS DECLARATION |
76 // CLASS DECLARATION |
79 |
77 |
80 /** |
78 /** |
81 * |
79 * |
82 * |
80 * |
231 |
229 |
232 public: //MAknServerAppExitObserver |
230 public: //MAknServerAppExitObserver |
233 |
231 |
234 void HandleServerAppExit( TInt aReason ); |
232 void HandleServerAppExit( TInt aReason ); |
235 |
233 |
|
234 |
236 public: // new functions |
235 public: // new functions |
237 |
236 |
238 /** |
237 /** |
239 * Engine |
238 * Engine |
240 * @since 3.1 |
239 * @since 3.1 |
330 * Relayout |
329 * Relayout |
331 * relayout display to preferred orientation |
330 * relayout display to preferred orientation |
332 * @since 3.1 |
331 * @since 3.1 |
333 * @return void |
332 * @return void |
334 */ |
333 */ |
335 void RelayoutL(TInt aType=0 ); |
334 void Relayout( ); |
336 |
335 |
337 /** |
336 /** |
338 * SetCurrentWindow |
337 * SetCurrentWindow |
339 * sets the current window active or non-current window inactive |
338 * sets the current window active or non-current window inactive |
340 * @since 3.1 |
339 * @since 3.1 |
499 * returns pointer to NetworkMode wait object |
498 * returns pointer to NetworkMode wait object |
500 * @since 7.1 |
499 * @since 7.1 |
501 * @return CActiveSchedulerWait* |
500 * @return CActiveSchedulerWait* |
502 */ |
501 */ |
503 CActiveSchedulerWait* NetworkModeWait() { return iNetworkModeWait; } |
502 CActiveSchedulerWait* NetworkModeWait() { return iNetworkModeWait; } |
504 |
|
505 /** |
|
506 * NeedToNotifyNetworkState |
|
507 * Notifies to Widget about network state |
|
508 * @since 7.1 |
|
509 * @param aNetworkState the online/offline state needs to be notified to widget or not |
|
510 * @return none |
|
511 */ |
|
512 void NeedToNotifyNetworkState(TBool aNetworkState); |
|
513 |
|
514 TBool CanBeDeleted(); |
|
515 |
|
516 static TInt DeleteItself(TAny* aPtr); |
|
517 |
|
518 void DeleteItself(); |
|
519 |
|
520 #ifdef BRDO_OCC_ENABLED_FF |
|
521 void CancelAllDialogs(); |
|
522 |
|
523 |
|
524 TBool IsDialogsLaunched(); |
|
525 #endif |
|
526 void setSapiPromptCleared(TBool aPrompt){ iSapiPromptCleared = aPrompt; } |
|
527 TBool getSapiPromptCleared(){ return iSapiPromptCleared; } |
|
528 TInt getNeedToIgnoreSapiNtfn(){ return iNeedToIgnoreSapiNtfn; } |
|
529 void setNeedToIgnoreSapiNtfn ( TInt aVal){ iNeedToIgnoreSapiNtfn = iNeedToIgnoreSapiNtfn + aVal;} |
|
530 TInt getNeedToIgnoreSapiClearNtfn(){ return iNeedToIgnoreSapiClearNtfn;} |
|
531 void setNeedToIgnoreSapiClearNtfn ( TInt aVal) { iNeedToIgnoreSapiClearNtfn = iNeedToIgnoreSapiClearNtfn + aVal;} |
|
532 |
503 |
533 |
504 |
534 protected: |
505 protected: |
535 |
506 |
536 /** |
507 /** |
621 TBool iUserPermission; // ETrue if user chooses to allow network access when prompted, else EFalse |
592 TBool iUserPermission; // ETrue if user chooses to allow network access when prompted, else EFalse |
622 |
593 |
623 //Download transaction ID |
594 //Download transaction ID |
624 long iDlId; |
595 long iDlId; |
625 TInt iClickCount; |
596 TInt iClickCount; |
626 CFbsBitmap iMiniviewBitmap1; |
597 CFbsBitmap* iMiniviewBitmap ; |
627 CFbsBitmap iMiniviewBitmap2; |
|
628 CFbsBitmap* iActiveMiniviewBitmap; |
|
629 |
|
630 TTime iOOMWidgetStartTime; |
598 TTime iOOMWidgetStartTime; |
631 TBool iWidgetLoadStarted; // Set to true when widget load starts |
599 TBool iWidgetLoadStarted; // Set to true when widget load starts |
632 CJpgSaver* iJpgSaver; |
600 CJpgSaver* iJpgSaver; |
633 CActiveSchedulerWait* iNetworkModeWait; |
601 CActiveSchedulerWait* iNetworkModeWait; |
634 TBool iNeedToNotifyNetworkState; |
602 |
635 TBool iConnecting; |
|
636 TBool iDeleteItself; |
|
637 CAsyncCallBack* iAsyncCallBack; |
|
638 CBrowserDialogsProvider* iDialogsProvider;// owned, responsible for deleting |
|
639 // For sapi prmompt counts |
|
640 TBool iSapiPromptCleared; |
|
641 TInt iNeedToIgnoreSapiNtfn; |
|
642 TInt iNeedToIgnoreSapiClearNtfn; |
|
643 |
|
644 }; |
603 }; |
645 |
604 |
646 #endif // |
605 #endif // |
647 |
606 |
648 // End of file |
607 // End of file |