1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 16:51:59 +01:00
Clementine-audio-player-Mac.../src/covers/kittenloader.h

31 lines
569 B
C
Raw Normal View History

2010-12-10 15:26:29 +01:00
#ifndef KITTENLOADER_H
#define KITTENLOADER_H
#include "albumcoverloader.h"
#include <QQueue>
#include <QUrl>
2012-10-12 12:38:12 +02:00
class QNetworkReply;
2010-12-10 15:26:29 +01:00
class KittenLoader : public AlbumCoverLoader {
Q_OBJECT
public:
KittenLoader(QObject* parent = nullptr);
2010-12-10 15:26:29 +01:00
virtual quint64 LoadKitten(const AlbumCoverLoaderOptions& options);
2010-12-10 15:26:29 +01:00
private slots:
2012-10-12 12:38:12 +02:00
void KittensRetrieved(QNetworkReply* reply);
2010-12-10 15:26:29 +01:00
void FetchMoreKittens();
private:
static const char* kFlickrKittenUrl;
static const char* kFlickrPhotoUrl;
QQueue<Task> pending_kittens_;
QQueue<QUrl> kitten_urls_;
};
#endif