summaryrefslogtreecommitdiffstats
path: root/src/fetch/arxivfetcher.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/fetch/arxivfetcher.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-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/arxivfetcher.h')
-rw-r--r--src/fetch/arxivfetcher.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/fetch/arxivfetcher.h b/src/fetch/arxivfetcher.h
index bce5f9d..be64c0e 100644
--- a/src/fetch/arxivfetcher.h
+++ b/src/fetch/arxivfetcher.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>
namespace Tellico {
@@ -34,14 +34,15 @@ namespace Tellico {
*/
class ArxivFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
- ArxivFetcher(QObject* parent);
+ ArxivFetcher(TQObject* tqparent);
~ArxivFetcher();
- 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();
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == Keyword || k == ArxivID; }
@@ -54,37 +55,37 @@ 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 ArxivFetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent_, const ArxivFetcher* 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:
void initXSLTHandler();
- KURL searchURL(FetchKey key, const QString& value) const;
+ KURL searchURL(FetchKey key, const TQString& value) const;
void doSearch();
XSLTHandler* m_xsltHandler;
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;
};