|
|
|
@ -80,7 +80,7 @@ struct ConfigPageInfo
|
|
|
|
|
typedef ConfigPageInfo AboutPageInfo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class KDE_EXPORT PluginBase : public IErrorLogClient
|
|
|
|
|
class TDE_EXPORT PluginBase : public IErrorLogClient
|
|
|
|
|
{
|
|
|
|
|
friend class PluginManager;
|
|
|
|
|
public :
|
|
|
|
@ -135,22 +135,22 @@ protected :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define PLUGIN_LIBRARY_FUNCTIONS(class_name, i18nName, description) \
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_LoadLibrary() \
|
|
|
|
|
{ \
|
|
|
|
|
TDEGlobal::locale()->insertCatalogue(i18nName); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
|
|
|
|
|
{ \
|
|
|
|
|
TDEGlobal::locale()->removeCatalogue(i18nName); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
|
|
|
|
|
{ \
|
|
|
|
|
info.insert(#class_name, (description)); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
|
|
|
|
|
extern "C" TDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
|
|
|
|
|
{ \
|
|
|
|
|
if (type == #class_name) { \
|
|
|
|
|
return new class_name(object_name); \
|
|
|
|
@ -161,23 +161,23 @@ extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &ty
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define PLUGIN_LIBRARY_FUNCTIONS2(class_name1, i18nName, description1, class_name2, description2) \
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_LoadLibrary() \
|
|
|
|
|
{ \
|
|
|
|
|
TDEGlobal::locale()->insertCatalogue(i18nName); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
|
|
|
|
|
{ \
|
|
|
|
|
TDEGlobal::locale()->removeCatalogue(i18nName); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
|
|
|
|
|
extern "C" TDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
|
|
|
|
|
{ \
|
|
|
|
|
info.insert(#class_name1, (description1)); \
|
|
|
|
|
info.insert(#class_name2, (description2)); \
|
|
|
|
|
} \
|
|
|
|
|
\
|
|
|
|
|
extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
|
|
|
|
|
extern "C" TDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
|
|
|
|
|
{ \
|
|
|
|
|
if (type == #class_name1) { \
|
|
|
|
|
return new class_name1(object_name); \
|
|
|
|
|