widgets/widgetapp/inc/WidgetUiWindowManager.h
branchRCL_3
changeset 35 1f3c3f2f5b0a
parent 26 cb62a4f66ebe
child 41 4bd5176e1bc8
equal deleted inserted replaced
34:220a17280356 35:1f3c3f2f5b0a
    59 #ifdef BRDO_WRT_HS_FF
    59 #ifdef BRDO_WRT_HS_FF
    60 class CCpsPublisher;
    60 class CCpsPublisher;
    61 #endif
    61 #endif
    62 // CLASS DECLARATION
    62 // CLASS DECLARATION
    63 
    63 
       
    64 class CRepository; 
       
    65 
       
    66 class MCenrepWatcher
       
    67        {
       
    68        public:
       
    69                virtual void CenrepChanged(TInt aHSModeOnline) = 0;
       
    70         };
       
    71 class CCenrepNotifyHandler : public CActive
       
    72        {
       
    73        public:
       
    74                 static CCenrepNotifyHandler* NewL( MCenrepWatcher& aObserver);
       
    75                 static CCenrepNotifyHandler* NewLC( MCenrepWatcher& aObserver);
       
    76                 void StartObservingL();
       
    77                 void StopObserving();
       
    78                 virtual ~CCenrepNotifyHandler();
       
    79                 void RunL();
       
    80                 void RunErrorL(TInt aError);
       
    81                 void DoCancel();
       
    82        protected:
       
    83                 CCenrepNotifyHandler(MCenrepWatcher& aObserver);
       
    84                 void ConstructL();
       
    85        private:
       
    86               CRepository* iRepository;
       
    87               TUint32 iKey;
       
    88               TUid iUid;
       
    89               MCenrepWatcher& iObserver; //class using the observer
       
    90         };
    64 /**
    91 /**
    65 *  CWidgetUiWindowManager
    92 *  CWidgetUiWindowManager
    66 *  @lib WidgetUi.app
    93 *  @lib WidgetUi.app
    67 *  @since 3.1
    94 *  @since 3.1
    68 */
    95 */
    69 class CWidgetUiWindowManager : public CBase
    96 class CWidgetUiWindowManager : public CBase,
       
    97 	                             public MCenrepWatcher
    70     {
    98     {
    71     public:  // constructors / destructor
    99     public:  // constructors / destructor
    72 
   100 
    73         /**
   101         /**
    74         * NewL
   102         * NewL
    85         * @since 3.1
   113         * @since 3.1
    86         * @param none
   114         * @param none
    87         * @return none
   115         * @return none
    88         */
   116         */
    89         virtual ~CWidgetUiWindowManager();
   117         virtual ~CWidgetUiWindowManager();
       
   118     public:  //MCenrepWatcher
       
   119     	  
       
   120     	/**
       
   121         * CenrepChanged
       
   122         * @since 7.x
       
   123         * @param aHSModeOnline HS web status online/offline.
       
   124         */
       
   125         void CenrepChanged(TInt aHSModeOnline);
    90 
   126 
    91     public:  
   127     public:  
    92 
   128 
    93 // Create window
   129 // Create window
    94         
   130         
   595         TBrCtlDefs::TCursorSettings                     iWidgetCursorMode;
   631         TBrCtlDefs::TCursorSettings                     iWidgetCursorMode;
   596         TBrCtlDefs::TEnterKeySettings       iWidgetEnterKeyMode;
   632         TBrCtlDefs::TEnterKeySettings       iWidgetEnterKeyMode;
   597         
   633         
   598 #ifdef BRDO_WRT_HS_FF       
   634 #ifdef BRDO_WRT_HS_FF       
   599         CCpsPublisher*                      iCpsPublisher;      // Owned, interface to publish bitmap to CPS
   635         CCpsPublisher*                      iCpsPublisher;      // Owned, interface to publish bitmap to CPS
       
   636         CCenrepNotifyHandler*               iCenrepNotifyHandler;  
   600 #endif
   637 #endif
   601         // TODO should this be created only when needed?
   638         // TODO should this be created only when needed?
   602         CActiveApDb*                        iDb;                // owned, responsible for deleting        
   639         CActiveApDb*                        iDb;                // owned, responsible for deleting        
   603         CPeriodic*                          iNotifyOOMFlagTimer;//Timer for one min timeout before next oom note is shown
   640         CPeriodic*                          iNotifyOOMFlagTimer;//Timer for one min timeout before next oom note is shown
   604         CPeriodic*                          iNotifyHarvester;//Notify harvester to send next event
   641         CPeriodic*                          iNotifyHarvester;//Notify harvester to send next event
   605 #ifdef  OOM_WIDGET_CLOSEALL
   642 #ifdef  OOM_WIDGET_CLOSEALL
   606         TTime                               iTimeLastWidgetOpen;
   643         TTime                               iTimeLastWidgetOpen;
   607 #endif         
   644 #endif  
   608     };
   645     };
   609 
   646 
   610 #endif  // WIDGETUIWINDOWMANAGER_H_
   647 #endif  // WIDGETUIWINDOWMANAGER_H_
   611 
   648 
   612 // End of File
   649 // End of File