photosgallery/viewframework/views/listview/inc/glxpreviewthumbnailbinding.h
branchRCL_3
changeset 13 bcb43dc84c44
parent 11 71da52165949
child 14 2dac0fdba72b
equal deleted inserted replaced
12:ce1c7ad1f18b 13:bcb43dc84c44
    32  * Observer interface
    32  * Observer interface
    33  */
    33  */
    34 class MPreviewTNObserver 
    34 class MPreviewTNObserver 
    35     {
    35     {
    36 public:
    36 public:
    37     virtual void PreviewTNReadyL(CFbsBitmap* aBitmap, CFbsBitmap* aMask, TBool aPopulateList) = 0;
    37     virtual void PreviewTNReadyL(CFbsBitmap* aBitmap, CFbsBitmap* aMask) = 0;
    38     };
    38     };
    39     
    39     
    40 // CLASS DECLARATION
    40 // CLASS DECLARATION
    41 /**
    41 /**
    42  * Implementation of preview thumbnail binding for the 
    42  * Implementation of preview thumbnail binding for the 
    86       void ScaleBitmapToListSizeL(CFbsBitmap* aSrcBitmap, CFbsBitmap* aDestBitmap);
    86       void ScaleBitmapToListSizeL(CFbsBitmap* aSrcBitmap, CFbsBitmap* aDestBitmap);
    87 
    87 
    88 public:	
    88 public:	
    89       void HandleItemChangedL(const CMPXCollectionPath& aPath,TBool aPopulateListTNs, 
    89       void HandleItemChangedL(const CMPXCollectionPath& aPath,TBool aPopulateListTNs, 
    90 									  TBool aIsRefreshNeeded, TBool aBackwardNavigation);
    90 									  TBool aIsRefreshNeeded, TBool aBackwardNavigation);
    91       void StartTimer(TBool aPopulateListTNs);
    91       void StartTimer();
    92       void StopTimer();
    92       void StopTimer();
    93       
    93       
    94       // From MGlxMediaListObserver
    94       // From MGlxMediaListObserver
    95       void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    95       void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    96       void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
    96       void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
   130 	// Thumbnail Attrib context
   130 	// Thumbnail Attrib context
   131     CGlxAttributeContext* iThumbnailContext;	
   131     CGlxAttributeContext* iThumbnailContext;	
   132 	
   132 	
   133 	// for thumbnail context
   133 	// for thumbnail context
   134 	TGlxSequentialIterator iThumbnailIterator;
   134 	TGlxSequentialIterator iThumbnailIterator;
   135 	
   135 		
   136 	// Preview thumbnail index
       
   137 	TInt iProgressIndex;
       
   138 	
       
   139 	// flag that says whether timer has expired
   136 	// flag that says whether timer has expired
   140 	TBool iTimerTicked;
   137 	TBool iTimerTicked;
   141 	
   138 	
   142 	//flag will be true, when initially the first thumbnails for all the 
   139 	//flag will be true, when initially the first thumbnails for all the 
   143 	//items in the list are populated.
   140 	//items in the list are populated.
   144 	TBool iPopulateListTNs;
   141 	TBool iPopulateListTNs;
   145 	
   142 	
   146 	TBool iIsRefreshNeeded;
   143 	TBool iIsRefreshNeeded;
   147 
       
   148     //it holds the initial number of thumbnail to be displayed
       
   149     RArray<TInt> iPreviewItemCount;
       
   150     
   144     
   151     TSize iGridIconSize;
   145     TSize iGridIconSize;
   152     
   146     
   153     // Holds the numbers of trials count,after which PreviewTNReady callback
   147     // Holds the numbers of trials count,after which PreviewTNReady callback
   154     // has to be called
   148     // has to be called
   155     TInt iTrialCount;
   149     TInt iTrialCount;
   156     
       
   157     TInt iTrial;
       
   158         
   150         
   159     CMPXFilter* iPreviewFilter;
   151     CMPXFilter* iPreviewFilter;
   160 };
   152 };
   161 
   153 
   162 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_
   154 #endif //_GLXPREVIEWTHUMBNAILBINDING_H_