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." );
The KLibLoader allows you to load libraries dynamically at runtime.
Definition: klibloader.h:56
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
static QString errorString(int componentLoadingError)
Converts a numerical error code into a human-readable error message.
Definition: klibloader.cpp:142
void unloadLibrary(const QString &libname)
Unloads the library with the given name.
Definition: klibloader.cpp:123
KPluginFactory * factory(const QString &libname, QLibrary::LoadHints loadHint=0)
Loads and initializes a library.
Definition: klibloader.cpp:127
QString lastErrorMessage() const
Returns an error message that can be useful to debug the problem.
Definition: klibloader.cpp:118
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
Loads and initializes a library.
Definition: klibloader.cpp:89
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition: klibrary.h:39
KPluginFactory * factory(const char *factoryname=0)
Returns the factory of the library.
Definition: klibrary.cpp:163
If you develop a library that is to be loaded dynamically at runtime, then you should return a pointe...
Definition: kpluginfactory.h:233
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
QString findLibrary(const QString &name, const KComponentData &cData)
Definition: klibrary.cpp:39
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.