diff options
Diffstat (limited to 'src/fetch/ibsfetcher.h')
-rw-r--r-- | src/fetch/ibsfetcher.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/fetch/ibsfetcher.h b/src/fetch/ibsfetcher.h index 39326b2..b607b3a 100644 --- a/src/fetch/ibsfetcher.h +++ b/src/fetch/ibsfetcher.h @@ -17,8 +17,8 @@ #include "fetcher.h" #include "configwidget.h" -#include <qcstring.h> // for QByteArray -#include <qguardedptr.h> +#include <tqcstring.h> // for TQByteArray +#include <tqguardedptr.h> namespace KIO { class Job; @@ -34,14 +34,15 @@ namespace Tellico { */ class IBSFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: - IBSFetcher(QObject* parent, const char* name = 0); + IBSFetcher(TQObject* tqparent, const char* name = 0); virtual ~IBSFetcher() {} - 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); // can search title, person, isbn, or keyword. No UPC or Raw for now. virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == ISBN || k == Keyword; } virtual void stop(); @@ -52,34 +53,34 @@ public: virtual void updateEntry(Data::EntryPtr entry); - virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const; + virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const; class ConfigWidget : public Fetch::ConfigWidget { public: - ConfigWidget(QWidget* parent_); + ConfigWidget(TQWidget* tqparent_); virtual void saveConfig(KConfigGroup&) {} - virtual QString preferredName() const; + virtual TQString preferredName() const; }; 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); void slotCompleteISBN(KIO::Job* job); private: - Data::EntryPtr parseEntry(const QString& str); + Data::EntryPtr parseEntry(const TQString& str); - QByteArray m_data; + TQByteArray m_data; int m_total; - QMap<int, Data::EntryPtr> m_entries; - QMap<int, KURL> m_matches; - QGuardedPtr<KIO::Job> m_job; + TQMap<int, Data::EntryPtr> m_entries; + TQMap<int, KURL> m_matches; + TQGuardedPtr<KIO::Job> m_job; bool m_started; -// QStringList m_fields; +// TQStringList m_fields; }; } // end namespace |