You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amarok/amarok/src/refreshimages.h

40 lines
857 B

// (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 KIO {
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
TQ_OBJECT
public:
RefreshImages();
private slots:
void finishedXmlFetch( KIO::Job* );
void finishedImageFetch( KIO::Job* );
private:
static TQString localeToTLD(const TQString& locale);
TQMap<TQString, JobInfo> m_jobInfo;
};
#endif