summaryrefslogtreecommitdiffstats
path: root/src/fetch/z3950fetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/z3950fetcher.h')
-rw-r--r--src/fetch/z3950fetcher.h54
1 files changed, 28 insertions, 26 deletions
diff --git a/src/fetch/z3950fetcher.h b/src/fetch/z3950fetcher.h
index ec6dca0..a183871 100644
--- a/src/fetch/z3950fetcher.h
+++ b/src/fetch/z3950fetcher.h
@@ -39,7 +39,7 @@ class KComboBox;
#include "configwidget.h"
#include "../datavectors.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
namespace Tellico {
namespace Fetch {
@@ -50,15 +50,16 @@ namespace Tellico {
*/
class Z3950Fetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
- Z3950Fetcher(QObject* parent, const char* name = 0);
+ Z3950Fetcher(TQObject* tqparent, const char* name = 0);
virtual ~Z3950Fetcher();
- 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();
// can search title, person, isbn, or keyword. No UPC or Raw for now.
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k == ISBN || k == Keyword || k == LCCN; }
@@ -70,72 +71,73 @@ public:
virtual void saveConfigHook(KConfigGroup& config);
virtual void updateEntry(Data::EntryPtr entry);
- const QString& host() const { return m_host; }
+ const TQString& host() const { return m_host; }
static StringMap customFields();
- virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const;
+ virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const;
class ConfigWidget;
friend class ConfigWidget;
- static QString defaultName();
+ static TQString defaultName();
protected:
- virtual void customEvent(QCustomEvent* event);
+ virtual void customEvent(TQCustomEvent* event);
private:
bool initMARC21Handler();
bool initUNIMARCHandler();
bool initMODSHandler();
void process();
- void handleResult(const QString& result);
+ void handleResult(const TQString& result);
void done();
Z3950Connection* m_conn;
- QString m_host;
+ TQString m_host;
uint m_port;
- QString m_dbname;
- QString m_user;
- QString m_password;
- QString m_sourceCharSet;
- QString m_syntax;
- QString m_pqn; // prefix query notation
- QString m_esn; // element set name
+ TQString m_dbname;
+ TQString m_user;
+ TQString m_password;
+ TQString m_sourceCharSet;
+ TQString m_syntax;
+ TQString m_pqn; // prefix query notation
+ TQString m_esn; // element set name
FetchKey m_key;
- QString m_value;
- QMap<int, Data::EntryPtr> m_entries;
+ TQString m_value;
+ TQMap<int, Data::EntryPtr> m_entries;
bool m_started;
bool m_done;
- QString m_preset;
+ TQString m_preset;
XSLTHandler* m_MARC21XMLHandler;
XSLTHandler* m_UNIMARCXMLHandler;
XSLTHandler* m_MODSHandler;
- QStringList m_fields;
+ TQStringList m_fields;
friend class Z3950Connection;
};
class Z3950Fetcher::ConfigWidget : public Fetch::ConfigWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- ConfigWidget(QWidget* parent, const Z3950Fetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent, const Z3950Fetcher* fetcher = 0);
virtual ~ConfigWidget();
virtual void saveConfig(KConfigGroup& config_);
- virtual QString preferredName() const;
+ virtual TQString preferredName() const;
private slots:
void slotTogglePreset(bool on);
void slotPresetChanged();
private:
- void loadPresets(const QString& current);
+ void loadPresets(const TQString& current);
- QCheckBox* m_usePreset;
+ TQCheckBox* m_usePreset;
GUI::ComboBox* m_serverCombo;
GUI::LineEdit* m_hostEdit;
KIntSpinBox* m_portSpinBox;
@@ -145,7 +147,7 @@ private:
KComboBox* m_charSetCombo;
GUI::ComboBox* m_syntaxCombo;
// have to remember syntax
- QString m_syntax;
+ TQString m_syntax;
};
} // end namespace