class KLibLoader

The KLibLoader allows you to load libraries dynamically at runtime. More...

Definition#include <klibloader.h>
InheritsQObject
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Methods


Detailed Description

The KLibLoader allows you to load libraries dynamically at runtime. Dependend libraries are loaded automatically.

KLibLoader follows the singleton pattern. You can not create multiple instances. Use self() to get a pointer to the loader.

KLibLoader ()

You should NEVER destruct an instance of KLibLoader until you know what you are doing. This will release the loaded library.

KLibFactory*  factory ( const char* libname )

Loads and initializes a library. Loading a library multiple times is handled gracefully.

This is a convenience function that returns the factory immediately

KLibrary*  library ( const char* libname )

[virtual]

Loads and initializes a library. Loading a library multiple times is handled gracefully.

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 CARE :)

Parameters:

void  unloadLibrary ( const char *libname )

[virtual]

KLibLoader*  self ()

[static]

Returns: a pointer to the loader. If no loader exists until now then one is created.

void  cleanUp ()

[static]

This is what makes it possible to rely on ~KLibFactory being called in all cases, whether the library is unloaded while the application is running or when exiting.

 KLibLoader ( QObject* parent = 0, const char* name = 0 )

[protected]