widgets/widgetapp/inc/WidgetUiWindow.h
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
--- a/widgets/widgetapp/inc/WidgetUiWindow.h	Tue Aug 31 16:17:46 2010 +0300
+++ b/widgets/widgetapp/inc/WidgetUiWindow.h	Wed Sep 01 12:28:30 2010 +0100
@@ -21,12 +21,13 @@
 
 // INCLUDES FILES
 #include <e32base.h>
-#include <BrCtlDefs.h>
+#include <brctldefs.h>
 #include <brctlinterface.h> // for MWidgetCallback
 #include <AknServerApp.h>
 #include <coecntrl.h>
 #include "WidgetUiObserver.h"
 
+
 // CONSTANTS
 enum TWidgetAccessGrant
     {
@@ -73,6 +74,7 @@
 class CSchemeHandler;
 class CBrCtlInterface;
 class CJpgSaver;
+class CBrowserDialogsProvider;
 // CLASS DECLARATION
 
 /**
@@ -231,7 +233,6 @@
 
         void HandleServerAppExit( TInt aReason );
 
-
     public:  // new functions
 
         /**
@@ -331,7 +332,7 @@
         * @since 3.1
         * @return void
         */
-       void Relayout( );
+       void RelayoutL(TInt aType=0 );
 
        /**
         * SetCurrentWindow
@@ -500,6 +501,34 @@
          * @return CActiveSchedulerWait*
          */
         CActiveSchedulerWait* NetworkModeWait() { return iNetworkModeWait; }
+        
+        /**
+         * NeedToNotifyNetworkState
+         * Notifies to Widget about network state
+         * @since 7.1
+		 * @param aNetworkState the online/offline state needs to be notified to widget or not
+         * @return none
+         */
+        void NeedToNotifyNetworkState(TBool aNetworkState);
+        
+        TBool CanBeDeleted();
+        
+        static TInt DeleteItself(TAny* aPtr);
+
+		void DeleteItself();
+		
+#ifdef BRDO_OCC_ENABLED_FF        
+        void CancelAllDialogs();
+        
+        
+        TBool IsDialogsLaunched();        
+#endif
+        void  setSapiPromptCleared(TBool aPrompt){ iSapiPromptCleared = aPrompt; }
+        TBool getSapiPromptCleared(){ return iSapiPromptCleared; }
+        TInt  getNeedToIgnoreSapiNtfn(){ return iNeedToIgnoreSapiNtfn; }
+        void  setNeedToIgnoreSapiNtfn ( TInt aVal){ iNeedToIgnoreSapiNtfn = iNeedToIgnoreSapiNtfn + aVal;}
+        TInt  getNeedToIgnoreSapiClearNtfn(){ return iNeedToIgnoreSapiClearNtfn;}
+        void  setNeedToIgnoreSapiClearNtfn ( TInt aVal) { iNeedToIgnoreSapiClearNtfn = iNeedToIgnoreSapiClearNtfn + aVal;}
 
         
     protected:
@@ -594,12 +623,24 @@
         //Download transaction ID
         long                            iDlId;  
 		TInt                            iClickCount;
-        CFbsBitmap*                     iMiniviewBitmap ;
+        CFbsBitmap                      iMiniviewBitmap1;
+        CFbsBitmap                      iMiniviewBitmap2;
+        CFbsBitmap*                     iActiveMiniviewBitmap;
+        
         TTime                           iOOMWidgetStartTime; 
         TBool                           iWidgetLoadStarted; // Set to true when widget load starts
         CJpgSaver*                       iJpgSaver; 
         CActiveSchedulerWait*           iNetworkModeWait;
-                            
+        TBool                           iNeedToNotifyNetworkState;        
+        TBool                           iConnecting;                            
+        TBool                           iDeleteItself;
+        CAsyncCallBack*                 iAsyncCallBack;    
+        CBrowserDialogsProvider*        iDialogsProvider;// owned, responsible for deleting
+        // For sapi prmompt counts
+        TBool                           iSapiPromptCleared;
+        TInt                            iNeedToIgnoreSapiNtfn;
+        TInt                            iNeedToIgnoreSapiClearNtfn;
+
    };
 
 #endif  //