photosgallery/viewframework/views/gridview/inc/glxgridviewmlobserver.h
branchRCL_3
changeset 24 ea65f74e6de4
parent 19 420f6808bf21
equal deleted inserted replaced
23:b023a8d2866a 24:ea65f74e6de4
    21 
    21 
    22 // Photos Headers
    22 // Photos Headers
    23 #include <mglxmedialistobserver.h>
    23 #include <mglxmedialistobserver.h>
    24 #include <glxfiltergeneraldefs.h>
    24 #include <glxfiltergeneraldefs.h>
    25 
    25 
       
    26 // CONSTANTS
       
    27 const TInt KNoOfPages(3);
       
    28 const TInt KBufferTresholdSize(3);    // in rows
       
    29 
    26 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    27 class CGlxMediaList;
    31 class CGlxMediaList;
    28 class CHgGrid;
    32 class CHgGrid;
    29 class CGlxDRMUtility;
    33 class CGlxDRMUtility;
       
    34 class MHgScrollBufferObserver;
    30 //class CHgContextUtility;
    35 //class CHgContextUtility;
    31 
    36 
    32 // CLASS DECLARATION
    37 // CLASS DECLARATION
    33 class CGlxGridViewMLObserver: public CBase,
    38 class CGlxGridViewMLObserver: public CBase,
    34                               public MGlxMediaListObserver
    39                               public MGlxMediaListObserver
    39     /**
    44     /**
    40      * Two-phased constructor.
    45      * Two-phased constructor.
    41      *
    46      *
    42      * @return Pointer to newly created object.
    47      * @return Pointer to newly created object.
    43      */
    48      */
    44     IMPORT_C static CGlxGridViewMLObserver* NewL(MGlxMediaList& aMediaList,
    49     IMPORT_C static CGlxGridViewMLObserver* NewL(
    45             CHgGrid* aHgGrid, TGlxFilterItemType aFilterType =
    50             MHgScrollBufferObserver& aHgScrollBufferObs,
    46                     EGlxFilterVideoAndImages);
    51             MGlxMediaList& aMediaList, CHgGrid* aHgGrid,
       
    52             TGlxFilterItemType aFilterType = EGlxFilterVideoAndImages);
    47 
    53 
    48     /**
    54     /**
    49      * Destructor.
    55      * Destructor.
    50      */
    56      */
    51     virtual ~CGlxGridViewMLObserver();
    57     virtual ~CGlxGridViewMLObserver();
    69 private:
    75 private:
    70 
    76 
    71     /**
    77     /**
    72      * C++ default constructor.
    78      * C++ default constructor.
    73      */
    79      */
    74     CGlxGridViewMLObserver(MGlxMediaList& aMediaList, CHgGrid* aHgGrid,
    80     CGlxGridViewMLObserver(MHgScrollBufferObserver& aHgScrollBufferObs,
       
    81             MGlxMediaList& aMediaList, CHgGrid* aHgGrid,
    75             TGlxFilterItemType aFilterType);
    82             TGlxFilterItemType aFilterType);
    76 
    83 
    77     /**
    84     /**
    78      * By default Symbian 2nd phase constructor is private.
    85      * By default Symbian 2nd phase constructor is private.
    79      */
    86      */
   125      * @param aFlags - The indicator flags	 
   132      * @param aFlags - The indicator flags	 
   126      */
   133      */
   127     void SetIconL(TInt aItemIndex, TInt aBitmapId, TInt aMaskId, TInt aFlags);
   134     void SetIconL(TInt aItemIndex, TInt aBitmapId, TInt aMaskId, TInt aFlags);
   128     
   135     
   129 private:
   136 private:
       
   137     // Hg Grid scroll buffer observer
       
   138     MHgScrollBufferObserver& iHgScrollBufferObs;
   130 
   139 
   131     MGlxMediaList& iMediaList;
   140     MGlxMediaList& iMediaList;
   132 	
   141 	
   133     // Instance of HG Grid
   142     // Instance of HG Grid
   134     CHgGrid* iHgGrid;
   143     CHgGrid* iHgGrid;