umbrello/umbrello
plugin.h File Reference
Include dependency graph for plugin.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | Umbrello::Plugin |
Namespaces | |
Umbrello | |
Macros | |
#define | UMBRELLO_EXPORT_PLUGIN_FACTORY(libname, factory) extern "C" { KDE_EXPORT void *init_##libname() { return new factory(#libname); } } |
Macro Definition Documentation
#define UMBRELLO_EXPORT_PLUGIN_FACTORY | ( | libname, | |
factory | |||
) | extern "C" { KDE_EXPORT void *init_##libname() { return new factory(#libname); } } |
This macro replaces the K_EXPORT_COMPONENT_FACTORY macro because of a simple defficiency for this application - the construction of the factory with a default instance name.
This macro must be used in the .cpp file implementing the plugin.
- Parameters
-
libname The name of the plugin. This corresponds to the name of the shared object without the ".so" extension. factory The type of factory. Typically, this will be KGenericFactory<> with the name of the plugin as the parameter.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 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 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.