• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • util
Classes | Namespaces | Macros | Typedefs
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: \
explicit name(const char * = 0, const char * = 0, QObject * = 0); \
explicit name(const KAboutData &, QObject * = 0); \
~name(); \
static KComponentData componentData(); \
private: \
void init(); \
};
QObject
KAboutData
This class is used to store information about a program.
Definition: kaboutdata.h:192
KComponentData
Per component data.
Definition: kcomponentdata.h:46

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; \
}
K_GLOBAL_STATIC
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
KPluginFactory::componentData
KComponentData componentData() const
You can use this method to get the component data of the plugin.
Definition: kpluginfactory.cpp:94
QObject
KAboutData
This class is used to store information about a program.
Definition: kaboutdata.h:192
KComponentData
Per component data.
Definition: kcomponentdata.h:46

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)
K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY
#define K_PLUGIN_FACTORY_DEFINITION_WITH_BASEFACTORY(name, baseFactory, pluginRegistrations)
Definition: kpluginfactory.h:49
K_PLUGIN_FACTORY_DECLARATION_WITH_BASEFACTORY
#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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal