sipXcallLib home page


Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
PsHookswTask Class Reference

#include <PsHookswTask.h>

Inheritance diagram for PsHookswTask:
Inheritance graph
[legend]
Collaboration diagram for PsHookswTask:
Collaboration graph
[legend]

Public Types

enum  HookswitchState { ON_HOOK, OFF_HOOK }
 

Public Member Functions

virtual ~PsHookswTask ()
 
virtual OsStatus postEvent (const int msg, void *source, const int hookswState, const OsTime &rTimeout=OsTime::OS_INFINITY)
 
virtual const int getHookswitchState (void)
 

Static Public Member Functions

static PsHookswTaskgetHookswTask (void)
 

Protected Member Functions

 PsHookswTask ()
 

Private Types

enum  DebounceState { WAIT_FOR_INTR, SHORT_DEBOUNCE, LONG_DEBOUNCE }
 

Private Member Functions

virtual UtlBoolean handleMessage (OsMsg &rMsg)
 
virtual UtlBoolean handleEventMessage (const OsEventMsg &rMsg)
 
virtual UtlBoolean handlePhoneMessage (const PsMsg &rMsg)
 
virtual void startDebounceTimer (void)
 
virtual int readHwHookswState (void)
 
 PsHookswTask (const PsHookswTask &rPsHookswTask)
 
PsHookswTaskoperator= (const PsHookswTask &rhs)
 

Private Attributes

OsRWMutex mMutex
 
int mHookswState
 
PsHookswDevmpHookswDev
 
int mDebounceState
 
int mDebounceTicks
 
int mDebounceHookswState
 
OsTimer * mpTimer
 
OsQueuedEvent * mpTimerEvent
 

Static Private Attributes

static PsHookswTaskspInstance = 0
 
static OsBSem sLock
 

Member Enumeration Documentation

enum DebounceState
private
Enumerator
WAIT_FOR_INTR 
SHORT_DEBOUNCE 
LONG_DEBOUNCE 
Enumerator
ON_HOOK 
OFF_HOOK 

Constructor & Destructor Documentation

~PsHookswTask ( )
virtual
PsHookswTask ( )
protected
PsHookswTask ( const PsHookswTask rPsHookswTask)
private

Member Function Documentation

const int getHookswitchState ( void  )
virtual
PsHookswTask * getHookswTask ( void  )
static
UtlBoolean handleEventMessage ( const OsEventMsg &  rMsg)
privatevirtual
UtlBoolean handleMessage ( OsMsg &  rMsg)
privatevirtual
UtlBoolean handlePhoneMessage ( const PsMsg rMsg)
privatevirtual
PsHookswTask& operator= ( const PsHookswTask rhs)
private
OsStatus postEvent ( const int  msg,
void *  source,
const int  hookswState,
const OsTime &  rTimeout = OsTime::OS_INFINITY 
)
virtual
int readHwHookswState ( void  )
privatevirtual
void startDebounceTimer ( void  )
privatevirtual

Member Data Documentation

int mDebounceHookswState
private
int mDebounceState
private
int mDebounceTicks
private
int mHookswState
private
OsRWMutex mMutex
private
PsHookswDev* mpHookswDev
private
OsTimer* mpTimer
private
OsQueuedEvent* mpTimerEvent
private
OsBSem sLock
staticprivate
PsHookswTask * spInstance = 0
staticprivate