KDECore
klibloader.cpp
Go to the documentation of this file.
148 return i18n( "The service provides no library, the Library key is missing in the .desktop file." );
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
Loads and initializes a library.
Definition: klibloader.cpp:89
Definition: klibloader.h:170
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
Definition: klibloader.h:168
QString lastErrorMessage() const
Returns an error message that can be useful to debug the problem.
Definition: klibloader.cpp:118
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
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition: klibrary.h:38
static QString findLibrary(const QString &libname, const KComponentData &cData=KGlobal::mainComponent())
Helper method which looks for a library in the standard paths ("module" and "lib" resources)...
Definition: klibloader.cpp:84
void unloadLibrary(const QString &libname)
Unloads the library with the given name.
Definition: klibloader.cpp:123
The KLibLoader allows you to load libraries dynamically at runtime.
Definition: klibloader.h:55
KPluginFactory * factory(const QString &libname, QLibrary::LoadHints loadHint=0)
Loads and initializes a library.
Definition: klibloader.cpp:127
static QString errorString(int componentLoadingError)
Converts a numerical error code into a human-readable error message.
Definition: klibloader.cpp:142
If you develop a library that is to be loaded dynamically at runtime, then you should return a pointe...
Definition: kpluginfactory.h:232
Definition: klibloader.h:166
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.