|
| void | addLoadingProcess (LoadingProcess *const process) |
| | Add a loading process to the list.
|
|
quint64 | getCacheSize () const |
| | Get the cache size in bytes.
|
|
bool | hasThumbnailPixmap (const QString &cacheKey) const |
| bool | isCacheable (const DImg &img) const |
| void | notifyFileChanged (const QString &filePath, bool notify=true) |
| | Remove all entries from cache that were loaded from filePath.
|
|
void | notifyNewLoadingProcess (LoadingProcess *const process, const LoadingDescription &description) |
| | Notify all currently registered loading processes.
|
| bool | putImage (const QString &cacheKey, const DImg &img, const QString &filePath) const |
| | Put image into for given string into the cache.
|
|
void | putThumbnail (const QString &cacheKey, const QImage &thumb, const QString &filePath) |
| | Puts a thumbnail into the thumbnail cache.
|
|
void | putThumbnail (const QString &cacheKey, const QPixmap &thumb, const QString &filePath) |
|
void | removeImage (const QString &cacheKey) |
| | Remove entries for the given cacheKey from the cache.
|
|
void | removeImages () |
| | Remove all entries from the cache.
|
|
void | removeLoadingProcess (LoadingProcess *const process) |
| | Remove loading process for given cache key.
|
|
void | removeThumbnail (const QString &cacheKey) |
| | Remove the thumbnail for the given file path from the thumbnail cache.
|
|
void | removeThumbnails () |
| | Remove all thumbnails.
|
|
const QPixmap * | retrieveBufferedTPixmap (const QString &cacheKey) const |
|
DImg * | retrieveImage (const QString &cacheKey) const |
| | Retrieves an image for the given string from the cache, or 0 if no image is found.
|
|
LoadingProcess * | retrieveLoadingProcess (const QString &cacheKey) const |
| | Find the loading process for given cacheKey, or 0 if not found.
|
| const QImage * | retrieveThumbnail (const QString &cacheKey) const |
| | The LoadingCache support both the caching of QImage and QPixmap objects.
|
|
const QPixmap * | retrieveThumbnailPixmap (const QString &cacheKey) const |
| void | setCacheSize (int megabytes) |
| | Sets the cache size in megabytes.
|
| void | setFileWatch (LoadingCacheFileWatch *const watch) |
| | Sets a LoadingCacheFileWatch to watch the files contained in this cache.
|
| void | setThumbnailCacheSize (int numberOfQImages, int numberOfQPixmaps) |
| | Sets the size of the thumbnail cache.
|