KDECore
#include <KLibrary>
Public Types | |
typedef void(* | void_function_ptr )() |
Public Member Functions | |
KLibrary (QObject *parent=0) | |
KLibrary (const QString &name, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0) | |
KLibrary (const QString &name, int verNum, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0) | |
virtual | ~KLibrary () |
KPluginFactory * | factory (const char *factoryname=0) |
void_function_ptr | resolveFunction (const char *name) |
void * | resolveSymbol (const char *name) |
void | setFileName (const QString &name, const KComponentData &data=KGlobal::mainComponent()) |
bool | unload () |
Public Member Functions inherited from QLibrary | |
QLibrary (QObject *parent) | |
QLibrary (const QString &fileName, QObject *parent) | |
QLibrary (const QString &fileName, const QString &version, QObject *parent) | |
QLibrary (const QString &fileName, int verNum, QObject *parent) | |
~QLibrary () | |
QString | errorString () const |
QString | fileName () const |
bool | isLoaded () const |
QString | library () const |
bool | load () |
LoadHints | loadHints () const |
void * | resolve (const char *symbol) |
void | setAutoUnload (bool b) |
void | setFileName (const QString &fileName) |
void | setFileNameAndVersion (const QString &fileName, int versionNumber) |
void | setFileNameAndVersion (const QString &fileName, const QString &version) |
void | setLoadHints (QFlags< QLibrary::LoadHint > hints) |
bool | unload () |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Properties | |
QString | fileName |
Properties inherited from QLibrary | |
fileName | |
loadHints | |
Properties inherited from QObject | |
objectName | |
Additional Inherited Members | |
Static Public Member Functions inherited from QLibrary | |
bool | isLibrary (const QString &fileName) |
void * | resolve (const QString &fileName, int verNum, const char *symbol) |
void * | resolve (const QString &fileName, const QString &version, const char *symbol) |
void * | resolve (const QString &fileName, const char *symbol) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Public Attributes inherited from QLibrary | |
typedef | LoadHints |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Detailed Description
Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level loading of plugins.
KLibrary adds kde3-factory and kde4-factory support to QLibrary (for the deprecated KLibLoader) KLibrary also searches libs in the kde search paths.
Definition at line 38 of file klibrary.h.
Member Typedef Documentation
typedef void(* KLibrary::void_function_ptr)() |
Definition at line 43 of file klibrary.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 73 of file klibrary.cpp.
|
explicit |
Definition at line 78 of file klibrary.cpp.
KLibrary::KLibrary | ( | const QString & | name, |
int | verNum, | ||
const KComponentData & | cData = KGlobal::mainComponent() , |
||
QObject * | parent = 0 |
||
) |
Definition at line 83 of file klibrary.cpp.
|
virtual |
Definition at line 88 of file klibrary.cpp.
Member Function Documentation
KPluginFactory * KLibrary::factory | ( | const char * | factoryname = 0 | ) |
Returns the factory of the library.
- Parameters
-
factoryname The postfix to the init_ symbol used to create the factory object. It corresponds to the first parameter to K_EXPORT_COMPONENT_FACTORY.
- Returns
- The factory of the library if there is any, otherwise 0
Definition at line 163 of file klibrary.cpp.
KLibrary::void_function_ptr KLibrary::resolveFunction | ( | const char * | name | ) |
Looks up a symbol from the library.
This is a very low level function that you usually don't want to use.
- Parameters
-
name the name of the symbol to look up
- Returns
- the address of the symbol, or 0 if it does not exist
Definition at line 181 of file klibrary.cpp.
void * KLibrary::resolveSymbol | ( | const char * | name | ) |
Looks up a symbol from the library.
This is a very low level function that you usually don't want to use.
- Parameters
-
name the name of the symbol to look up
- Returns
- the address of the symbol, or 0 if it does not exist
Definition at line 176 of file klibrary.cpp.
void KLibrary::setFileName | ( | const QString & | name, |
const KComponentData & | data = KGlobal::mainComponent() |
||
) |
Definition at line 195 of file klibrary.cpp.
|
inline |
Definition at line 79 of file klibrary.h.
Property Documentation
|
readwrite |
Definition at line 41 of file klibrary.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.