org.kde.koala
public class KLibLoader extends QObject
See Also: KLibrary
UNKNOWN: The KLibLoader allows you to load libraries dynamically at runtime.
Constructor Summary | |
---|---|
protected | KLibLoader(Class dummy) |
KLibLoader(QObject parent, String name) | |
KLibLoader(QObject parent) | |
KLibLoader() |
Method Summary | |
---|---|
String | className() |
static void | cleanUp()
Internal Method, called by the KApplication destructor.
|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
KLibFactory | factory(String libname)
Loads and initializes a library. |
protected void | finalize() Deletes the wrapped C++ instance |
static String | findLibrary(String name, KInstanceInterface instance)
Helper method which looks for a library in the standard paths
("module" and "lib" resources).
|
static String | findLibrary(String name) |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
String | lastErrorMessage()
Returns an error message that can be useful to debug the problem.
|
QMetaObject | metaObject() |
static KLibLoader | self()
Returns a pointer to the factory. |
void | unloadLibrary(String libname)
Unloads the library with the given name. |
UNKNOWN:
Parameters: libname This is the library name without extension. Usually that is something like "libkspread". The function will then search for a file named "libkspread.la" in the KDE library paths. The .la files are created by libtool and contain important information especially about the libraries dependencies on other shared libs. Loading a "libfoo.so" could not solve the dependencies problem. You can, however, give a library name ending in ".so" (or whatever is used on your platform), and the library will be loaded without resolving dependencies. Use with caution.
Returns: the KLibFactory, or 0 if the library does not exist or it does not have a factory
See Also: KLibLoader
UNKNOWN: Loads and initializes a library.
Parameters: name of the library. If it is not a path, the function searches in the "module" and "lib" resources. If there is no extension, ".la" will be appended. instance a KInstance used to get the standard paths
UNKNOWN: Helper method which looks for a library in the standard paths ("module" and "lib" resources).
Returns: the last error message, or null if there was no error
UNKNOWN: Returns an error message that can be useful to debug the problem.
Returns: a pointer to the loader. If no loader exists until now then one is created.
UNKNOWN: Returns a pointer to the factory.
Parameters: libname This is the library name without extension. Usually that is something like "libkspread". The function will then search for a file named "libkspread.la" in the KDE library paths. The .la files are created by libtool and contain important information especially about the libraries dependencies on other shared libs. Loading a "libfoo.so" could not solve the dependencies problem. You can, however, give a library name ending in ".so" (or whatever is used on your platform), and the library will be loaded without resolving dependencies. Use with caution.
UNKNOWN: Unloads the library with the given name.