From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: TQt4 port ktorrent This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libktorrent/interfaces/plugin.h | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'libktorrent/interfaces/plugin.h') diff --git a/libktorrent/interfaces/plugin.h b/libktorrent/interfaces/plugin.h index ac43fbc..d147d46 100644 --- a/libktorrent/interfaces/plugin.h +++ b/libktorrent/interfaces/plugin.h @@ -48,6 +48,7 @@ namespace kt class Plugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: /** * Constructor, set the name of the plugin, the name and e-mail of the author and @@ -59,10 +60,10 @@ namespace kt * @param description What does the plugin do * @param icon Name of the plugin's icon */ - Plugin(QObject *parent,const char* qt_name,const QStringList & args, - const QString & name,const QString & gui_name,const QString & author, - const QString & email,const QString & description, - const QString & icon); + Plugin(TQObject *tqparent,const char* qt_name,const TQStringList & args, + const TQString & name,const TQString & gui_name,const TQString & author, + const TQString & email,const TQString & description, + const TQString & icon); virtual ~Plugin(); /** @@ -94,12 +95,12 @@ namespace kt */ virtual void shutdown(bt::WaitJob* job); - const QString & getName() const {return name;} - const QString & getAuthor() const {return author;} - const QString & getEMailAddress() const {return email;} - const QString & getDescription() const {return description;} - const QString & getIcon() const {return icon;} - const QString & getGuiName() const {return gui_name;} + const TQString & getName() const {return name;} + const TQString & getAuthor() const {return author;} + const TQString & getEMailAddress() const {return email;} + const TQString & getDescription() const {return description;} + const TQString & getIcon() const {return icon;} + const TQString & getGuiName() const {return gui_name;} /// Get a pointer to the CoreInterface CoreInterface* getCore() {return core;} @@ -131,15 +132,15 @@ namespace kt bool isLoaded() const {return loaded;} /// Check wether the plugin matches the version of KT - virtual bool versionCheck(const QString & version) const = 0; + virtual bool versionCheck(const TQString & version) const = 0; private: - QString name; - QString author; - QString email; - QString description; - QString icon; - QString gui_name; + TQString name; + TQString author; + TQString email; + TQString description; + TQString icon; + TQString gui_name; CoreInterface* core; GUIInterface* gui; bool loaded; -- cgit v1.2.1