|
Yate
|
A Plugin that implements a module. More...
#include <yatephone.h>
Public Member Functions | |
| virtual void * | getObject (const String &name) const |
| const String & | type () const |
| void | changed () |
| bool | filterInstalled () const |
| bool | filterDebug (const String &item) const |
Public Member Functions inherited from Plugin | |
| Plugin (const char *name, bool earlyInit=false) | |
| virtual | ~Plugin () |
| virtual const String & | toString () const |
| virtual bool | isBusy () const |
| const String & | name () const |
| NamedCounter * | objectsCounter () const |
| bool | earlyInit () const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const |
| int | debugLevel (int level) |
| bool | debugEnabled () const |
| void | debugEnabled (bool enable) |
| const char * | debugName () const |
| bool | debugAt (int level) const |
| bool | debugChained () const |
| void | debugChain (const DebugEnabler *chain=0) |
| void | debugCopy (const DebugEnabler *original=0) |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Static Public Member Functions | |
| static unsigned int | updateDelay () |
| static void | updateDelay (unsigned int delay) |
| static bool | itemComplete (String &itemList, const String &item, const String &partWord) |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Static Protected Member Functions | |
| static const char * | messageName (int id) |
| static int | relayId (const char *name) |
Protected Attributes | |
| enum TelEngine::Module:: { ... } | RelayID |
A Plugin that implements a module.
Module is a descendent of Plugin specialized in implementing modules
Constructor
| name | Plugin name of this driver |
| type | Type of the driver: "misc", "route", etc. |
| earlyInit | True to attempt to initialize module before others |
| void changed | ( | ) |
Mark the driver statistics "dirty" therefore triggring a delayed status update.
Execute a specific command
| retVal | String to append the textual command output to |
| line | Command line to attempt to execute |
Check by filter rule if debugging should be active
| item | Value of the item to match |
|
inline |
Check if a debug filter is installed
References String::null().
Opportunity to modify the update message
| msg | Status update message |
Reimplemented in Driver.
This method is called to initialize the loaded module
Implements Plugin.
Reimplemented in Driver, and ClientDriver.
Install a standard message relay
| name | Name of the relay to create, must match a RelayID |
| priority | Priority of the handler, 0 = top |
Install a custom message relay
| id | RelayID of the new relay to create |
| name | Name of the custom relay to create |
| priority | Priority of the handler, 0 = top |
Install a standard message relay
| id | RelayID of the new relay to create |
| priority | Priority of the handler, 0 = top |
|
protected |
Install a custom message relay
| relay | Custom message relay |
Helper function to complete just one item on a command line
| itemList | Tab separated list of possible values to complete |
| item | Item to possibly insert in the list |
| partWord | Partial word to complete, may be empty |
Find the name of a specific Relay ID
| id | RelayID of the message |
Handler for special commands and line completion requests. By default it calls commandExecute() or commandComplete().
| msg | Command message |
Routing message handler that is invoked for all call.route messages.
| msg | Call routing message |
Reimplemented in ClientDriver, and Driver.
Status message handler that is invoked only for matching messages.
| msg | Status message |
Message receiver handler
| msg | The received message |
| id | The identifier with which the relay was created |
Implements MessageReceiver.
Reimplemented in ClientDriver, and Driver.
Find the ID or a specific Relay name
| name | Name of the Relay to search for |
References Plugin::name().
Check if a specific relay ID is installed
| id | RelayID to test for |
|
protected |
Install standard message relays
Retrieve the type of the module
Uninstall a message relay
| id | RelayID to uninstall, relay will be deleted |
| delRelay | True to delete the relay after removing it |
|
protected |
Uninstall a message relay
| relay | Pointer to message relay |
| delRelay | True to delete the relay after removing it |
|
protected |
Uninstall all installed relays in preparation for unloading
Retrieve the global update notification delay
Set the global update notification delay
| delay | New update delay value in seconds, 0 to disable |
| enum { ... } RelayID |
IDs of the installed relays