summaryrefslogtreecommitdiffstats
path: root/libktorrent/interfaces/plugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/interfaces/plugin.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
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
Diffstat (limited to 'libktorrent/interfaces/plugin.h')
-rw-r--r--libktorrent/interfaces/plugin.h35
1 files changed, 18 insertions, 17 deletions
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;