#include <PtPhoneHookswitch.h>
Public Types | |
enum | HookswitchState { ON_HOOK, OFF_HOOK } |
![]() | |
enum | ComponentType { BUTTON, DISPLAY, GRAPHIC_DISPLAY, HOOKSWITCH, LAMP, MICROPHONE, RINGER, SPEAKER, TEXT_DISPLAY, EXTERNAL_SPEAKER, UNKNOWN } |
Public Member Functions | |
PtPhoneHookswitch (PtProvider *&rpProvider) | |
enumcode: OFF_HOOK - The phone is off hook enumcode: ON_HOOK - The phone is on hook More... | |
virtual | ~PtPhoneHookswitch () |
PtPhoneHookswitch () | |
PtPhoneHookswitch (TaoClientTask *pClient) | |
PtPhoneHookswitch (const PtPhoneHookswitch &rPtPhoneHookswitch) | |
PtPhoneHookswitch & | operator= (const PtPhoneHookswitch &rhs) |
virtual PtStatus | setHookswitchState (int state) |
virtual PtStatus | getHookswitchState (int &rState) |
param: state - The state of the hookswitch (either ON_HOOK or OFF_HOOK) retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
virtual PtStatus | getCall (PtCall &rCall) |
retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
![]() | |
PtComponent () | |
PtComponent (const PtComponent &rPtComponent) | |
PtComponent & | operator= (const PtComponent &rhs) |
PtComponent (int componentType) | |
PtComponent (const char *&rName) | |
param: componentType - The type of telephone hardware modeled by this component More... | |
virtual | ~PtComponent () |
param: rName - The name of telephone hardware modeled by this component name: button name: hookswitch name: display name: graphic_display name: text_display name: lamp name: microphone name: ringer name: speaker name: unknown More... | |
void | setGroupType (int groupType) |
virtual PtStatus | getName (char *rpName, int maxLen) |
virtual PtStatus | getType (int &rType) |
param: (out) rpName - The reference used to return the name retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available More... | |
Protected Attributes | |
int | mState |
PtProvider * | mpProvider |
TaoClientTask * | mpClient |
PtCall * | mpCall |
OsTime | mTimeOut |
![]() | |
int | mType |
char | mpName [21] |
Private Attributes | |
OsProtectEventMgr * | mpEventMgr |
Additional Inherited Members | |
![]() | |
int | mGroupType |
enum HookswitchState |
PtPhoneHookswitch | ( | PtProvider *& | rpProvider | ) |
enumcode: OFF_HOOK - The phone is off hook enumcode: ON_HOOK - The phone is on hook
|
virtual |
PtPhoneHookswitch | ( | TaoClientTask * | pClient | ) |
PtPhoneHookswitch | ( | const PtPhoneHookswitch & | rPtPhoneHookswitch | ) |
retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
|
virtual |
param: state - The state of the hookswitch (either ON_HOOK or OFF_HOOK) retcode: PT_SUCCESS - Success retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
PtPhoneHookswitch & operator= | ( | const PtPhoneHookswitch & | rhs | ) |
|
virtual |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |