sipxmedialib
Version 3.3
|
#include <MprnDTMFMsg.h>
Public Member Functions | |
Creators | |
MprnDTMFMsg (const UtlString &namedResOriginator, KeyCode key, KeyPressState pressState, int32_t duration=DURATION_NOT_APPLICABLE, MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1) | |
Constructor. More... | |
MprnDTMFMsg (const MprnDTMFMsg &rMsg) | |
Copy constructor. More... | |
virtual OsMsg * | createCopy (void) const |
Create a copy of this msg object (which may be of a derived type) More... | |
virtual | ~MprnDTMFMsg () |
Destructor. More... | |
Manipulators | |
MprnDTMFMsg & | operator= (const MprnDTMFMsg &rhs) |
Assignment operator. More... | |
void | setKeyCode (KeyCode key) |
Set the specific DTMF value that this event represents. More... | |
void | setKeyPressState (KeyPressState pressState) |
Set the key press state for this DTMF message – down or up. More... | |
void | setDuration (int32_t duration) |
Set the duration of this DTMF event. More... | |
Accessors | |
KeyCode | getKeyCode () const |
Get the specific DTMF value that this event represents. More... | |
KeyPressState | getKeyPressState () const |
Get the key press state for this DTMF message – down or up. More... | |
int32_t | getDuration () const |
Get the duration of this DTMF event. More... | |
Inquiry | |
UtlBoolean | isPressed () const |
Return TRUE if this notification indicates key is down/pressed. More... | |
Public Member Functions inherited from MpResNotificationMsg | |
MpResNotificationMsg (RNMsgType msgType, const UtlString &namedResOriginator, MpConnectionID connId=MP_INVALID_CONNECTION_ID, int streamId=-1) | |
Constructor. More... | |
MpResNotificationMsg (const MpResNotificationMsg &rMpResNotifyMsg) | |
Copy constructor. More... | |
virtual | ~MpResNotificationMsg () |
Destructor. More... | |
MpResNotificationMsg & | operator= (const MpResNotificationMsg &rhs) |
Assignment operator. More... | |
void | setOriginatingResourceName (const UtlString &resOriginator) |
Set the name of the resource this message applies to. More... | |
void | setConnectionId (MpConnectionID connId) |
Set the connection ID that this notification is associated with. More... | |
void | setStreamId (int streamId) |
Set the stream number inside the connection this notification is associated with. More... | |
int | getMsg () const |
Returns the type of the media resource notification message. More... | |
UtlString | getOriginatingResourceName () const |
Get the name of the resource that originated this message. More... | |
MpConnectionID | getConnectionId () const |
Get the connection ID that this message is associated with. More... | |
int | getStreamId () const |
Get the stream number inside the connection this notification is associated with. More... | |
Static Public Attributes | |
static const int32_t | DURATION_NOT_APPLICABLE = -1 |
Private Attributes | |
KeyCode | mKey |
The DTMF key value. More... | |
KeyPressState | mPressState |
Whether the key is up or down. More... | |
int32_t | mDuration |
Duration of the DTMF event. More... | |
Message notification object used to communicate DTMF signaling from resources outward towards the flowgraph, and up through to users above mediaLib and beyond.
If one creates a KEY_DOWN notification, duration should not be supplied, as it isn't useful until a KEY_UP event happens.
enum KeyPressState |
enum KeyCode |
MprnDTMFMsg | ( | const UtlString & | namedResOriginator, |
KeyCode | key, | ||
KeyPressState | pressState, | ||
int32_t | duration = DURATION_NOT_APPLICABLE , |
||
MpConnectionID | connId = MP_INVALID_CONNECTION_ID , |
||
int | streamId = -1 |
||
) |
Constructor.
MprnDTMFMsg | ( | const MprnDTMFMsg & | rMsg | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Create a copy of this msg object (which may be of a derived type)
Reimplemented from MpResNotificationMsg.
MprnDTMFMsg & operator= | ( | const MprnDTMFMsg & | rhs | ) |
Assignment operator.
void setKeyCode | ( | KeyCode | key | ) |
Set the specific DTMF value that this event represents.
void setKeyPressState | ( | KeyPressState | pressState | ) |
Set the key press state for this DTMF message – down or up.
void setDuration | ( | int32_t | duration | ) |
Set the duration of this DTMF event.
MprnDTMFMsg::KeyCode getKeyCode | ( | ) | const |
Get the specific DTMF value that this event represents.
MprnDTMFMsg::KeyPressState getKeyPressState | ( | ) | const |
Get the key press state for this DTMF message – down or up.
int32_t getDuration | ( | ) | const |
Get the duration of this DTMF event.
UtlBoolean isPressed | ( | ) | const |
Return TRUE if this notification indicates key is down/pressed.
|
static |
|
private |
The DTMF key value.
|
private |
Whether the key is up or down.
|
private |
Duration of the DTMF event.