summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/pluginmanager.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/src/include/pluginmanager.h
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/include/pluginmanager.h')
-rw-r--r--kradio3/src/include/pluginmanager.h59
1 files changed, 30 insertions, 29 deletions
diff --git a/kradio3/src/include/pluginmanager.h b/kradio3/src/include/pluginmanager.h
index b52c8f2..d857c6e 100644
--- a/kradio3/src/include/pluginmanager.h
+++ b/kradio3/src/include/pluginmanager.h
@@ -22,8 +22,8 @@
#include <config.h>
#endif
-#include <qstring.h>
-#include <qptrdict.h>
+#include <tqstring.h>
+#include <tqptrdict.h>
#include "plugins.h"
@@ -31,50 +31,51 @@ class PluginBase;
class WidgetPluginBase;
class PluginConfigurationDialog;
class PluginManagerConfiguration;
-class QWidget;
+class TQWidget;
class KConfig;
-class QFrame;
+class TQFrame;
class KAboutDialog;
class KDialogBase;
struct ConfigPageInfo;
-class QMenuData;
+class TQMenuData;
class KRadioApp;
-class PluginManager : public QObject
+class PluginManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public :
- PluginManager(const QString &name,
+ PluginManager(const TQString &name,
KRadioApp *app,
- const QString &configDialogTitle,
- const QString &aboutTitle);
+ const TQString &configDialogTitle,
+ const TQString &aboutTitle);
virtual ~PluginManager();
// Library Functions
void noticeLibrariesChanged();
- void unloadPlugins(const QString &class_name);
+ void unloadPlugins(const TQString &class_name);
// managing plugins
const PluginList &plugins() const { return m_plugins; }
- void addWidgetPluginMenuItems(QMenuData *menu, QMap<WidgetPluginBase *,int> &map) const;
- void updateWidgetPluginMenuItem(WidgetPluginBase *p, QMenuData *menu, QMap<WidgetPluginBase *,int> &map, bool shown) const;
+ void addWidgetPluginMenuItems(TQMenuData *menu, TQMap<WidgetPluginBase *,int> &map) const;
+ void updateWidgetPluginMenuItem(WidgetPluginBase *p, TQMenuData *menu, TQMap<WidgetPluginBase *,int> &map, bool shown) const;
- PluginBase *getPluginByName(const QString &name) const;
+ PluginBase *getPluginByName(const TQString &name) const;
// after insert, pluginManager is responsible for deletion
void insertPlugin(PluginBase *);
// remove and delete plugin
void deletePlugin(PluginBase *);
- void deletePluginByName(const QString &name) { deletePlugin(getPluginByName(name)); }
+ void deletePluginByName(const TQString &name) { deletePlugin(getPluginByName(name)); }
// remove plugin, afterwards pluginManager is no longer responsible for deletion
void removePlugin(PluginBase *);
- void removePluginByName(const QString &name) { removePlugin(getPluginByName(name)); }
+ void removePluginByName(const TQString &name) { removePlugin(getPluginByName(name)); }
// operations on all plugins
@@ -92,8 +93,8 @@ public :
virtual void noticeWidgetPluginShown(WidgetPluginBase *p, bool shown);
protected :
- virtual void createConfigDialog(const QString &title = QString::null);
- virtual void createAboutDialog (const QString &title = QString::null);
+ virtual void createConfigDialog(const TQString &title = TQString());
+ virtual void createAboutDialog (const TQString &title = TQString());
virtual void addConfigurationPage (PluginBase *forWhom,
const ConfigPageInfo &info);
@@ -112,33 +113,33 @@ signals:
virtual void sigConfigOK();
private:
- virtual QFrame *addConfigurationPage (const ConfigPageInfo &info);
+ virtual TQFrame *addConfigurationPage (const ConfigPageInfo &info);
ConfigPageInfo createOwnConfigurationPage();
// PluginManager's data & types ;)
protected:
- typedef QPtrDict<QFrame> QFrameDict;
- typedef QPtrDictIterator<QFrame> QFrameDictIterator;
- typedef QPtrDict<QWidget> QWidgetDict;
- typedef QPtrDictIterator<QWidget> QWidgetDictIterator;
+ typedef TQPtrDict<TQFrame> TQFrameDict;
+ typedef TQPtrDictIterator<TQFrame> TQFrameDictIterator;
+ typedef TQPtrDict<TQWidget> TQWidgetDict;
+ typedef TQPtrDictIterator<TQWidget> TQWidgetDictIterator;
- QString m_Name;
+ TQString m_Name;
KRadioApp *m_Application;
PluginList m_plugins;
bool m_showProgressBar;
- QFrameDict m_configPageFrames;
- QWidgetDict m_configPages;
+ TQFrameDict m_configPageFrames;
+ TQWidgetDict m_configPages;
- QFrameDict m_aboutPageFrames;
- QWidgetDict m_aboutPages;
+ TQFrameDict m_aboutPageFrames;
+ TQWidgetDict m_aboutPages;
PluginConfigurationDialog *m_configDialog;
PluginManagerConfiguration*m_pluginManagerConfiguration;
KDialogBase *m_aboutDialog;
- QString m_configDialogTitle;
- QString m_aboutDialogTitle;
+ TQString m_configDialogTitle;
+ TQString m_aboutDialogTitle;
};