diff options
Diffstat (limited to 'src/fetch/fetcher.h')
-rw-r--r-- | src/fetch/fetcher.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/fetch/fetcher.h b/src/fetch/fetcher.h index 0d2496e..09f5b2c 100644 --- a/src/fetch/fetcher.h +++ b/src/fetch/fetcher.h @@ -19,8 +19,8 @@ #include <kapplication.h> // for KApplication::random() -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> class KConfigGroup; @@ -35,8 +35,9 @@ namespace Tellico { * * @author Robby Stephenson */ -class Fetcher : public QObject, public KShared { +class Fetcher : public TQObject, public KShared { Q_OBJECT + TQ_OBJECT public: typedef KSharedPtr<Fetcher> Ptr; @@ -44,7 +45,7 @@ public: /** */ - Fetcher(QObject* parent, const char* name = 0) : QObject(parent, name), KShared(), + Fetcher(TQObject* tqparent, const char* name = 0) : TQObject(tqparent, name), KShared(), m_updateOverwrite(false), m_hasMoreResults(false), m_messager(0) {} /** @@ -68,7 +69,7 @@ public: /** * Returns the name of the data source, as defined by the user. */ - virtual QString source() const = 0; + virtual TQString source() const = 0; /** * Returns whether the fetcher will overwite existing info when updating */ @@ -76,7 +77,7 @@ public: /** * Starts a search, using a key and value. */ - virtual void search(FetchKey key, const QString& value) = 0; + virtual void search(FetchKey key, const TQString& value) = 0; virtual void continueSearch() {} virtual void updateEntry(Data::EntryPtr); // mopst fetchers won't support this. it's particular useful for text fetchers @@ -103,25 +104,25 @@ public: MessageHandler* messageHandler() const { return m_messager; } /** */ - void message(const QString& message, int type) const; - void infoList(const QString& message, const QStringList& list) const; + void message(const TQString& message, int type) const; + void infoList(const TQString& message, const TQStringList& list) const; /** * Reads the config for the widget, given a config group. */ - void readConfig(const KConfigGroup& config, const QString& groupName); + void readConfig(const KConfigGroup& config, const TQString& groupName); /** * Returns a widget for modifying the fetcher's config. */ - virtual ConfigWidget* configWidget(QWidget* parent) const = 0; + virtual ConfigWidget* configWidget(TQWidget* tqparent) const = 0; signals: -// void signalStatus(const QString& status); +// void signaltqStatus(const TQString& status); void signalResultFound(Tellico::Fetch::SearchResult* result); void signalDone(Tellico::Fetch::Fetcher::Ptr); protected: - QString m_name; + TQString m_name; bool m_updateOverwrite : 1; bool m_hasMoreResults : 1; @@ -130,19 +131,19 @@ private: virtual void saveConfigHook(KConfigGroup&) {} MessageHandler* m_messager; - QString m_configGroup; + TQString m_configGroup; }; class SearchResult { public: - SearchResult(Fetcher::Ptr f, const QString& t, const QString& d, const QString& i) + SearchResult(Fetcher::Ptr f, const TQString& t, const TQString& d, const TQString& i) : uid(KApplication::random()), fetcher(f), title(t), desc(d), isbn(i) {} Data::EntryPtr fetchEntry(); uint uid; Fetcher::Ptr fetcher; - QString title; - QString desc; - QString isbn; + TQString title; + TQString desc; + TQString isbn; }; } // end namespace |