diff -r 67c4a6333a59 -r 326673dff2bf csxhelp/inc/CSXHHtmlTopicContainer.h --- a/csxhelp/inc/CSXHHtmlTopicContainer.h Tue Apr 27 16:25:29 2010 +0300 +++ b/csxhelp/inc/CSXHHtmlTopicContainer.h Tue May 25 12:28:46 2010 +0300 @@ -394,13 +394,24 @@ CCSXHHelpContentBase* GetCurrActiveObject(); private: + +/** +* The state type of browser content. +* @see SetContentLoadState() and NeedRefresh. +*/ + enum TContentLoadState + { + ENoContent, + EContentLoading, + EContentLoadFinished + }; /** - @function ConstructL - @since S60 3.2 - Perform the second phase construction of a HtmlTopicContainer object - @param aRect the rectangle this view will be drawn to - */ +* @function ConstructL +* @since S60 3.2 +* @Perform the second phase construction of a HtmlTopicContainer object +* @param aRect the rectangle this view will be drawn to + */ void ConstructL(const TRect& aRect); /** @@ -418,6 +429,18 @@ */ TBool CheckForExternalLinkL(const TDesC& aUrl); +/** +* @function SetContentLoadingState +* Set the state of content loading and refresh the UI id needed +*/ + void SetContentLoadState( const TContentLoadState aLoadState ); + +/** +* @function NeedRefresh +* Judge whether we need to refresh the browser control +*/ + TBool NeedRefresh( const TContentLoadState aNewLoadState ) const; + private: CBrCtlInterface* iBrCtrl; CCSXHHtmlTOC2* iTopic; @@ -435,6 +458,7 @@ TInt32 iPrevPageCount; TBool iBack; + TContentLoadState iContentLoading; };