Hydra 0.20
desktop::ThreadedThumbCache Class Reference

#include <ThumbCache.h>

List of all members.

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)

Detailed Description

A ThumbCache that queues background threads to fill in any missing thumbnails.

Author:
Aleksander Demko

Member Function Documentation

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"


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables