diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/fetch/animenfofetcher.h | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/fetch/animenfofetcher.h')
-rw-r--r-- | src/fetch/animenfofetcher.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/fetch/animenfofetcher.h b/src/fetch/animenfofetcher.h index 7e4028e..df43b87 100644 --- a/src/fetch/animenfofetcher.h +++ b/src/fetch/animenfofetcher.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 AnimeNfoFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: - AnimeNfoFetcher(QObject* parent, const char* name = 0); + AnimeNfoFetcher(TQObject* tqparent, const char* name = 0); virtual ~AnimeNfoFetcher() {} - 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); // only keyword search virtual bool canSearch(FetchKey k) const { return k == Keyword; } virtual void stop(); @@ -52,33 +53,33 @@ 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); 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 |