phonebookui/Phonebook2/inc/CPbk2ThumbnailManager.h
branchRCL_3
changeset 35 4ae315f230bc
parent 32 2828b4d142c0
child 64 c1e8ba0c2b16
equal deleted inserted replaced
32:2828b4d142c0 35:4ae315f230bc
   138 	 */
   138 	 */
   139 	TInt ThumbnailCount();	
   139 	TInt ThumbnailCount();	
   140 
   140 
   141 	/**
   141 	/**
   142 	 * Reset thumbnail manager. Clear cache and cancel all ongoing operations.
   142 	 * Reset thumbnail manager. Clear cache and cancel all ongoing operations.
       
   143 	 * NOTICE: Does not remove icons from icon array.
   143 	 */
   144 	 */
   144 	void Reset();
   145 	void Reset();
   145 	
   146 	
   146 	/*
   147 	/*
   147 	 * Setter for thumbnail icon size
   148 	 * Setter for thumbnail icon size
   216 	/**
   217 	/**
   217 	 * Create empty thumbnail item array reflecting the aView. 
   218 	 * Create empty thumbnail item array reflecting the aView. 
   218 	 */
   219 	 */
   219 	void PreCreateThumbnailArrayL( MVPbkContactViewBase& aView );
   220 	void PreCreateThumbnailArrayL( MVPbkContactViewBase& aView );
   220 
   221 
       
   222     /**
       
   223      * Flush cached thumbnails and cancel all ongoing and scheduled operations.
       
   224      * Remove icons from icon array if available.
       
   225      */
       
   226     void FlushCache();
       
   227     
   221 private: // From MVPbkSingleContactOperationObserver
   228 private: // From MVPbkSingleContactOperationObserver
   222    void VPbkSingleContactOperationComplete(
   229    void VPbkSingleContactOperationComplete(
   223 		   MVPbkContactOperationBase& aOperation,
   230 		   MVPbkContactOperationBase& aOperation,
   224 		   MVPbkStoreContact* aContact );
   231 		   MVPbkStoreContact* aContact );
   225    
   232    
   314 	/// Own: Holds the item whose thumbnail load is in progress
   321 	/// Own: Holds the item whose thumbnail load is in progress
   315 	/// This item needs to be removed when its safe
   322 	/// This item needs to be removed when its safe
   316 	CPbk2TmItem*                    iInProgressItemToBeRemoved;
   323 	CPbk2TmItem*                    iInProgressItemToBeRemoved;
   317 	/// Not own. Filtered view of contacts.
   324 	/// Not own. Filtered view of contacts.
   318 	MPbk2FilteredViewStack*         iView;
   325 	MPbk2FilteredViewStack*         iView;
       
   326 	/// Flag whether cache is clean. Used to prevent unnecessary work when cleaning
       
   327 	/// is requested repeatedly
       
   328 	TBool iIsCacheClean;
   319 	};
   329 	};
   320 
   330 
   321 #endif /* CPBK2THUMBNAILMANAGER_H_ */
   331 #endif /* CPBK2THUMBNAILMANAGER_H_ */