Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

ChanAssistList Class Reference

#include <yatepbx.h>

Inheritance diagram for ChanAssistList:

Module Plugin Mutex MessageReceiver DebugEnabler GenObject GenObject List of all members.

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)
void removeAssist (ChanAssist *assist)

Friends

class ChanAssist

Detailed Description

Class keeping a list of ChanAssist objects. It also serves as base to implement channel assisting plugins.


Member Enumeration Documentation

anonymous enum
 

Message realy IDs


Constructor & Destructor Documentation

virtual ~ChanAssistList (   )  [inline, virtual]
 

Destructor

ChanAssistList (  const char *  name  )  [inline, protected]
 

Constructor

Parameters:
name Name of the module


Member Function Documentation

virtual ChanAssist* create (  Message &  msg,
const String &  id
)  [pure virtual]
 

Create a new channel assistant

Parameters:
msg Message that triggered the creation
id Channel's identifier
Returns:
Pointer to new assistant object, NULL if unacceptable

ChanAssist* find (  const String &  id  )  const [inline]
 

Find a channel assistant by channel ID

Parameters:
id Identifier of the assisted channel
Returns:
Pointer to the assistant object

virtual void init (  int  priority = 15  )  [virtual]
 

Initialize the plugin for the first time

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

Parameters:
msg Received nessage
id Numeric identifier of the message type
assist Pointer to the matching assistant object
Returns:
True if the message was handled and further processing should stop

virtual bool received (  Message &  msg,
int  id
)  [virtual]
 

Message handler called internally

Parameters:
msg Received nessage
id Numeric identifier of the message type
Returns:
True if the message was handled and further processing should stop

Reimplemented from Module.

void removeAssist (  ChanAssist *  assist  )  [protected]
 

Removes an assistant object from list

Parameters:
assist Object to remove from list


The documentation for this class was generated from the following file:
Generated on Fri Jul 7 03:11:38 2006 for Yate by  doxygen 1.4.4