|
Yate
|
Event class. More...
#include <yateiax.h>
Public Types | |
| enum | Type { Invalid = 0, Terminated, Timeout, NotImplemented, New, AuthReq, AuthRep, Accept, Hangup, Reject, Busy, Text, Dtmf, Noise, Answer, Quelch, Unquelch, Progressing, Ringing } |
Public Member Functions | |
| ~IAXEvent () | |
| Type | type () const |
| bool | local () const |
| bool | final () const |
| void | setFinal () |
| u_int8_t | frameType () |
| u_int32_t | subclass () |
| IAXEngine * | getEngine () const |
| IAXTransaction * | getTransaction () const |
| void * | getUserData () const |
| IAXIEList & | getList () |
Protected Member Functions | |
| IAXEvent (Type type, bool local, bool final, IAXTransaction *transaction, u_int8_t frameType=0, u_int32_t subclass=0) | |
| IAXEvent (Type type, bool local, bool final, IAXTransaction *transaction, IAXFullFrame *frame=0) | |
Friends | |
| class | IAXTransaction |
| class | IAXConnectionlessTransaction |
Event class.
This class holds an event generated by a transaction
| enum Type |
Event type as enumeration
| ~IAXEvent | ( | ) |
Destructor Dereferences the transaction possibly causing its destruction
| IAXEvent | ( | Type | type, |
| bool | local, | ||
| bool | final, | ||
| IAXTransaction * | transaction, | ||
| u_int8_t | frameType = 0, |
||
| u_int32_t | subclass = 0 |
||
| ) | [protected] |
Constructor
| type | Event type |
| local | Local flag |
| final | Final flag |
| transaction | IAX transaction that generated the event |
| frameType | The type of the frame that generated the event |
| subclass | The subclass of the frame that generated the event |
| IAXEvent | ( | Type | type, |
| bool | local, | ||
| bool | final, | ||
| IAXTransaction * | transaction, | ||
| IAXFullFrame * | frame = 0 |
||
| ) | [protected] |
Constructor
| type | Event type |
| local | Local flag |
| final | Final flag |
| transaction | IAX transaction that generated the event |
| frame | The frame that generated the event |
| bool final | ( | ) | const [inline] |
Check if this is a transaction finalization event
| u_int8_t frameType | ( | ) | [inline] |
Get the type of the frame that generated the event If 0 (internal event), the event consumer must delete the event
Get the IAX engine this event belongs to, if any
| IAXTransaction* getTransaction | ( | ) | const [inline] |
Get the IAX transaction that generated the event, if any
| void* getUserData | ( | ) | const [inline] |
Get the opaque user data stored in the transaction
References IAXTransaction::getUserData().
| bool local | ( | ) | const [inline] |
Check if this is a locally generated event
| void setFinal | ( | ) | [inline] |
Set the final flag.
| u_int32_t subclass | ( | ) | [inline] |
Get the subclass of the frame that generated the event
1.7.6.1