summaryrefslogtreecommitdiffstats
path: root/libk3b/plugin/k3bplugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /libk3b/plugin/k3bplugin.h
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/plugin/k3bplugin.h')
-rw-r--r--libk3b/plugin/k3bplugin.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/libk3b/plugin/k3bplugin.h b/libk3b/plugin/k3bplugin.h
index f4501a7..1eeb622 100644
--- a/libk3b/plugin/k3bplugin.h
+++ b/libk3b/plugin/k3bplugin.h
@@ -17,7 +17,7 @@
#ifndef _K3B_PLUGIN_H_
#define _K3B_PLUGIN_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <kgenericfactory.h>
#include "k3b_export.h"
@@ -25,7 +25,7 @@
class K3bPluginConfigWidget;
-class QWidget;
+class TQWidget;
@@ -37,13 +37,13 @@ class K3bPluginInfo
K3bPluginInfo() {
}
- K3bPluginInfo( QString libraryName,
- QString name,
- QString author,
- QString email,
- QString comment,
- QString version,
- QString licence )
+ K3bPluginInfo( TQString libraryName,
+ TQString name,
+ TQString author,
+ TQString email,
+ TQString comment,
+ TQString version,
+ TQString licence )
: m_libraryName(libraryName),
m_name(name),
m_author(author),
@@ -53,38 +53,39 @@ class K3bPluginInfo
m_licence(licence) {
}
- const QString& name() const { return m_name; }
- const QString& author() const { return m_author; }
- const QString& email() const { return m_email; }
- const QString& comment() const { return m_comment; }
- const QString& version() const { return m_version; }
- const QString& licence() const { return m_licence; }
+ const TQString& name() const { return m_name; }
+ const TQString& author() const { return m_author; }
+ const TQString& email() const { return m_email; }
+ const TQString& comment() const { return m_comment; }
+ const TQString& version() const { return m_version; }
+ const TQString& licence() const { return m_licence; }
- const QString& libraryName() const { return m_libraryName; }
+ const TQString& libraryName() const { return m_libraryName; }
private:
- QString m_libraryName;
-
- QString m_name;
- QString m_author;
- QString m_email;
- QString m_comment;
- QString m_version;
- QString m_licence;
+ TQString m_libraryName;
+
+ TQString m_name;
+ TQString m_author;
+ TQString m_email;
+ TQString m_comment;
+ TQString m_version;
+ TQString m_licence;
};
/**
* Base class for all plugins. You may use the K3bPluginFactory to make your plugin available.
*/
-class LIBK3B_EXPORT K3bPlugin : public QObject
+class LIBK3B_EXPORT K3bPlugin : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
friend class K3bPluginManager;
public:
- K3bPlugin( QObject* parent = 0, const char* name = 0 );
+ K3bPlugin( TQObject* tqparent = 0, const char* name = 0 );
virtual ~K3bPlugin();
const K3bPluginInfo& pluginInfo() const { return m_pluginInfo; }
@@ -97,14 +98,14 @@ class LIBK3B_EXPORT K3bPlugin : public QObject
/**
* The plugin group.
*/
- virtual QString group() const = 0;
+ virtual TQString group() const = 0;
/**
* Returns a widget which configures the plugin.
*
* The caller has to destroy the widget
*/
- virtual K3bPluginConfigWidget* createConfigWidget( QWidget* parent = 0, const char* name = 0 ) const;
+ virtual K3bPluginConfigWidget* createConfigWidget( TQWidget* tqparent = 0, const char* name = 0 ) const;
private:
K3bPluginInfo m_pluginInfo;