widgets/widgetapp/inc/WidgetUiWindow.h
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    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 
    29 
    30 
    30 // CONSTANTS
    31 // CONSTANTS
    31 enum TWidgetAccessGrant
    32 enum TWidgetAccessGrant
    32     {
    33     {
    33     EInvalid,
    34     EInvalid,
    71 class CCpsPublisher;
    72 class CCpsPublisher;
    72 class CFbsBitmap;
    73 class CFbsBitmap;
    73 class CSchemeHandler;
    74 class CSchemeHandler;
    74 class CBrCtlInterface;
    75 class CBrCtlInterface;
    75 class CJpgSaver;
    76 class CJpgSaver;
       
    77 class CBrowserDialogsProvider;
    76 // CLASS DECLARATION
    78 // CLASS DECLARATION
    77 
    79 
    78 /**
    80 /**
    79 *
    81 *
    80 *
    82 *
   229 		
   231 		
   230     public: //MAknServerAppExitObserver
   232     public: //MAknServerAppExitObserver
   231 
   233 
   232         void HandleServerAppExit( TInt aReason );
   234         void HandleServerAppExit( TInt aReason );
   233 
   235 
   234 
       
   235     public:  // new functions
   236     public:  // new functions
   236 
   237 
   237         /**
   238         /**
   238         * Engine
   239         * Engine
   239         * @since 3.1
   240         * @since 3.1
   329         * Relayout
   330         * Relayout
   330         * relayout display to preferred orientation
   331         * relayout display to preferred orientation
   331         * @since 3.1
   332         * @since 3.1
   332         * @return void
   333         * @return void
   333         */
   334         */
   334        void Relayout( );
   335        void RelayoutL(TInt aType=0 );
   335 
   336 
   336        /**
   337        /**
   337         * SetCurrentWindow
   338         * SetCurrentWindow
   338         * sets the current window active or non-current window inactive
   339         * sets the current window active or non-current window inactive
   339         * @since 3.1
   340         * @since 3.1
   498          * returns pointer to NetworkMode wait object
   499          * returns pointer to NetworkMode wait object
   499          * @since 7.1
   500          * @since 7.1
   500          * @return CActiveSchedulerWait*
   501          * @return CActiveSchedulerWait*
   501          */
   502          */
   502         CActiveSchedulerWait* NetworkModeWait() { return iNetworkModeWait; }
   503         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;}
   503 
   532 
   504         
   533         
   505     protected:
   534     protected:
   506 
   535 
   507         /**
   536         /**
   592         TBool                           iUserPermission;    // ETrue if user chooses to allow network access when prompted, else EFalse
   621         TBool                           iUserPermission;    // ETrue if user chooses to allow network access when prompted, else EFalse
   593         
   622         
   594         //Download transaction ID
   623         //Download transaction ID
   595         long                            iDlId;  
   624         long                            iDlId;  
   596 		TInt                            iClickCount;
   625 		TInt                            iClickCount;
   597         CFbsBitmap*                     iMiniviewBitmap ;
   626         CFbsBitmap                      iMiniviewBitmap1;
       
   627         CFbsBitmap                      iMiniviewBitmap2;
       
   628         CFbsBitmap*                     iActiveMiniviewBitmap;
       
   629         
   598         TTime                           iOOMWidgetStartTime; 
   630         TTime                           iOOMWidgetStartTime; 
   599         TBool                           iWidgetLoadStarted; // Set to true when widget load starts
   631         TBool                           iWidgetLoadStarted; // Set to true when widget load starts
   600         CJpgSaver*                       iJpgSaver; 
   632         CJpgSaver*                       iJpgSaver; 
   601         CActiveSchedulerWait*           iNetworkModeWait;
   633         CActiveSchedulerWait*           iNetworkModeWait;
   602                             
   634         TBool                           iNeedToNotifyNetworkState;        
       
   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 
   603    };
   644    };
   604 
   645 
   605 #endif  //
   646 #endif  //
   606 
   647 
   607 // End of file
   648 // End of file