~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/covers/kittenloader.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef KITTENLOADER_H
 
2
#define KITTENLOADER_H
 
3
 
 
4
#include "albumcoverloader.h"
 
5
 
 
6
#include <QQueue>
 
7
#include <QUrl>
 
8
 
 
9
class KittenLoader : public AlbumCoverLoader {
 
10
  Q_OBJECT
 
11
 public:
 
12
  KittenLoader(QObject* parent = 0);
 
13
 
 
14
  virtual quint64 LoadImageAsync(
 
15
      const QString& art_automatic,
 
16
      const QString& art_manual,
 
17
      const QString& song_filename,
 
18
      const QImage& embedded_image);
 
19
 
 
20
 private slots:
 
21
  void KittensRetrieved();
 
22
  void FetchMoreKittens();
 
23
 
 
24
 private:
 
25
  static const char* kFlickrKittenUrl;
 
26
  static const char* kFlickrPhotoUrl;
 
27
 
 
28
  QQueue<Task> pending_kittens_;
 
29
  QQueue<QUrl> kitten_urls_;
 
30
};
 
31
 
 
32
#endif