summaryrefslogtreecommitdiffstats
path: root/src/fetch/crossreffetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/crossreffetcher.h')
-rw-r--r--src/fetch/crossreffetcher.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/fetch/crossreffetcher.h b/src/fetch/crossreffetcher.h
index 392d46a..7b502c6 100644
--- a/src/fetch/crossreffetcher.h
+++ b/src/fetch/crossreffetcher.h
@@ -20,8 +20,8 @@
#include <kio/job.h>
-#include <qcstring.h> // for QByteArray
-#include <qguardedptr.h>
+#include <tqcstring.h> // for TQByteArray
+#include <tqguardedptr.h>
class KLineEdit;
@@ -36,14 +36,15 @@ namespace Tellico {
*/
class CrossRefFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
- CrossRefFetcher(QObject* parent);
+ CrossRefFetcher(TQObject* tqparent);
~CrossRefFetcher();
- 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 bool canSearch(FetchKey k) const { return k == DOI; }
virtual void stop();
@@ -55,40 +56,40 @@ public:
virtual void updateEntry(Data::EntryPtr entry);
virtual void updateEntrySynchronous(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_, const CrossRefFetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent_, const CrossRefFetcher* fetcher = 0);
virtual void saveConfig(KConfigGroup& config);
- virtual QString preferredName() const;
+ virtual TQString preferredName() const;
private:
KLineEdit* m_userEdit;
KLineEdit* m_passEdit;
};
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();
- KURL searchURL(FetchKey key, const QString& value) const;
+ KURL searchURL(FetchKey key, const TQString& value) const;
XSLTHandler* m_xsltHandler;
- QString m_user;
- QString m_password;
+ TQString m_user;
+ TQString m_password;
- 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;
};