31 |
31 |
32 #include <favouritesdb.h> |
32 #include <favouritesdb.h> |
33 #include <downloadedcontenthandler.h> |
33 #include <downloadedcontenthandler.h> |
34 #include "WindowInfoProvider.h" |
34 #include "WindowInfoProvider.h" |
35 #include <browseroverriddensettings.h> |
35 #include <browseroverriddensettings.h> |
36 |
36 #ifdef BRDO_IAD_UPDATE_ENABLED_FF |
|
37 #include <iaupdateobserver.h> |
|
38 #endif |
37 // FORWARD DECLARATIONS |
39 // FORWARD DECLARATIONS |
38 class CBrowserViewBase; |
40 class CBrowserViewBase; |
39 class MCommsModel; |
41 class MCommsModel; |
40 class CBrowserCommsModel; |
42 class CBrowserCommsModel; |
41 class CBrowserPreferences; |
43 class CBrowserPreferences; |
86 class CBrowserAppUi : public CAknViewAppUi, |
91 class CBrowserAppUi : public CAknViewAppUi, |
87 public MApiProvider, |
92 public MApiProvider, |
88 public MConnectionStageObserver, |
93 public MConnectionStageObserver, |
89 public MDownloadedContentHandler, |
94 public MDownloadedContentHandler, |
90 public MWindowInfoProvider |
95 public MWindowInfoProvider |
|
96 #ifdef BRDO_IAD_UPDATE_ENABLED_FF |
|
97 ,public MIAUpdateObserver |
|
98 #endif |
91 { |
99 { |
92 public: // Constructors and destructor |
100 public: // Constructors and destructor |
93 /** |
101 /** |
94 * Default constructor. |
102 * Default constructor. |
95 */ |
103 */ |
707 // This member is public, so BrowserLauncher.dll can close the browser. |
715 // This member is public, so BrowserLauncher.dll can close the browser. |
708 CBrowserAsyncExit *iBrowserAsyncExit; |
716 CBrowserAsyncExit *iBrowserAsyncExit; |
709 public: |
717 public: |
710 void StopConnectionObserving(); |
718 void StopConnectionObserving(); |
711 |
719 |
|
720 #ifdef BRDO_OCC_ENABLED_FF |
|
721 //Retry flags |
|
722 void SetRetryFlag(TBool flag); |
|
723 TBool GetRetryFlag(); |
|
724 #endif |
|
725 |
712 private: |
726 private: |
713 |
727 |
714 /** |
728 /** |
715 *Callback for late constructing of the SendUi in idle |
729 *Callback for late constructing of the SendUi in idle |
716 *Needed to provide better response time for the user |
730 *Needed to provide better response time for the user |
781 * There's a homepage to be launched so start in content view |
795 * There's a homepage to be launched so start in content view |
782 * [Convenience function that gets used in 2 places] |
796 * [Convenience function that gets used in 2 places] |
783 * @param none |
797 * @param none |
784 */ |
798 */ |
785 void StartFetchHomePageL(); |
799 void StartFetchHomePageL(); |
786 |
|
787 |
800 |
|
801 #ifdef BRDO_OCC_ENABLED_FF |
|
802 //For Call back for reconnectivity |
|
803 static TInt RetryConnectivity(TAny* aCBrowserAppUi); |
|
804 TInt RetryInternetConnection(); |
|
805 #endif |
|
806 |
|
807 #ifdef BRDO_IAD_UPDATE_ENABLED_FF |
|
808 /** |
|
809 * Check updates |
|
810 */ |
|
811 void CheckUpdatesL(); |
|
812 |
|
813 /** |
|
814 * Clean IAD update parameters |
|
815 */ |
|
816 void CleanUpdateParams(); |
|
817 |
|
818 /** |
|
819 * This callback function is called when the update checking operation has completed. |
|
820 * |
|
821 * @param aErrorCode The error code of the observed update operation. |
|
822 * KErrNone for successful completion, |
|
823 * otherwise a system wide error code. |
|
824 * @param aAvailableUpdates Number of the updates that were found available. |
|
825 */ |
|
826 void CheckUpdatesComplete( TInt aErrorCode, TInt aAvailableUpdates ); |
|
827 |
|
828 /** |
|
829 * This callback function is called when an update operation has completed. |
|
830 * |
|
831 * @param aErrorCode The error code of the completed update operation. |
|
832 * KErrNone for successful completion, |
|
833 * otherwise a system wide error code. |
|
834 * @param aResult Details about the completed update operation. |
|
835 * Ownership is transferred. |
|
836 */ |
|
837 void UpdateComplete( TInt aErrorCode, CIAUpdateResult* aResultDetails ); |
|
838 |
|
839 /** |
|
840 * This callback function is called when an update query operation has completed. |
|
841 * |
|
842 * @param aErrorCode The error code of the observed query operation. |
|
843 * KErrNone for successful completion, |
|
844 * otherwise a system wide error code. |
|
845 * @param aUpdateNow ETrue informs that an update operation should be started. |
|
846 * EFalse informs that there is no need to start an update |
|
847 * operation. |
|
848 */ |
|
849 void UpdateQueryComplete( TInt aErrorCode, TBool aUpdateNow ){return;} |
|
850 |
|
851 /** |
|
852 * This function is checking the existence of the file containing last update time |
|
853 * @param None |
|
854 * @return TBool. |
|
855 */ |
|
856 TBool CheckUpdateFileAvailable(); |
|
857 |
|
858 /** |
|
859 * This function is deleting of the file(if exist) containing last update time |
|
860 * @param None |
|
861 * @return None. |
|
862 */ |
|
863 void DeleteUpdateFile(); |
|
864 |
|
865 /** |
|
866 * This function is will write the current time in file |
|
867 * @param None |
|
868 * @return None. |
|
869 */ |
|
870 void WriteUpdateFile(); |
|
871 |
|
872 /** |
|
873 * This function will read the content of the file if it exists |
|
874 * @param None |
|
875 * @return TBool. |
|
876 */ |
|
877 TInt64 ReadUpdateFile(); |
|
878 #endif |
788 protected: |
879 protected: |
789 |
880 |
790 /** |
881 /** |
791 * Symbian OS constructor. |
882 * Symbian OS constructor. |
792 */ |
883 */ |
982 // Record browser launch's overridden context id |
1073 // Record browser launch's overridden context id |
983 TUint iOverriddenLaunchContextId; |
1074 TUint iOverriddenLaunchContextId; |
984 |
1075 |
985 TBool iBrowserAlreadyRunning; |
1076 TBool iBrowserAlreadyRunning; |
986 |
1077 |
|
1078 #ifdef BRDO_OCC_ENABLED_FF |
|
1079 CPeriodic *iRetryConnectivity; |
|
1080 TBool reConnectivityFlag; |
|
1081 #endif |
|
1082 |
|
1083 #ifdef BRDO_IAD_UPDATE_ENABLED_FF |
|
1084 CIAUpdate* iUpdate; |
|
1085 CIAUpdateParameters* iParameters; |
|
1086 RFs iFs; |
|
1087 #endif |
|
1088 |
987 protected: |
1089 protected: |
988 |
1090 |
989 CBrowserCommsModel* iCommsModel; |
1091 CBrowserCommsModel* iCommsModel; |
990 CBrowserPreferences* iPreferences; |
1092 CBrowserPreferences* iPreferences; |
991 |
1093 |