#include <kglobal.h>#include "errorlog_interfaces.h"#include <QtCore/QString>#include <QtCore/QObject>#include <QtCore/QList>#include <kconfiggroup.h>


Go to the source code of this file.
Classes | |
| struct | ConfigPageInfo |
| class | PluginBase |
Defines | |
| #define | PLUGIN_LIBRARY_FUNCTIONS(class_name, i18nName, description) |
| #define | PLUGIN_LIBRARY_FUNCTIONS2(class_name1, i18nName, description1, class_name2, description2) |
Typedefs | |
| typedef QList< PluginBase * > | PluginList |
| typedef QList< PluginBase * > ::iterator | PluginIterator |
| typedef QList< PluginBase * > ::const_iterator | PluginConstIterator |
| typedef ConfigPageInfo | AboutPageInfo |
| #define PLUGIN_LIBRARY_FUNCTIONS | ( | class_name, | |||
| i18nName, | |||||
| description | ) |
Value:
extern "C" KDE_EXPORT void KRadioPlugin_LoadLibrary() \ { \ KGlobal::locale()->insertCatalog(i18nName); \ } \ \ extern "C" KDE_EXPORT void KRadioPlugin_UnloadLibrary() \ { \ KGlobal::locale()->removeCatalog(i18nName); \ } \ \ extern "C" KDE_EXPORT void KRadioPlugin_GetAvailablePlugins(QMap<QString, QString> &info) \ { \ info.insert(#class_name, (description)); \ } \ \ extern "C" KDE_EXPORT PluginBase *KRadioPlugin_CreatePlugin(const QString &type, const QString &instanceID, const QString &object_name) \ { \ if (type == #class_name) { \ return new class_name(instanceID, object_name); \ } else { \ return NULL; \ } \ }
Definition at line 144 of file pluginbase.h.
| #define PLUGIN_LIBRARY_FUNCTIONS2 | ( | class_name1, | |||
| i18nName, | |||||
| description1, | |||||
| class_name2, | |||||
| description2 | ) |
Value:
extern "C" KDE_EXPORT void KRadioPlugin_LoadLibrary() \ { \ KGlobal::locale()->insertCatalog(i18nName); \ } \ \ extern "C" KDE_EXPORT void KRadioPlugin_UnloadLibrary() \ { \ KGlobal::locale()->removeCatalog(i18nName); \ } \ \ extern "C" KDE_EXPORT void KRadioPlugin_GetAvailablePlugins(QMap<QString, QString> &info) \ { \ info.insert(#class_name1, (description1)); \ info.insert(#class_name2, (description2)); \ } \ \ extern "C" KDE_EXPORT PluginBase *KRadioPlugin_CreatePlugin(const QString &type, const QString &instanceID, const QString &object_name) \ { \ if (type == #class_name1) { \ return new class_name1(instanceID, object_name); \ } else if (type == #class_name2) { \ return new class_name2(instanceID, object_name); \ } else { \ return NULL; \ } \ }
Definition at line 170 of file pluginbase.h.
| typedef ConfigPageInfo AboutPageInfo |
Definition at line 82 of file pluginbase.h.
| typedef QList<PluginBase*>::const_iterator PluginConstIterator |
Definition at line 42 of file pluginbase.h.
| typedef QList<PluginBase*>::iterator PluginIterator |
Definition at line 41 of file pluginbase.h.
| typedef QList<PluginBase*> PluginList |
Definition at line 38 of file pluginbase.h.
1.5.7.1