kpluginfactory.h File Reference
#include "kdecore_export.h"#include <QtCore/QObject>#include <QtCore/QVariant>#include <QtCore/QStringList>#include <kcomponentdata.h>#include <kexportplugin.h>#include <kglobal.h>
Include dependency graph for kpluginfactory.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | KPluginFactory::InheritanceChecker |
| This is used to detect the arguments need for the constructor of plugin classes. More... | |
| class | KPluginFactory |
| If you develop a library that is to be loaded dynamically at runtime, then you should return a pointer to a KPluginFactory. More... | |
Namespaces | |
| namespace | KParts |
Defines | |
| #define | K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(name, baseFactory) |
| #define | K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations) |
| #define | K_PLUGIN_FACTORY_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations) |
Typedefs | |
| typedef KPluginFactory | KLibFactory |
Define Documentation
| #define K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY | ( | name, | |
| baseFactory | |||
| ) |
Value:
class name : public baseFactory \ { \ public: \ explicit name(const char * = 0, const char * = 0, QObject * = 0); \ explicit name(const KAboutData &, QObject * = 0); \ ~name(); \ static KComponentData componentData(); \ private: \ void init(); \ };
Definition at line 37 of file kpluginfactory.h.
| #define K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY | ( | name, | |
| baseFactory, | |||
| pluginRegistrations | |||
| ) |
Value:
K_GLOBAL_STATIC(KComponentData, name##factorycomponentdata) \ name::name(const char *componentName, const char *catalogName, QObject *parent) \ : baseFactory(componentName, catalogName, parent) { init(); } \ name::name(const KAboutData &aboutData, QObject *parent) \ : baseFactory(aboutData, parent) { init(); } \ void name::init() \ { \ if (name##factorycomponentdata->isValid()) \ setComponentData(*name##factorycomponentdata); \ else \ *name##factorycomponentdata = KPluginFactory::componentData(); \ pluginRegistrations \ } \ name::~name() {} \ KComponentData name::componentData() \ { \ return *name##factorycomponentdata; \ }
Definition at line 49 of file kpluginfactory.h.
| #define K_PLUGIN_FACTORY_WITH_BASEFACTORY | ( | name, | |
| baseFactory, | |||
| pluginRegistrations | |||
| ) |
Value:
K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(name, baseFactory) \ K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations)
Definition at line 69 of file kpluginfactory.h.
Typedef Documentation
| typedef KPluginFactory KLibFactory |
Definition at line 502 of file kpluginfactory.h.
KDE 4.7 API Reference