summaryrefslogtreecommitdiffstats
path: root/src/fetch/srufetcher.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/srufetcher.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/srufetcher.h')
-rw-r--r--src/fetch/srufetcher.h42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/fetch/srufetcher.h b/src/fetch/srufetcher.h
index fd07323..d62b866 100644
--- a/src/fetch/srufetcher.h
+++ b/src/fetch/srufetcher.h
@@ -32,8 +32,8 @@ namespace KIO {
#include "configwidget.h"
#include "../datavectors.h"
-#include <qcstring.h> // for QByteArray
-#include <qguardedptr.h>
+#include <tqcstring.h> // for TQByteArray
+#include <tqguardedptr.h>
namespace Tellico {
namespace Fetch {
@@ -48,24 +48,25 @@ class SRUConfigWidget;
*/
class SRUFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
friend class SRUConfigWidget;
public:
/**
*/
- SRUFetcher(QObject* parent, const char* name = 0);
- SRUFetcher(const QString& name, const QString& host, uint port, const QString& dbname,
- QObject* parent);
+ SRUFetcher(TQObject* tqparent, const char* name = 0);
+ SRUFetcher(const TQString& name, const TQString& host, uint port, const TQString& dbname,
+ TQObject* tqparent);
/**
*/
virtual ~SRUFetcher();
/**
*/
- 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 search title, person, isbn, or keyword. No Raw for now.
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == ISBN || k == Keyword || k == LCCN; }
virtual void stop();
@@ -78,43 +79,44 @@ public:
static StringMap customFields();
- virtual ConfigWidget* configWidget(QWidget* parent) const;
+ virtual ConfigWidget* configWidget(TQWidget* tqparent) const;
- static QString defaultName();
+ static TQString defaultName();
- static Fetcher::Ptr libraryOfCongress(QObject* parent);
+ static Fetcher::Ptr libraryOfCongress(TQObject* tqparent);
private slots:
- void slotData(KIO::Job* job, const QByteArray& data);
+ void slotData(KIO::Job* job, const TQByteArray& data);
void slotComplete(KIO::Job* job);
private:
bool initMARCXMLHandler();
bool initMODSHandler();
- QString m_host;
+ TQString m_host;
uint m_port;
- QString m_path;
- QString m_format;
+ TQString m_path;
+ TQString m_format;
- 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;
XSLTHandler* m_MARCXMLHandler;
XSLTHandler* m_MODSHandler;
bool m_started;
- QStringList m_fields;
+ TQStringList m_fields;
};
class SRUConfigWidget : public ConfigWidget {
Q_OBJECT
+ TQ_OBJECT
friend class SRUFetcher;
public:
- SRUConfigWidget(QWidget* parent_, const SRUFetcher* fetcher = 0);
+ SRUConfigWidget(TQWidget* tqparent_, const SRUFetcher* fetcher = 0);
virtual void saveConfig(KConfigGroup& config);
- virtual QString preferredName() const;
+ virtual TQString preferredName() const;
private slots:
void slotCheckHost();