|
Yate
|
#include <yatengine.h>
Public Member Functions | |
| Plugin (const char *name, bool earlyInit=false) | |
| virtual | ~Plugin () |
| virtual const String & | toString () const |
| virtual void * | getObject (const String &name) const |
| virtual void | initialize ()=0 |
| virtual bool | isBusy () const |
| const String & | name () const |
| bool | earlyInit () const |
Plugin support.
Initialization and information about plugins. Plugins are located in shared libraries that are loaded at runtime.
// Create static Plugin object by using the provided macro INIT_PLUGIN(Plugin); *
| Plugin | ( | const char * | name, |
| bool | earlyInit = false |
||
| ) | [explicit] |
Creates a new Plugin container.
| name | the undecorated name of the library that contains the plugin |
| earlyInit | True to initialize the plugin early |
| virtual ~Plugin | ( | ) | [virtual] |
Destroys the plugin. The destructor must never be called directly - the Loader will do it when the shared object's reference count reaches zero.
| bool earlyInit | ( | ) | const [inline] |
Check if the module is to be initialized early
| virtual void initialize | ( | ) | [pure virtual] |
Initialize the plugin after it was loaded and registered.
Implemented in Driver, ClientDriver, Module, and ChanAssistList.
| virtual bool isBusy | ( | ) | const [inline, virtual] |
Check if the module is actively used.
Reimplemented in Driver.
Retrieve the name of the plugin
1.7.6.1