photosgallery/viewframework/views/listview/inc/glxlistviewimp.h
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 11 71da52165949
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
    30 #include <glxmedialistiterator.h>        // Interface for going through items in
    30 #include <glxmedialistiterator.h>        // Interface for going through items in
    31 
    31 
    32 #include <ganes/HgScrollBufferObserverIface.h>
    32 #include <ganes/HgScrollBufferObserverIface.h>
    33 #include <ganes/HgSelectionObserverIface.h>
    33 #include <ganes/HgSelectionObserverIface.h>
    34 
    34 
       
    35 #include <glxprogressindicator.h>
       
    36 #include <harvesterclient.h>
       
    37 
    35 // FORWARD DECLARATIONS
    38 // FORWARD DECLARATIONS
    36 class MMPXCollectionUtility;
    39 class MMPXCollectionUtility;
    37 class CGlxPreviewThumbnailBinding;
    40 class CGlxPreviewThumbnailBinding;
    38 
    41 
    39 class CHgDoubleGraphicListFlat;
    42 class CHgDoubleGraphicListFlat;
    40 class CAknsBasicBackgroundControlContext;
    43 class CAknsBasicBackgroundControlContext;
       
    44 
       
    45 
       
    46 //NOT: This enum is based on TGlxCollectionPluginPriority. If any
       
    47 //change happen regarding priority order in that, need to change 
       
    48 //in this enum also.
       
    49 enum
       
    50     {
       
    51     EGlxListItemAll = 0,
       
    52     EGlxListItemMonth,
       
    53     EGlxListItemAlbum,
       
    54     EGlxLIstItemTag    
       
    55     };
    41 
    56 
    42 // CLASS DECLARATION
    57 // CLASS DECLARATION
    43 
    58 
    44 /**
    59 /**
    45  * Implementation of preview list view.  The view shows a vertically scrolling
    60  * Implementation of preview list view.  The view shows a vertically scrolling
    55 
    70 
    56 NONSHARABLE_CLASS( CGlxListViewImp ) : public CGlxListView, 
    71 NONSHARABLE_CLASS( CGlxListViewImp ) : public CGlxListView, 
    57 									   public MGlxMediaListObserver,
    72 									   public MGlxMediaListObserver,
    58 								       public MHgScrollBufferObserver,
    73 								       public MHgScrollBufferObserver,
    59 									   public MHgSelectionObserver,
    74 									   public MHgSelectionObserver,
    60 									   public MPreviewTNObserver
    75 									   public MPreviewTNObserver,
       
    76 									   public MDialogDismisedObserver
    61     {
    77     {
    62 public:
    78 public:
    63     /**
    79     /**
    64      * Two-phased constructor.
    80      * Two-phased constructor.
    65      *
    81      *
   155     void HandleSelectL( TInt aIndex );
   171     void HandleSelectL( TInt aIndex );
   156     void HandleOpenL( TInt aIndex );   
   172     void HandleOpenL( TInt aIndex );   
   157     
   173     
   158 private:
   174 private:
   159     void CreateListL();
   175     void CreateListL();
       
   176     void SetDefaultThumbnailL(TInt aIndex);
   160 	 
   177 	 
   161 public: // from MGlxMediaListObserver
   178 public: // from MGlxMediaListObserver
   162     void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
   179     void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
   163     void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
   180     void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
   164     void HandleAttributesAvailableL( TInt aItemIndex, 
   181     void HandleAttributesAvailableL( TInt aItemIndex, 
   171     void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError, 
   188     void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError, 
   172         MGlxMediaList* aList );
   189         MGlxMediaList* aList );
   173     void HandleMediaL( TInt aListIndex, MGlxMediaList* aList );
   190     void HandleMediaL( TInt aListIndex, MGlxMediaList* aList );
   174     void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList );
   191     void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList );
   175     void HandlePopulatedL( MGlxMediaList* aList );
   192     void HandlePopulatedL( MGlxMediaList* aList );
       
   193     void HandleDialogDismissedL(); // from MDialogDismisedObserver
   176 	 
   194 	 
   177 private:    // Data
   195 private:    // Data
   178 
   196 
   179     CAknsBasicBackgroundControlContext* iBgContext; //Own
   197     CAknsBasicBackgroundControlContext* iBgContext; //Own
   180     
   198     
   215     
   233     
   216     TBool iNextViewActivationEnabled;
   234     TBool iNextViewActivationEnabled;
   217     // save title text 
   235     // save title text 
   218     HBufC* iTitletext;
   236     HBufC* iTitletext;
   219 
   237 
       
   238     CGlxProgressIndicator* iProgressIndicator;
       
   239 
       
   240 	//Check for TN generation
       
   241     TBool isTnGenerationComplete;
   220     };
   242     };
   221 
   243 
   222 #endif  // C_GLXLISTVIEWIMP_H
   244 #endif  // C_GLXLISTVIEWIMP_H
   223 
   245 
   224 // End of File
   246 // End of File