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

bogotel::CTimerTarget Class Reference

#include <TimerTarget.h>

Inheritance diagram for bogotel::CTimerTarget:

Inheritance graph
[legend]

Public Member Functions

 CTimerTarget ()
virtual ~CTimerTarget ()
void timerExpired (int timerType, int stateId)
void setTimer (int period, int timerType)
virtual std::string toString ()=0
void incStateId ()
bool timerValid (int stateId)
long getId ()

Protected Member Functions

virtual void _timerExpired (int timerType, int stateId)=0

Private Member Functions

int getStateId ()

Private Attributes

int m_iStateId
long m_lId

Static Private Attributes

boost::mutex s_mtxId
long s_lId

Detailed Description

Inherit from this in order to be the target of a timer. Manages the number of timers refering to the target.

Definition at line 24 of file TimerTarget.h.


Constructor & Destructor Documentation

bogotel::CTimerTarget::CTimerTarget  ) 
 

Definition at line 21 of file TimerTarget.cpp.

References m_lId, s_lId, and s_mtxId.

bogotel::CTimerTarget::~CTimerTarget  )  [virtual]
 

Definition at line 28 of file TimerTarget.cpp.


Member Function Documentation

void bogotel::CTimerTarget::timerExpired int  timerType,
int  stateId
 

Definition at line 36 of file TimerTarget.cpp.

References _timerExpired(), bogotel::g_util, bogotel::CUtil::log(), and timerValid().

Referenced by bogotel::CTimer::checkForExpirations().

void bogotel::CTimerTarget::setTimer int  period,
int  timerType
 

Definition at line 31 of file TimerTarget.cpp.

References getStateId().

Referenced by bogotel::CTermParms::_update(), and bogotel::CDialOp::dialSingleDigit().

std::string bogotel::CTimerTarget::toString  )  [pure virtual]
 

Implemented in bogotel::CDialOp, bogotel::CGetDigOp, and bogotel::CPlayOp.

Definition at line 70 of file TimerTarget.cpp.

References m_lId.

Referenced by bogotel::CTimer::checkForExpirations(), bogotel::CTimer::handleDefunctTargets(), bogotel::CTimer::registerTarget(), bogotel::CTimer::requestTargetDeletion(), bogotel::CVoiceDev::terminateIoOp(), and bogotel::CTermParms::update().

void bogotel::CTimerTarget::incStateId  ) 
 

Definition at line 50 of file TimerTarget.cpp.

References m_iStateId.

Referenced by bogotel::CTermParms::update().

bool bogotel::CTimerTarget::timerValid int  stateId  ) 
 

Definition at line 65 of file TimerTarget.cpp.

References m_iStateId.

Referenced by timerExpired().

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

Implemented in bogotel::CDialOp, bogotel::CGetDigOp, and bogotel::CPlayOp.

Referenced by timerExpired().

int bogotel::CTimerTarget::getStateId  )  [private]
 

Definition at line 55 of file TimerTarget.cpp.

References m_iStateId.

Referenced by setTimer().

long bogotel::CTimerTarget::getId  ) 
 

Definition at line 60 of file TimerTarget.cpp.

References m_lId.

Referenced by bogotel::CTimer::checkForExpirations(), bogotel::CTimer::handleDefunctTargets(), and bogotel::CTimer::registerTarget().


Field Documentation

int bogotel::CTimerTarget::m_iStateId [private]
 

Definition at line 45 of file TimerTarget.h.

Referenced by getStateId(), incStateId(), and timerValid().

long bogotel::CTimerTarget::m_lId [private]
 

Definition at line 48 of file TimerTarget.h.

Referenced by CTimerTarget(), getId(), and toString().

boost::mutex bogotel::CTimerTarget::s_mtxId [static, private]
 

Definition at line 18 of file TimerTarget.cpp.

Referenced by CTimerTarget().

long bogotel::CTimerTarget::s_lId [static, private]
 

Referenced by CTimerTarget().


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