summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/kradioapp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/kradioapp.h')
-rw-r--r--kradio3/src/include/kradioapp.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/kradio3/src/include/kradioapp.h b/kradio3/src/include/kradioapp.h
index f5fb950..8dba108 100644
--- a/kradio3/src/include/kradioapp.h
+++ b/kradio3/src/include/kradioapp.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qdict.h>
+#include <tqdict.h>
#include <kapplication.h>
#include <kaboutapplication.h>
@@ -34,9 +34,9 @@ class KLibrary;
class KRadioAbout : public PluginBase
{
public:
- KRadioAbout(const QString &name) : PluginBase(name, "KRadio Application") {}
+ KRadioAbout(const TQString &name) : PluginBase(name, "KRadio Application") {}
- virtual QString pluginClassName() const { return "KRadioAbout"; }
+ virtual TQString pluginClassName() const { return "KRadioAbout"; }
virtual ConfigPageInfo createConfigurationPage () { return ConfigPageInfo(); }
virtual AboutPageInfo createAboutPage ();
@@ -48,41 +48,42 @@ public:
-typedef PluginBase *(*t_kradio_plugin_init_func)(const QString & cls, const QString &obj);
-typedef void (*t_kradio_plugin_info_func)(QMap<QString, QString> &);
+typedef PluginBase *(*t_kradio_plugin_init_func)(const TQString & cls, const TQString &obj);
+typedef void (*t_kradio_plugin_info_func)(TQMap<TQString, TQString> &);
typedef void (*t_kradio_plugin_libload_func)();
typedef void (*t_kradio_plugin_libunload_func)();
struct PluginLibraryInfo {
KLibrary *library;
- QMap<QString,QString> plugins;
+ TQMap<TQString,TQString> plugins;
t_kradio_plugin_init_func init_func;
t_kradio_plugin_info_func info_func;
t_kradio_plugin_libload_func libload_func;
t_kradio_plugin_libunload_func libunload_func;
PluginLibraryInfo() : library(NULL), init_func(NULL), info_func(NULL), libload_func(NULL), libunload_func(NULL) {}
- PluginLibraryInfo(const QString &libname);
+ PluginLibraryInfo(const TQString &libname);
bool valid() { return init_func && info_func && library && libload_func && libunload_func; }
};
struct PluginClassInfo {
- QString class_name;
- QString description;
+ TQString class_name;
+ TQString description;
t_kradio_plugin_init_func create_function;
PluginClassInfo() : create_function(NULL) {}
- PluginClassInfo(const QString &_name, const QString &descr, t_kradio_plugin_init_func init_func)
+ PluginClassInfo(const TQString &_name, const TQString &descr, t_kradio_plugin_init_func init_func)
: class_name(_name), description(descr), create_function(init_func) {}
- PluginBase *CreateInstance(const QString &obj_name) { return create_function ? create_function(class_name, obj_name) : NULL; }
+ PluginBase *CreateInstance(const TQString &obj_name) { return create_function ? create_function(class_name, obj_name) : NULL; }
};
class KRadioApp : public KApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
KRadioApp();
virtual ~KRadioApp();
@@ -90,14 +91,14 @@ public:
virtual void saveState (KConfig *c);
virtual void restoreState (KConfig *c);
- virtual PluginManager *createNewInstance(const QString &name);
+ virtual PluginManager *createNewInstance(const TQString &name);
- virtual KLibrary *LoadLibrary (const QString &library);
- virtual void UnloadLibrary (const QString &library);
- virtual PluginBase *CreatePlugin (PluginManager *manager, const QString &name, const QString &object_name);
+ virtual KLibrary *LoadLibrary (const TQString &library);
+ virtual void UnloadLibrary (const TQString &library);
+ virtual PluginBase *CreatePlugin (PluginManager *manager, const TQString &name, const TQString &object_name);
- virtual const QMap<QString, PluginLibraryInfo> &getPluginLibraries() const { return m_PluginLibraries; }
- virtual const QMap<QString, PluginClassInfo> &getPluginClasses() const { return m_PluginInfos; }
+ virtual const TQMap<TQString, PluginLibraryInfo> &getPluginLibraries() const { return m_PluginLibraries; }
+ virtual const TQMap<TQString, PluginClassInfo> &getPluginClasses() const { return m_PluginInfos; }
virtual void startPlugins();
@@ -108,10 +109,10 @@ protected slots:
protected:
- QDict<PluginManager> m_Instances;
+ TQDict<PluginManager> m_Instances;
- QMap<QString, PluginLibraryInfo> m_PluginLibraries;
- QMap<QString, PluginClassInfo> m_PluginInfos;
+ TQMap<TQString, PluginLibraryInfo> m_PluginLibraries;
+ TQMap<TQString, PluginClassInfo> m_PluginInfos;
bool m_quitting;
};