diff -r 16d8024aca5e -r f7ac710697a9 src/hbservers/hbthemeserver/hbicondatacache_p.h --- a/src/hbservers/hbthemeserver/hbicondatacache_p.h Mon Apr 19 14:02:13 2010 +0300 +++ b/src/hbservers/hbthemeserver/hbicondatacache_p.h Mon May 03 12:48:33 2010 +0300 @@ -40,7 +40,7 @@ HbIconCacheItem* getCacheItem(const HbIconKey &key , bool isMultiIconPiece = false); bool insert(const HbIconKey &key, HbIconCacheItem* item); - bool remove(const HbIconKey& key); + bool remove(const HbIconKey& key, bool keepInCache = true); void setMaxGpuCacheSize(int size); void setMaxCpuCacheSize(int size); bool contains(const HbIconKey &key) const; @@ -49,6 +49,7 @@ bool isItemCachableInCpu(const HbIconCacheItem* item)const; void memoryGood(); void freeGpuRam(int bytes); + QVector getKeys(const QString &filename) const; //Debug Code for Test Purpose #ifdef HB_ICON_CACHE_DEBUG @@ -75,12 +76,9 @@ void createCpuCacheSpace(int itemCost); void updateGpuLruSize(int iconDataCost); void updateCpuLruSize(int iconDataCost); - //Debug Code for Test Purpose -#ifdef HB_ICON_CACHE_DEBUG void removeFromCache(const HbIconKey &key, const HbIconCacheItem* releaseItem); void releaseVectorItem(HbIconCacheItem* releaseItem); void releaseRasterItem(HbIconCacheItem* releaseItem); -#endif private: QHash *cache;