diff -r b023a8d2866a -r ea65f74e6de4 photosgallery/viewframework/views/gridview/inc/glxgridviewmlobserver.h --- a/photosgallery/viewframework/views/gridview/inc/glxgridviewmlobserver.h Thu Jul 15 18:39:01 2010 +0300 +++ b/photosgallery/viewframework/views/gridview/inc/glxgridviewmlobserver.h Thu Aug 19 09:55:03 2010 +0300 @@ -23,10 +23,15 @@ #include #include +// CONSTANTS +const TInt KNoOfPages(3); +const TInt KBufferTresholdSize(3); // in rows + // FORWARD DECLARATIONS class CGlxMediaList; class CHgGrid; class CGlxDRMUtility; +class MHgScrollBufferObserver; //class CHgContextUtility; // CLASS DECLARATION @@ -41,9 +46,10 @@ * * @return Pointer to newly created object. */ - IMPORT_C static CGlxGridViewMLObserver* NewL(MGlxMediaList& aMediaList, - CHgGrid* aHgGrid, TGlxFilterItemType aFilterType = - EGlxFilterVideoAndImages); + IMPORT_C static CGlxGridViewMLObserver* NewL( + MHgScrollBufferObserver& aHgScrollBufferObs, + MGlxMediaList& aMediaList, CHgGrid* aHgGrid, + TGlxFilterItemType aFilterType = EGlxFilterVideoAndImages); /** * Destructor. @@ -71,7 +77,8 @@ /** * C++ default constructor. */ - CGlxGridViewMLObserver(MGlxMediaList& aMediaList, CHgGrid* aHgGrid, + CGlxGridViewMLObserver(MHgScrollBufferObserver& aHgScrollBufferObs, + MGlxMediaList& aMediaList, CHgGrid* aHgGrid, TGlxFilterItemType aFilterType); /** @@ -127,6 +134,8 @@ void SetIconL(TInt aItemIndex, TInt aBitmapId, TInt aMaskId, TInt aFlags); private: + // Hg Grid scroll buffer observer + MHgScrollBufferObserver& iHgScrollBufferObs; MGlxMediaList& iMediaList;