diff -r 10c6e6d6e4d9 -r bec11adf88f9 extras/about/inc/AboutContainer.h --- a/extras/about/inc/AboutContainer.h Wed Sep 01 12:29:54 2010 +0100 +++ b/extras/about/inc/AboutContainer.h Tue Sep 14 21:21:28 2010 +0300 @@ -23,23 +23,31 @@ #include #include #include +#include +#include "MResourceLoaderObserver.h" + // FORWARD DECLARATIONS class CEikScrollBarFrame; class CAboutImage; class CFont; class TRect; class TBidiText; -class CAknsBasicBackgroundControlContext; -#include +class CAknsBasicBackgroundControlContext; +class CAboutResourceLoader; + // CLASS DECLARATION /** * CAboutContainer container control class. -* +* The container for About. It handle the system event. +* And it draws correct texts and images to screen base on the scroll bar. +* */ -//About container derived from scrollbarobserver to get events on scrollbar movements -class CAboutContainer : public CCoeControl, public MEikScrollBarObserver + +class CAboutContainer : public CCoeControl, + public MEikScrollBarObserver, + public MResourceLoaderObserver { public: // Constructors and destructor CAboutContainer(); @@ -73,6 +81,9 @@ void SetImageL( const TDesC& aFileName, TInt aBitmapId ); void UpdateScrollIndicatorL(); + private: //From MResourceLoaderObserver + void HandleItemsLoadedL( TInt aError ); + void HandleResourceLoadCompletedL( const TInt aResourceId, TInt aError ); // text wrapping private: // Data @@ -95,10 +106,24 @@ // Judge whether scroll bar is dragged. TBool iScrollBarDragged; - TInt iNumItem; + + //Owned: Resource loader. + CAboutResourceLoader* iLoader; + // Judge the break between "real" about box language and the full OSS texts TBool iBreakFlag; - TBool iIsSvg; + + // Store the resource path for load the file + TFileName iResourcePath; + + // Store the item count of the current loading resource. + TInt iCurrentCount; + + // Store the the count of the loaded content's items + TInt iFinalCount; + + // In order to carry out one operation only for getting iFinalCount + TBool iHandleFlag; }; #endif