diff options
Diffstat (limited to 'src/fetch/discogsfetcher.h')
-rw-r--r-- | src/fetch/discogsfetcher.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/fetch/discogsfetcher.h b/src/fetch/discogsfetcher.h index ac8c1b8..cddb0b1 100644 --- a/src/fetch/discogsfetcher.h +++ b/src/fetch/discogsfetcher.h @@ -23,9 +23,9 @@ namespace Tellico { #include "../datavectors.h" #include <klineedit.h> -#include <qdom.h> -#include <qcstring.h> // for QByteArray -#include <qguardedptr.h> +#include <tqdom.h> +#include <tqcstring.h> // for TQByteArray +#include <tqguardedptr.h> namespace KIO { class Job; @@ -41,20 +41,21 @@ namespace Tellico { */ class DiscogsFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: /** */ - DiscogsFetcher(QObject* parent, const char* name = 0); + DiscogsFetcher(TQObject* tqparent, const char* name = 0); /** */ virtual ~DiscogsFetcher(); /** */ - virtual QString source() const; + virtual TQString source() const; virtual bool isSearching() const { return m_started; } - virtual void search(FetchKey key, const QString& value); + virtual void search(FetchKey key, const TQString& value); virtual void continueSearch(); // amazon can search title or person virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword; } @@ -69,25 +70,25 @@ public: /** * Returns a widget for modifying the fetcher's config. */ - virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const; + virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; static StringMap customFields(); class ConfigWidget : public Fetch::ConfigWidget { public: - ConfigWidget(QWidget* parent_, const DiscogsFetcher* fetcher = 0); + ConfigWidget(TQWidget* tqparent_, const DiscogsFetcher* fetcher = 0); virtual void saveConfig(KConfigGroup&); - virtual QString preferredName() const; + virtual TQString preferredName() const; private: KLineEdit *m_apiKeyEdit; - QCheckBox* m_fetchImageCheck; + TQCheckBox* m_fetchImageCheck; }; friend class ConfigWidget; - static QString defaultName(); + static TQString defaultName(); private slots: - void slotData(KIO::Job* job, const QByteArray& data); + void slotData(KIO::Job* job, const TQByteArray& data); void slotComplete(KIO::Job* job); private: @@ -99,17 +100,17 @@ private: int m_start; int m_total; - QByteArray m_data; - QMap<int, Data::EntryPtr> m_entries; - QGuardedPtr<KIO::Job> m_job; + TQByteArray m_data; + TQMap<int, Data::EntryPtr> m_entries; + TQGuardedPtr<KIO::Job> m_job; FetchKey m_key; - QString m_value; + TQString m_value; bool m_started; bool m_fetchImages; - QString m_apiKey; - QStringList m_fields; + TQString m_apiKey; + TQStringList m_fields; }; } // end namespace |