KLibrary Class Reference
Represents a dynamically loaded library. More...
#include <klibloader.h>
Inheritance diagram for KLibrary:

Public Member Functions | |
KLibrary (const QString &libname, const QString &filename, void *handle) | |
QString | name () const |
Returns the name of the library. | |
QString | fileName () const |
Returns the file name of the library. | |
KLibFactory * | factory () |
Returns the factory of the library. | |
void * | symbol (const char *name) const |
Looks up a symbol from the library. | |
bool | hasSymbol (const char *name) const |
Looks up a symbol from the library. | |
void | unload () const |
Unloads the library. | |
Friends | |
class | KLibLoader |
class | QAsciiDict< KLibrary > |
Detailed Description
Represents a dynamically loaded library.KLibrary allows you to look up symbols of the shared library.
- Author:
- Torben Weis <weis@kde.org>
Definition at line 48 of file klibloader.h.
Member Function Documentation
|
Returns the name of the library.
Reimplemented from QObject. Definition at line 130 of file klibloader.cpp. |
|
Returns the file name of the library.
Definition at line 135 of file klibloader.cpp. |
|
Returns the factory of the library.
Definition at line 140 of file klibloader.cpp. References QObject::connect(), name(), QCString::sprintf(), and symbol(). Referenced by KLibLoader::factory(). |
|
Looks up a symbol from the library. This is a very low level function that you usually don't want to use. Usually you should check using hasSymbol() whether the symbol actually exists, otherwise a warning will be printed.
Definition at line 171 of file klibloader.cpp. Referenced by factory(). |
|
Looks up a symbol from the library. This is a very low level function that you usually don't want to use. Unlike symbol(), this method doesn't warn if the symbol doesn't exist, so if the symbol might or might not exist, better use hasSymbol() before symbol().
Definition at line 183 of file klibloader.cpp. |
|
Unloads the library. This typically results in the deletion of this object. You should not reference its pointer after calling this function. Definition at line 189 of file klibloader.cpp. References QFile::encodeName(), name(), and KLibLoader::unloadLibrary(). |
The documentation for this class was generated from the following files: