blob: a83427caca39820c83af8fe43f23b582cf81f12e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// (c) 2005 Ian Monroe <ian@monroe.nu>
// See COPYING file for licensing information.
#ifndef AMAROK_REFRESHIMAGES_H
#define AMAROK_REFRESHIMAGES_H
#include <tqobject.h>
namespace TDEIO {
class StoredTransferJob;
class Job;
}
class TQStringList;
class JobInfo
{
public:
JobInfo() : m_last(false) { } //for TQMap
JobInfo(const TQString& asin, const TQString& locale, bool last) :
m_asin(asin), m_locale(locale), m_last(last) { }
TQString m_asin;
TQString m_locale;
TQString m_detailUrl;
bool m_last;
};
class RefreshImages : public TQObject
{
Q_OBJECT
public:
RefreshImages();
private slots:
void finishedXmlFetch( TDEIO::Job* );
void finishedImageFetch( TDEIO::Job* );
private:
static TQString localeToTLD(const TQString& locale);
TQMap<TQString, JobInfo> m_jobInfo;
};
#endif
|