|
Yate
|
#include <yatepbx.h>
Public Types | |
| enum | { Startup = Private, Hangup, Disconnected, AssistPrivate } |
Public Member Functions | |
| virtual | ~ChanAssistList () |
| virtual bool | received (Message &msg, int id) |
| virtual bool | received (Message &msg, int id, ChanAssist *assist) |
| virtual void | initialize () |
| virtual ChanAssist * | create (Message &msg, const String &id)=0 |
| virtual void | init (int priority=15) |
| ChanAssist * | find (const String &id) const |
Protected Member Functions | |
| ChanAssistList (const char *name, bool earlyInit=false) | |
| void | removeAssist (ChanAssist *assist) |
| HashList & | calls () |
| const HashList & | calls () const |
Friends | |
| class | ChanAssist |
Class keeping a list of ChanAssist objects. It also serves as base to implement channel assisting plugins.
| anonymous enum |
Message realy IDs
| virtual ~ChanAssistList | ( | ) | [inline, virtual] |
Destructor
| ChanAssistList | ( | const char * | name, |
| bool | earlyInit = false |
||
| ) | [inline, protected] |
Constructor
| name | Name of the module |
| earlyInit | True to attempt to initialize module before others |
Access to the assisted calls list
Access to the assisted calls list
| virtual ChanAssist* create | ( | Message & | msg, |
| const String & | id | ||
| ) | [pure virtual] |
| ChanAssist* find | ( | const String & | id | ) | const [inline] |
Find a channel assistant by channel ID
| id | Identifier of the assisted channel |
| virtual void init | ( | int | priority = 15 | ) | [virtual] |
Initialize the plugin for the first time
| priority | Priority used to install message handlers |
| virtual void initialize | ( | ) | [virtual] |
Method to (re)initialize the plugin
Reimplemented from Module.
| virtual bool received | ( | Message & | msg, |
| int | id, | ||
| ChanAssist * | assist | ||
| ) | [virtual] |
Message handler for an assistant object
| msg | Received nessage |
| id | Numeric identifier of the message type |
| assist | Pointer to the matching assistant object |
| void removeAssist | ( | ChanAssist * | assist | ) | [protected] |
Removes an assistant object from list
| assist | Object to remove from list |
1.7.6.1