Support an image cache like the Python version does

This commit is contained in:
Luca Beltrame 2013-04-01 11:31:52 +02:00
parent 601975a6fd
commit e9fde425df
2 changed files with 61 additions and 14 deletions

View file

@ -50,6 +50,7 @@
class QPixmap;
class KUrl;
class KJob;
class KImageCache;
namespace Danbooru {
@ -96,6 +97,8 @@ namespace Danbooru {
unsigned int m_currentPosts; // To tell when to quit
KImageCache* m_cache; // Pixmap cache
public:
/**
@ -108,7 +111,8 @@ namespace Danbooru {
*
**/
DanbooruService(KUrl& boardUrl, QString username = QString(),
QString password = QString(), QObject* parent = 0);
QString password = QString(), KImageCache* cache = 0,
QObject* parent = 0);
/**
* Default destructor.