class Plugin

Plugin support. More...

Contains pure virtuals
Full nameTelEngine::Plugin
Definition#include <yatengine.h>
InheritsTelEngine::GenObject [public ]
Inherited byChanAssistList, ClientDriver, Driver, Module
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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)

Plugin

Creates a new Plugin container.

Parameters:
namethe undecorated name of the library that contains the plugin

 Plugin ()

Plugin

Creates a new Plugin container. Alternate constructor which is also the default.

 ~Plugin ()

~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.

void*  getObject (const String& name)

getObject

[const virtual]

Get a pointer to a derived class given that class name

Parameters:
nameName of the class we are asking for

Returns: Pointer to the requested class or NULL if this object doesn't implement it

Reimplemented from GenObject.

void  initialize ()

initialize

[pure virtual]

Initialize the plugin after it was loaded and registered.

bool  isBusy ()

isBusy

[const virtual]

Check if the module is actively used.

Returns: True if the plugin is in use, false if should be ok to restart


Generated by: root on dragoshel on Sat Apr 14 01:50:50 2007, using kdoc 2.0a54.