summaryrefslogtreecommitdiffstats
path: root/src/fetch/googlescholarfetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/googlescholarfetcher.h')
-rw-r--r--src/fetch/googlescholarfetcher.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/fetch/googlescholarfetcher.h b/src/fetch/googlescholarfetcher.h
index 4e15475..9391d1f 100644
--- a/src/fetch/googlescholarfetcher.h
+++ b/src/fetch/googlescholarfetcher.h
@@ -18,8 +18,8 @@
#include "configwidget.h"
#include "../datavectors.h"
-#include <qguardedptr.h>
-#include <qregexp.h>
+#include <tqguardedptr.h>
+#include <tqregexp.h>
namespace KIO {
class Job;
@@ -35,20 +35,21 @@ namespace Tellico {
*/
class GoogleScholarFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
/**
*/
- GoogleScholarFetcher(QObject* parent, const char* name = 0);
+ GoogleScholarFetcher(TQObject* tqparent, const char* name = 0);
/**
*/
virtual ~GoogleScholarFetcher();
/**
*/
- 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 or person
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword; }
@@ -63,20 +64,20 @@ public:
/**
* Returns a widget for modifying the fetcher's config.
*/
- virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const;
+ virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const;
class ConfigWidget : public Fetch::ConfigWidget {
public:
- ConfigWidget(QWidget* parent_, const GoogleScholarFetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent_, const GoogleScholarFetcher* fetcher = 0);
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:
@@ -86,15 +87,15 @@ private:
int m_start;
int m_total;
- 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;
- QRegExp m_bibtexRx;
+ TQRegExp m_bibtexRx;
bool m_cookieIsSet;
};