![]() |
RTXI 1.3
|
#include <plugin.h>
Public Slots | |
| void | customEvent (QCustomEvent *) |
Public Member Functions | |
| Object * | load (const std::string &library) |
| void | unload (Object *object) |
| void | unloadAll (void) |
| void | foreachPlugin (void(*callback)(Plugin::Object *, void *), void *param) |
Static Public Member Functions | |
| static Manager * | getInstance (void) |
Friends | |
| class | Object |
Provides mechanisms for the loading and unloading of a Plugin::Object
| void Plugin::Manager::customEvent | ( | QCustomEvent * | e | ) | [slot] |
Definition at line 138 of file plugin.cpp.
| void Plugin::Manager::foreachPlugin | ( | void(*)(Plugin::Object *, void *) | callback, |
| void * | param | ||
| ) |
Loop through each Plugin and execute a callback. The callback takes two parameters, a Plugin pointer and param, the second parameter to foreachPlugin.
| callback | The callback function. |
| param | A parameter to the callback function. |
Definition at line 112 of file plugin.cpp.
| Plugin::Manager * Plugin::Manager::getInstance | ( | void | ) | [static] |
Manager is a Singleton, which means that there can only be one instance. This function returns a pointer to that single instance.
Definition at line 157 of file plugin.cpp.
| Plugin::Object * Plugin::Manager::load | ( | const std::string & | library | ) |
Function for loading a Plugin::Object from a shared library file.
| library | The file name of a shared library. |
Definition at line 42 of file plugin.cpp.
| void Plugin::Manager::unload | ( | Plugin::Object * | plugin | ) |
Function for unloading a single Plugin::Object in the system.
| object | The plugin object to be unloaded. |
Definition at line 89 of file plugin.cpp.
| void Plugin::Manager::unloadAll | ( | void | ) |
Function for unloading all Plugin::Object's in the system.
Definition at line 99 of file plugin.cpp.