photosgallery/viewframework/views/listview/inc/glxpreviewthumbnailbinding.h
changeset 2 7d9067c6fcb1
parent 0 4e91876724a2
child 9 6b87b143d312
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
    65 	/**
    65 	/**
    66 	 * Destructor
    66 	 * Destructor
    67 	 */
    67 	 */
    68 	~CGlxPreviewThumbnailBinding();
    68 	~CGlxPreviewThumbnailBinding();
    69 	
    69 	
    70 	/**
       
    71 	 * HasFirstThumbnail
       
    72 	 */
       
    73 	TBool HasFirstThumbnail( const RArray< TMPXAttribute >& aAttributes );
       
    74 	
       
    75 private:
    70 private:
    76 
    71 
    77 	 /**
    72 	 /**
    78 	 * Constructor
    73 	 * Constructor
    79 	 */
    74 	 */
    83 	 * Two phase construction
    78 	 * Two phase construction
    84 	 */
    79 	 */
    85 	void ConstructL();
    80 	void ConstructL();
    86 
    81 
    87 public:	
    82 public:	
    88       void HandleItemChangedL(const CMPXCollectionPath& aPath, TBool aPopulateListTNs);
    83       void HandleItemChangedL(const CMPXCollectionPath& aPath,
       
    84               TBool aPopulateListTNs, TBool aBackwardNavigation);
    89       void StartTimer(TBool aPopulateListTNs);
    85       void StartTimer(TBool aPopulateListTNs);
       
    86       void StopTimer();
    90       
    87       
    91       // From MGlxMediaListObserver
    88       // From MGlxMediaListObserver
    92       void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    89       void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    93       void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    90       void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    94       void HandleAttributesAvailableL( TInt aItemIndex, 
    91       void HandleAttributesAvailableL( TInt aItemIndex, 
   100       void HandleError( TInt aError );
    97       void HandleError( TInt aError );
   101       void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError, 
    98       void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError, 
   102           MGlxMediaList* aList );
    99           MGlxMediaList* aList );
   103       void HandleMediaL( TInt aListIndex, MGlxMediaList* aList );
   100       void HandleMediaL( TInt aListIndex, MGlxMediaList* aList );
   104       void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList );
   101       void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList );
       
   102       void HandlePopulatedL( MGlxMediaList* aList );
   105      
   103      
   106 private:
   104 private:
   107 	/**
   105 	/**
   108 	 * IsTimeL
   106 	 * IsTimeL
   109 	 */
   107 	 */
   121 	CPeriodic* iTimer;
   119 	CPeriodic* iTimer;
   122 	
   120 	
   123 	//Medialist that holds the thumbnail information
   121 	//Medialist that holds the thumbnail information
   124 	MGlxMediaList* iMediaList;
   122 	MGlxMediaList* iMediaList;
   125 	
   123 	
   126 	// Thumbnail context
   124 	// Thumbnail Attrib context
   127 	CGlxThumbnailContext* iThumbnailContext;
   125     CGlxAttributeContext* iThumbnailContext;	
   128 	
   126 	
   129 	// for thumbnail context
   127 	// for thumbnail context
   130 	TGlxSequentialIterator iThumbnailIterator;
   128 	TGlxSequentialIterator iThumbnailIterator;
   131 	
   129 	
   132 	// Preview thumbnail index
   130 	// Preview thumbnail index
   147     // Holds the numbers of trials count,after which PreviewTNReady callback
   145     // Holds the numbers of trials count,after which PreviewTNReady callback
   148     // has to be called
   146     // has to be called
   149     TInt iTrialCount;
   147     TInt iTrialCount;
   150     
   148     
   151     TInt iTrial;
   149     TInt iTrial;
       
   150         
       
   151     TBool iBackwardNavigation;
       
   152     
       
   153     CMPXFilter* iPreviewFilter;
   152 };
   154 };
   153     
   155     
   154 
   156 
   155 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_
   157 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_