KDECore
klibloader.h
Go to the documentation of this file.
55 class KDECORE_EXPORT KLibLoader : public QObject //krazy:exclude=dpointer (private class is kept as a global static)
157 static QString findLibrary(const QString &libname, const KComponentData &cData = KGlobal::mainComponent());
166 ErrNoLibrary = 1, /*< the specified library could not be loaded. Use KLibLoader::lastErrorMessage for details*/
169 ErrServiceProvidesNoLibrary, /*< the specified service provides no shared library (when using KService) */
170 ErrNoServiceFound /*< no service implementing the given servicetype and fullfilling the given constraint expression can be found (when using KServiceTypeTrader) */
202 static KDE_DEPRECATED T *createInstance(const QString &keyword, const QString &libname, QObject *parent = 0,
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
Loads and initializes a library.
Definition: klibloader.cpp:89
#define T
static T * createInstance(const QString &keyword, const QString &libname, QObject *parent=0, const QVariantList &args=QVariantList(), int *error=0)
This template allows to load the specified library and ask the factory to create an instance of the g...
Definition: klibloader.h:202
Definition: klibloader.h:168
QString findLibrary(const QString &name, const KComponentData &cData)
Definition: klibrary.cpp:39
Definition: klibloader.h:167
KPluginFactory * factory(const char *factoryname=0)
Returns the factory of the library.
Definition: klibrary.cpp:163
static T * createInstance(const QString &libname, QObject *parent=0, const QVariantList &args=QVariantList(), int *error=0)
This template allows to load the specified library and ask the factory to create an instance of the g...
Definition: klibloader.h:248
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition: klibrary.h:38
ComponentLoadingError
This enum type defines the possible error cases that can happen when loading a component.
Definition: klibloader.h:165
The KLibLoader allows you to load libraries dynamically at runtime.
Definition: klibloader.h:55
const KComponentData & mainComponent()
Returns the global component data.
Definition: kglobal.cpp:144
static T * createInstance(const QString &libname, QObject *parent, const QStringList &args, int *error=0)
Definition: klibloader.h:260
If you develop a library that is to be loaded dynamically at runtime, then you should return a pointe...
Definition: kpluginfactory.h:232
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 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:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.