24 #ifndef DIGIKAM_LOADING_CACHE_H
25 #define DIGIKAM_LOADING_CACHE_H
40 class ICCSettingsContainer;
92 void addedImage(
const QString& filePath);
93 void checkFileWatch(
const QString& filePath);
103 void notifyFileChanged(
const QString& filePath);
149 static void cleanUp();
155 DImg* retrieveImage(
const QString& cacheKey)
const;
160 bool isCacheable(
const DImg& img)
const;
170 bool putImage(
const QString& cacheKey,
const DImg& img,
const QString& filePath)
const;
175 void removeImage(
const QString& cacheKey);
187 LoadingProcess* retrieveLoadingProcess(
const QString& cacheKey)
const;
209 void setCacheSize(
int megabytes);
222 const QImage* retrieveThumbnail(
const QString& cacheKey)
const;
223 const QPixmap* retrieveThumbnailPixmap(
const QString& cacheKey)
const;
224 bool hasThumbnailPixmap(
const QString& cacheKey)
const;
229 void putThumbnail(
const QString& cacheKey,
const QImage& thumb,
const QString& filePath);
230 void putThumbnail(
const QString& cacheKey,
const QPixmap& thumb,
const QString& filePath);
235 void removeThumbnail(
const QString& cacheKey);
240 void removeThumbnails();
255 void setThumbnailCacheSize(
int numberOfQImages,
int numberOfQPixmaps);
268 QStringList imageFilePathsInCache()
const;
269 QStringList thumbnailFilePathsInCache()
const;
275 void notifyFileChanged(
const QString& filePath,
bool notify =
true);
Definition: iccsettingscontainer.h:44
Definition: loadsavethread.h:51
AccessMode
Definition: loadsavethread.h:127
Definition: loadingcache.h:84
class LoadingCache * m_cache
Definition: loadingcache.h:110
QMap< QString, QPair< qint64, QDateTime > > m_watchMap
Definition: loadingcache.h:109
Definition: loadingcache.h:133
Definition: loadingcache.h:123
void fileChanged(const QString &filePath)
Definition: loadingdescription.h:45
Definition: loadingcache.h:43
virtual LoadSaveThread::AccessMode accessMode() const =0
virtual bool querySendNotifyEvent() const =0
LoadingProcessListener()
Definition: loadingcache.cpp:42
virtual LoadSaveNotifier * loadSaveNotifier() const =0
virtual void setResult(const LoadingDescription &loadingDescription, const DImg &img)=0
virtual ~LoadingProcessListener()
Definition: loadingcache.cpp:46
Definition: loadingcache.h:63
virtual QString cacheKey() const =0
virtual bool completed() const =0
virtual void notifyNewLoadingProcess(LoadingProcess *const process, const LoadingDescription &description)=0
virtual void removeListener(LoadingProcessListener *const listener)=0
virtual ~LoadingProcess()
Definition: loadingcache.cpp:56
virtual void addListener(LoadingProcessListener *const listener)=0
LoadingProcess()
Definition: loadingcache.cpp:52
Definition: datefolderview.cpp:43