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

31 lines
569 B
C++

#ifndef KITTENLOADER_H
#define KITTENLOADER_H
#include "albumcoverloader.h"
#include <QQueue>
#include <QUrl>
class QNetworkReply;
class KittenLoader : public AlbumCoverLoader {
Q_OBJECT
public:
KittenLoader(QObject* parent = nullptr);
virtual quint64 LoadKitten(const AlbumCoverLoaderOptions& options);
private slots:
void KittensRetrieved(QNetworkReply* reply);
void FetchMoreKittens();
private:
static const char* kFlickrKittenUrl;
static const char* kFlickrPhotoUrl;
QQueue<Task> pending_kittens_;
QQueue<QUrl> kitten_urls_;
};
#endif