sipxmediaadapterlib
Version 3.3
|
#include <MiDtmfNotf.h>
Public Member Functions | |
Creators | |
MiDtmfNotf (const UtlString &sourceId, KeyCode key, KeyPressState pressState, int32_t duration=DURATION_NOT_APPLICABLE, int connId=-1, int streamId=-1) | |
Constructor. More... | |
MiDtmfNotf (const MiDtmfNotf &rNotf) | |
Copy constructor. More... | |
virtual OsMsg * | createCopy (void) const |
Create a copy of this msg object (which may be of a derived type) More... | |
virtual | ~MiDtmfNotf () |
Destructor. More... | |
Manipulators | |
MiDtmfNotf & | operator= (const MiDtmfNotf &rhs) |
Assignment operator. More... | |
void | setKeyCode (KeyCode key) |
Set the specific DTMF value that this notification represents. More... | |
void | setKeyPressState (KeyPressState pressState) |
Set the key press state for this DTMF notification – down or up. More... | |
void | setDuration (int32_t duration) |
Set the duration of this DTMF notification. More... | |
Accessors | |
KeyCode | getKeyCode () const |
Get the specific DTMF value that this notification represents. More... | |
KeyPressState | getKeyPressState () const |
Get the key press state for this DTMF notification – down or up. More... | |
int32_t | getDuration () const |
Get the duration of this DTMF notification. More... | |
Inquiry | |
UtlBoolean | isPressed () const |
Public Member Functions inherited from MiNotification | |
MiNotification (NotfType msgType, const UtlString &sourceId, int connectionId=INVALID_CONNECTION_ID, int streamId=-1) | |
Constructor. More... | |
MiNotification (const MiNotification &rNotf) | |
Copy constructor. More... | |
virtual | ~MiNotification () |
Destructor. More... | |
MiNotification & | operator= (const MiNotification &rhs) |
Assignment operator. More... | |
void | setSourceId (const UtlString &sourceId) |
Set the unique source identifier. More... | |
void | setConnectionId (int 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... | |
NotfType | getType (void) const |
Returns the type of the notification message. More... | |
UtlString | getSourceId (void) const |
Get the unique source identifier. More... | |
int | 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 |
Static Public Attributes inherited from MiNotification | |
static const int | INVALID_CONNECTION_ID = -1 |
Connection ID that indicates invalid connection or no connection. More... | |
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 class used to communicate DTMF signaling.
If one creates a KEY_DOWN notification, duration other than DURATION_NOT_APPLICABLE should not be supplied, as it isn't useful until a KEY_UP event happens.
enum KeyPressState |
enum KeyCode |
MiDtmfNotf | ( | const UtlString & | sourceId, |
KeyCode | key, | ||
KeyPressState | pressState, | ||
int32_t | duration = DURATION_NOT_APPLICABLE , |
||
int | connId = -1 , |
||
int | streamId = -1 |
||
) |
Constructor.
MiDtmfNotf | ( | const MiDtmfNotf & | rNotf | ) |
Copy constructor.
|
virtual |
Destructor.
|
virtual |
Create a copy of this msg object (which may be of a derived type)
Reimplemented from MiNotification.
MiDtmfNotf & operator= | ( | const MiDtmfNotf & | rhs | ) |
Assignment operator.
void setKeyCode | ( | KeyCode | key | ) |
Set the specific DTMF value that this notification represents.
void setKeyPressState | ( | KeyPressState | pressState | ) |
Set the key press state for this DTMF notification – down or up.
void setDuration | ( | int32_t | duration | ) |
Set the duration of this DTMF notification.
MiDtmfNotf::KeyCode getKeyCode | ( | ) | const |
Get the specific DTMF value that this notification represents.
MiDtmfNotf::KeyPressState getKeyPressState | ( | ) | const |
Get the key press state for this DTMF notification – down or up.
int32_t getDuration | ( | ) | const |
Get the duration of this DTMF notification.
UtlBoolean isPressed | ( | ) | const |
|
static |
|
private |
The DTMF key value.
|
private |
Whether the key is up or down.
|
private |
Duration of the DTMF event.