KDECore
klibrary.cpp
Go to the documentation of this file.
83 KLibrary::KLibrary(const QString &name, int verNum, const KComponentData &cData, QObject *parent)
129 kDebug(kLibraryDebugArea()) << "The library" << lib->fileName() << "does not offer a KDE compatible factory.";
145 kDebug(kLibraryDebugArea()) << "The library" << lib->fileName() << "does not offer a qt_plugin_instance function.";
155 kDebug(kLibraryDebugArea()) << "Expected a KPluginFactory, got a" << instance->metaObject()->className();
156 kDebug(kLibraryDebugArea()) << "The library" << lib->fileName() << "does not offer a KDE 4 compatible factory.";
static KPluginFactory * kde3Factory(KLibrary *lib, const QByteArray &factoryname)
Definition: klibrary.cpp:96
#define K_GLOBAL_STATIC(TYPE, NAME)
This macro makes it easy to use non-POD types as global statics.
Definition: kglobal.h:221
QString findLibraryInternal(const QString &name, const KComponentData &cData)
Definition: kpluginloader.cpp:83
void setFileName(const QString &name, const KComponentData &data=KGlobal::mainComponent())
Definition: klibrary.cpp:195
virtual const QMetaObject * metaObject() const
QString findLibrary(const QString &name, const KComponentData &cData)
Definition: klibrary.cpp:39
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
KPluginFactory * factory(const char *factoryname=0)
Returns the factory of the library.
Definition: klibrary.cpp:163
Definition: ksycocafactory.h:28
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static int registerArea(const QByteArray &areaName, bool enabled=true)
Definition: kdebug.cpp:856
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level...
Definition: klibrary.h:38
QByteArray mid(int pos, int len) const
const char * className() const
QString fileName() const
void_function_ptr resolveFunction(const char *name)
Looks up a symbol from the library.
Definition: klibrary.cpp:181
QString mid(int position, int n) const
void * resolve(const char *symbol)
QString left(int n) const
QString fromLatin1(const char *str, int size)
void * resolveSymbol(const char *name)
Looks up a symbol from the library.
Definition: klibrary.cpp:176
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.