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/entrezfetcher.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/entrezfetcher.h')
-rw-r--r-- | src/fetch/entrezfetcher.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/fetch/entrezfetcher.h b/src/fetch/entrezfetcher.h index c8aac49..bd94fdc 100644 --- a/src/fetch/entrezfetcher.h +++ b/src/fetch/entrezfetcher.h @@ -22,8 +22,8 @@ namespace Tellico { #include "configwidget.h" #include "../datavectors.h" -#include <qcstring.h> // for QByteArray -#include <qguardedptr.h> +#include <tqcstring.h> // for TQByteArray +#include <tqguardedptr.h> namespace KIO { class Job; @@ -37,18 +37,19 @@ namespace Tellico { */ class EntrezFetcher : public Fetcher { Q_OBJECT + TQ_OBJECT public: - EntrezFetcher(QObject* parent, const char* name=0); + EntrezFetcher(TQObject* tqparent, const char* name=0); /** */ virtual ~EntrezFetcher(); - virtual QString source() const; + virtual TQString source() const; virtual bool isSearching() const { return m_started; } // pubmed can search title, person, and keyword virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword || k == Raw || k == PubmedID || k == DOI; } - virtual void search(FetchKey key, const QString& value); + virtual void search(FetchKey key, const TQString& value); virtual void continueSearch(); virtual void stop(); virtual Data::EntryPtr fetchEntry(uint uid); @@ -56,22 +57,22 @@ public: virtual bool canFetch(int type) const; virtual void readConfigHook(const KConfigGroup& config); virtual void updateEntry(Data::EntryPtr entry); - 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 EntrezFetcher* fetcher=0); + ConfigWidget(TQWidget* tqparent_, const EntrezFetcher* fetcher=0); virtual void saveConfig(KConfigGroup& config); - 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: @@ -89,22 +90,22 @@ private: }; XSLTHandler* m_xsltHandler; - QString m_dbname; + TQString m_dbname; int m_start; int m_total; - QByteArray m_data; - QMap<int, Data::EntryPtr> m_entries; // map from search result id to entry - QMap<int, int> m_matches; // search result id to pubmed id - QGuardedPtr<KIO::Job> m_job; + TQByteArray m_data; + TQMap<int, Data::EntryPtr> m_entries; // map from search result id to entry + TQMap<int, int> m_matches; // search result id to pubmed id + TQGuardedPtr<KIO::Job> m_job; - QString m_queryKey; - QString m_webEnv; + TQString m_queryKey; + TQString m_webEnv; Step m_step; bool m_started; - QStringList m_fields; + TQStringList m_fields; }; } // end namespace |