diff options
Diffstat (limited to 'src/fetch/amazonfetcher.h')
-rw-r--r-- | src/fetch/amazonfetcher.h | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/fetch/amazonfetcher.h b/src/fetch/amazonfetcher.h index 05df8d7..ed7b97a 100644 --- a/src/fetch/amazonfetcher.h +++ b/src/fetch/amazonfetcher.h @@ -20,13 +20,13 @@ #include <kurl.h> -#include <qcstring.h> // for QByteArray -#include <qguardedptr.h> +#include <tqcstring.h> // for TQByteArray +#include <tqguardedptr.h> class KLineEdit; -class QCheckBox; -class QLabel; +class TQCheckBox; +class TQLabel; namespace KIO { class Job; @@ -48,6 +48,7 @@ namespace Tellico { */ class AmazonFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: enum Site { @@ -67,12 +68,12 @@ public: NoImage=3 }; - AmazonFetcher(Site site, QObject* parent, const char* name = 0); + AmazonFetcher(Site site, TQObject* tqparent, const char* name = 0); virtual ~AmazonFetcher(); - 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, person, isbn, or keyword. No Raw for now. virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == ISBN || k == UPC || k == Keyword; } @@ -85,7 +86,7 @@ public: virtual void updateEntry(Data::EntryPtr entry); struct SiteData { - QString title; + TQString title; KURL url; }; static const SiteData& siteData(int site); @@ -93,56 +94,57 @@ 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; 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: void initXSLTHandler(); void doSearch(); void parseTitle(Data::EntryPtr entry, int collType); - bool parseTitleToken(Data::EntryPtr entry, const QString& token); + bool parseTitleToken(Data::EntryPtr entry, const TQString& token); XSLTHandler* m_xsltHandler; Site m_site; ImageSize m_imageSize; - QString m_access; - QString m_assoc; + TQString m_access; + TQString m_assoc; bool m_addLinkField; int m_limit; int m_countOffset; - QByteArray m_data; + TQByteArray m_data; int m_page; int m_total; int m_numResults; - QMap<int, Data::EntryPtr> m_entries; // they get modified after collection is created, so can't be const - QGuardedPtr<KIO::Job> m_job; + TQMap<int, Data::EntryPtr> m_entries; // they get modified after collection is created, so can't be const + TQGuardedPtr<KIO::Job> m_job; FetchKey m_key; - QString m_value; + TQString m_value; bool m_started; - QStringList m_fields; + TQStringList m_fields; }; class AmazonFetcher::ConfigWidget : public Fetch::ConfigWidget { Q_OBJECT + TQ_OBJECT public: - ConfigWidget(QWidget* parent_, const AmazonFetcher* fetcher = 0); + ConfigWidget(TQWidget* tqparent_, const AmazonFetcher* fetcher = 0); virtual void saveConfig(KConfigGroup& config); - virtual QString preferredName() const; + virtual TQString preferredName() const; private slots: void slotSiteChanged(); |