#include <readDTMF.h>
Inheritance diagram for ReadDTMF:
Public Member Functions | |
ReadDTMF (Connection *conn, int timeout, int min_digits, int max_digits) | |
Constructor. Create Object and read the current digit count from Connection. | |
void | mainLoop () throw (CapiWrongState) |
mainLoop: Waits until the given conditions (see constructor) have been fulfilled | |
void | gotDTMF () |
finish if max_digits is reached, otherwise restart timeout when DTMF signal is received | |
Private Attributes | |
int | digit_count |
save the current number of digits in receive buffer | |
int | min_digits |
save min_digits parameter | |
int | max_digits |
save max_digits parameter |
This module allows the user to specify how much DTMF digits he wants to read and how long to wait for them. It doesn't do the actual read, just waits for the given conditions to be fulfilled.
To use it, create an object and call mainLoop(). After mainLoop() finished, call Connection::getDTMF() to read the received signals.
|
Constructor. Create Object and read the current digit count from Connection.
|
|
finish if max_digits is reached, otherwise restart timeout when DTMF signal is received
Reimplemented from CallModule.
|
|
mainLoop: Waits until the given conditions (see constructor) have been fulfilled The module will finish if one of these conditions are true:
Reimplemented from CallModule.
|
|
save the current number of digits in receive buffer
|
|
save max_digits parameter
|
|
save min_digits parameter
|