RTXI 1.3
Plugin::Manager Class Reference

#include <plugin.h>

List of all members.

Public Slots

void customEvent (QCustomEvent *)

Public Member Functions

Objectload (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 ManagergetInstance (void)

Friends

class Object

Detailed Description

Provides mechanisms for the loading and unloading of a Plugin::Object

Definition at line 41 of file plugin.h.


Member Function Documentation

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.

Parameters:
callbackThe callback function.
paramA parameter to the callback function.
See also:
Plugin::Object

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.

Returns:
The instance of Manager.

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.

Parameters:
libraryThe file name of a shared library.
Returns:
A pointer to the newly created Plugin::Object.
See also:
Plugin::Object

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.

Parameters:
objectThe 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.


Friends And Related Function Documentation

friend class Object [friend]

Definition at line 45 of file plugin.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines