|
Yate
|
A single signalling related event. More...
#include <yatesig.h>
Public Types | |
| enum | Type { Unknown = 0 , Generic , NewCall , Accept , Connect , Complete , Progress , Ringing , Answer , Transfer , Suspend , Resume , Release , Info , Charge , Message , Facility , Circuit , Enable , Disable , Reset , Verify } |
Public Member Functions | |
| SignallingEvent (Type type, SignallingMessage *message, SignallingCall *call) | |
| SignallingEvent (Type type, SignallingMessage *message, SignallingCallControl *controller=0) | |
| SignallingEvent (SignallingCircuitEvent *&event, SignallingCall *call) | |
| virtual | ~SignallingEvent () |
| const char * | name () const |
| Type | type () const |
| SignallingCall * | call () const |
| SignallingMessage * | message () const |
| SignallingCallControl * | controller () const |
| SignallingCircuitEvent * | cicEvent () const |
| bool | sendEvent () |
Static Public Member Functions | |
| static const char * | typeName (Type t) |
A single signalling related event.
An object holding a signalling event and related references
| SignallingEvent | ( | Type | type, |
| SignallingMessage * | message, | ||
| SignallingCall * | call ) |
| SignallingEvent | ( | Type | type, |
| SignallingMessage * | message, | ||
| SignallingCallControl * | controller = 0 ) |
Constructor for a controller related event
| type | Type of the event |
| message | Message carried by the event |
| controller | Controller this event refers to |
References controller(), message(), and type().
| SignallingEvent | ( | SignallingCircuitEvent *& | event, |
| SignallingCall * | call ) |
Constructor for a signalling circuit related event
| event | The event signaled by the circuit, will be consumed and zeroed |
| call | Call this event refers to |
References call().
|
virtual |
Destructor, dereferences any resources, notify the signalling call of termination
|
inline |
Get the call that generated this event, may be NULL
Referenced by SignallingEvent(), and SignallingEvent().
|
inline |
Retrieve the circuit event
|
inline |
Retrieve the controller of the call
Referenced by SignallingEvent().
|
inline |
Get the message that generated this event, may be NULL
Referenced by SignallingEvent(), and SignallingEvent().
|
inline |
Get the string associated with this event's type
References type(), and typeName().
| bool sendEvent | ( | ) |
Send this event through the call that generated it
|
inline |
Get the type of the event
Referenced by name(), SignallingEvent(), and SignallingEvent().
|
inlinestatic |
Get the text associated with a given event type for debug purposes
| t | The requested type |
Referenced by name().