Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

bogotel::CDialOp Class Reference

#include <DialOp.h>

Inheritance diagram for bogotel::CDialOp:

Inheritance graph
[legend]
Collaboration diagram for bogotel::CDialOp:

Collaboration graph
[legend]

Public Types

enum  timerType { singleDtmf = 1000 }

Public Member Functions

 CDialOp (CVoiceDev *, const char *szDialStr, int iTargetType) throw (std::invalid_argument)
virtual ~CDialOp ()
virtual std::string toString ()
virtual void start ()

Protected Member Functions

virtual void _timerExpired (int timerType, int stateId)
virtual void terminate (long reason)
virtual long terminationEvent ()

Private Member Functions

void checkDialString () throw (std::invalid_argument)
void dialSingleDigit ()

Private Attributes

std::string m_strDtmf
std::string::size_type m_iCurrDtmf
int m_iTargetType

Static Private Attributes

const char * s_szValidDtmf = "1234567890*#abcd,"
const char * s_szName = "CDialOp"

Member Enumeration Documentation

enum bogotel::CDialOp::timerType
 

Enumeration values:
singleDtmf 

Definition at line 24 of file DialOp.h.


Constructor & Destructor Documentation

bogotel::CDialOp::CDialOp CVoiceDev ,
const char *  szDialStr,
int  iTargetType
throw (std::invalid_argument)
 

Definition at line 25 of file DialOp.cpp.

bogotel::CDialOp::~CDialOp  )  [virtual]
 

Definition at line 34 of file DialOp.cpp.


Member Function Documentation

std::string bogotel::CDialOp::toString  )  [virtual]
 

Implements bogotel::CTimerTarget.

Definition at line 44 of file DialOp.cpp.

References s_szName.

void bogotel::CDialOp::start  )  [virtual]
 

Reimplemented from bogotel::CIOOp.

Definition at line 39 of file DialOp.cpp.

References dialSingleDigit().

void bogotel::CDialOp::_timerExpired int  timerType,
int  stateId
[protected, virtual]
 

Implements bogotel::CTimerTarget.

Definition at line 56 of file DialOp.cpp.

References dialSingleDigit(), and bogotel::CIOOp::log().

void bogotel::CDialOp::terminate long  reason  )  [protected, virtual]
 

Reimplemented from bogotel::CIOOp.

Definition at line 102 of file DialOp.cpp.

References bogotel::CIOOp::log(), m_iTargetType, bogotel::CIOOp::m_pVD, and bogotel::CVoiceDev::terminateIoOp().

Referenced by dialSingleDigit().

long bogotel::CDialOp::terminationEvent  )  [protected, virtual]
 

Implements bogotel::CIOOp.

Definition at line 49 of file DialOp.cpp.

void bogotel::CDialOp::checkDialString  )  throw (std::invalid_argument) [private]
 

Definition at line 119 of file DialOp.cpp.

void bogotel::CDialOp::dialSingleDigit  )  [private]
 

Definition at line 69 of file DialOp.cpp.

References bogotel::g_util, bogotel::CUtil::log(), m_iCurrDtmf, m_iTargetType, bogotel::CIOOp::m_pVD, m_strDtmf, bogotel::CVoiceDev::sendDtmfFinishedMsg(), bogotel::CVoiceDev::sendDtmfMsg(), bogotel::CTimerTarget::setTimer(), and terminate().

Referenced by _timerExpired(), and start().


Field Documentation

const char * bogotel::CDialOp::s_szValidDtmf = "1234567890*#abcd," [static, private]
 

Definition at line 22 of file DialOp.cpp.

const char * bogotel::CDialOp::s_szName = "CDialOp" [static, private]
 

Definition at line 23 of file DialOp.cpp.

Referenced by toString().

std::string bogotel::CDialOp::m_strDtmf [private]
 

Definition at line 44 of file DialOp.h.

Referenced by dialSingleDigit().

std::string::size_type bogotel::CDialOp::m_iCurrDtmf [private]
 

Definition at line 45 of file DialOp.h.

Referenced by dialSingleDigit().

int bogotel::CDialOp::m_iTargetType [private]
 

Definition at line 46 of file DialOp.h.

Referenced by dialSingleDigit(), and terminate().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 12:42:17 2003 for bogotel by doxygen 1.3. Hosted by SourceForge.net Logo