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