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 |
QString | fileName () const |
KLibFactory * | factory () |
void * | symbol (const char *name) const |
bool | hasSymbol (const char *name) const |
void | unload () const |
Friends | |
class | QAsciiDict< KLibrary > |
Detailed Description
Represents a dynamically loaded library.KLibrary allows you to look up symbols of the shared library. Use KLibLoader to create a new instance of KLibrary.
- See also:
- KLibLoader
- Author:
- Torben Weis <weis@kde.org>
Definition at line 50 of file klibloader.h.
Member Function Documentation
|
Returns the name of the library.
Definition at line 146 of file klibloader.cpp. |
|
Returns the file name of the library.
Definition at line 151 of file klibloader.cpp. |
|
Returns the factory of the library.
Definition at line 156 of file klibloader.cpp. References KLibLoader::d, endl(), name(), KLibLoader::self(), 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 189 of file klibloader.cpp. References KLibLoader::d, endl(), KLibLoader::self(), and symbol(). |
|
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 202 of file klibloader.cpp. References hasSymbol(). Referenced by hasSymbol(). |
|
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 208 of file klibloader.cpp. References name(), and KLibLoader::unloadLibrary(). |
The documentation for this class was generated from the following files: