add mp3 and ogg torrent url info to JamendoAlbum
[amarok.git] / src / refreshimages.h
blob479a9e98ec54315d2020c63f518561fc5aead3e4
1 // (c) 2005 Ian Monroe <ian@monroe.nu>
2 // See COPYING file for licensing information.
4 #ifndef AMAROK_REFRESHIMAGES_H
5 #define AMAROK_REFRESHIMAGES_H
7 #include <QMap>
8 #include <QObject>
9 namespace KIO {
10 class Job;
13 class JobInfo
15 public:
16 JobInfo() { } //for QMap
17 JobInfo(const QString& asin, const QString& locale, bool last) :
18 m_asin(asin), m_locale(locale), m_last(last) { }
19 QString m_asin;
20 QString m_locale;
21 QString m_detailUrl;
22 bool m_last;
25 class RefreshImages : public QObject
27 Q_OBJECT
28 public:
29 RefreshImages();
30 private slots:
31 void finishedXmlFetch( KIO::Job* );
32 void finishedImageFetch( KIO::Job* );
33 private:
34 static QString localeToTLD(const QString& locale);
35 QMap<QString, JobInfo> m_jobInfo;
37 #endif