KDECore
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< impl > |
class | KPluginFactory |
Namespaces | |
KParts | |
Macros | |
#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 |
Macro Definition Documentation
#define K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY | ( | name, | |
baseFactory | |||
) |
Value:
class name : public baseFactory \
{ \
public: \
~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) \
: baseFactory(componentName, catalogName, parent) { init(); } \
: 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; \
}
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
KComponentData componentData() const
You can use this method to get the component data of the plugin.
Definition: kpluginfactory.cpp:94
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)
#define K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations)
Definition: kpluginfactory.h:49
#define K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY(name, baseFactory)
Definition: kpluginfactory.h:37
Definition at line 69 of file kpluginfactory.h.
Typedef Documentation
typedef KPluginFactory KLibFactory |
Definition at line 502 of file kpluginfactory.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.