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>
Go to the source code of this file.
Classes | |
struct | KPluginFactory::InheritanceChecker< impl > |
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 |
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; \
}
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.
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:28:01 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:28:01 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.