Add missing (and needed) functions

This commit is contained in:
Luca Beltrame 2015-08-23 17:26:17 +02:00
parent 9a3fd3819f
commit 7caa2d6956

View file

@ -76,6 +76,9 @@ ApiType KonachanDanbooruService::apiType() const {
return KonachanDanbooru; return KonachanDanbooru;
} }
KonachanDanbooruService::~KonachanDanbooruService() {
}
////////////// //////////////
// API methods // API methods
////////////// //////////////
@ -375,6 +378,7 @@ void KonachanDanbooruService::processPostList(KJob *job)
} }
m_postsToFetch = postList.length(); m_postsToFetch = postList.length();
// qCDebug(LIBDANBOORU) << "Found " << m_postsToFetch << "posts to fetch";
for (auto element : postList) { for (auto element : postList) {
@ -406,6 +410,7 @@ void KonachanDanbooruService::processPostList(KJob *job)
} else { } else {
// qCDebug(LIBDANBOORU) << "Downloading image" << post->thumbnailUrl();
StoredTransferJob *pixmapJob = KIO::storedGet(post->thumbnailUrl(), StoredTransferJob *pixmapJob = KIO::storedGet(post->thumbnailUrl(),
KIO::NoReload, KIO::HideProgressInfo); KIO::NoReload, KIO::HideProgressInfo);
@ -441,6 +446,7 @@ void KonachanDanbooruService::processPostList(KJob *job)
m_cache->insertPixmap(post->thumbnailUrl().url(), pix); m_cache->insertPixmap(post->thumbnailUrl().url(), pix);
} }
m_postsToFetch--; // One less post to do m_postsToFetch--; // One less post to do
qCDebug(LIBDANBOORU) << "Current posts remaining: " << m_postsToFetch; qCDebug(LIBDANBOORU) << "Current posts remaining: " << m_postsToFetch;
@ -460,6 +466,10 @@ void KonachanDanbooruService::processPostList(KJob *job)
} }
void KonachanDanbooruService::downloadAllTags(KJob* job) {
Q_UNUSED(job);
}
} //namespace Danbooru } //namespace Danbooru