|
Hydra 0.20
|
#include <ThumbCache.h>
Public Member Functions | |
| ThreadedThumbCache (void) | |
| constructor | |
| void | flushJobs (void) |
| signals all the jobs to die quickly | |
| bool | containsPixmap (const QString &hash, int rotateCode, int windoww, int windowh) |
| desktop::cache_ptr< QPixmap > | getPixmap (const QString &fullfilename, const QString &hash, int rotateCode, int windoww, int windowh, FileList *fileList=0, int indexOfFile=-1) |
A ThumbCache that queues background threads to fill in any missing thumbnails.
| bool desktop::ThreadedThumbCache::containsPixmap | ( | const QString & | hash, |
| int | rotateCode, | ||
| int | windoww, | ||
| int | windowh | ||
| ) |
check if this pixmap is in the cache done need the fullfilename (for now) as its all hash/rotateCode based
| desktop::cache_ptr<QPixmap> desktop::ThreadedThumbCache::getPixmap | ( | const QString & | fullfilename, |
| const QString & | hash, | ||
| int | rotateCode, | ||
| int | windoww, | ||
| int | windowh, | ||
| FileList * | fileList = 0, |
||
| int | indexOfFile = -1 |
||
| ) |
returns a cached pixmap if one needs to be generated, it does so via a background thread while immediatly returning a null ptr rotate code can be -1 if "not specified"