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
QString findLibrary(const QString &name, const KComponentData &cData)
Definition: klibrary.cpp:39
Definition: ksycocafactory.h:28
KPluginFactory * factory(const char *factoryname=0)
Returns the factory of the library.
Definition: klibrary.cpp:163
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
void_function_ptr resolveFunction(const char *name)
Looks up a symbol from the library.
Definition: klibrary.cpp:181
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-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.