phonebookui/Phonebook2/inc/CPbk2ThumbnailManager.h
branchRCL_3
changeset 35 4ae315f230bc
parent 32 2828b4d142c0
child 64 c1e8ba0c2b16
--- a/phonebookui/Phonebook2/inc/CPbk2ThumbnailManager.h	Tue May 11 16:00:21 2010 +0300
+++ b/phonebookui/Phonebook2/inc/CPbk2ThumbnailManager.h	Tue May 25 12:26:45 2010 +0300
@@ -140,6 +140,7 @@
 
 	/**
 	 * Reset thumbnail manager. Clear cache and cancel all ongoing operations.
+	 * NOTICE: Does not remove icons from icon array.
 	 */
 	void Reset();
 	
@@ -218,6 +219,12 @@
 	 */
 	void PreCreateThumbnailArrayL( MVPbkContactViewBase& aView );
 
+    /**
+     * Flush cached thumbnails and cancel all ongoing and scheduled operations.
+     * Remove icons from icon array if available.
+     */
+    void FlushCache();
+    
 private: // From MVPbkSingleContactOperationObserver
    void VPbkSingleContactOperationComplete(
 		   MVPbkContactOperationBase& aOperation,
@@ -316,6 +323,9 @@
 	CPbk2TmItem*                    iInProgressItemToBeRemoved;
 	/// Not own. Filtered view of contacts.
 	MPbk2FilteredViewStack*         iView;
+	/// Flag whether cache is clean. Used to prevent unnecessary work when cleaning
+	/// is requested repeatedly
+	TBool iIsCacheClean;
 	};
 
 #endif /* CPBK2THUMBNAILMANAGER_H_ */