#include <PsPhoneTask.h>
Public Types | |
enum | SpkrMode { HANDSET_ENABLED = 0x1, SPEAKERPHONE_ENABLED = 0x2, RINGER_ENABLED = 0x4, SOUND_ENABLED = 0x8, HEADSET_ENABLED = 0x10, EXTSPEAKER_ENABLED = 0x20 } |
Public Member Functions | |
virtual | ~PsPhoneTask () |
virtual OsStatus | addListener (OsServerTask *pListener) |
virtual OsStatus | postEvent (const int msg, void *source, const int param1, const int param2, const OsTime &rTimeout=OsTime::OS_INFINITY) |
virtual OsStatus | setGain (int level) |
virtual void | speakerModeEnable (int mode) |
virtual void | speakerModeDisable (int mode) |
virtual void | setSpeakerMode (int mode) |
virtual OsStatus | setVolume (int level) |
void | taoSetVolume (int volume, int type) |
OsStatus | taoSetMicGain (int group, int level) |
void | extSpeakerConnect (UtlBoolean connected) |
UtlBoolean | getComponent (PsMsg &rMsg) |
UtlBoolean | numComponents (PsMsg &rMsg) |
UtlBoolean | getComponents (PsMsg &rMsg) |
UtlBoolean | getComponentGroups (PsMsg &rMsg) |
int | activateGroup (PsMsg &rMsg) |
int | activateGroup (int type) |
UtlBoolean | deactivateGroup (PsMsg &rMsg) |
UtlBoolean | deactivateGroup (int type) |
virtual int | getGain (void) const |
virtual int | getSpeakerMode (void) |
virtual int | getVolume (void) |
void | taoGetVolume (int &volume, int type) |
void | taoGetNominalVolume (int &volume, int type) |
int | taoGetMicGain (int group) |
Static Public Member Functions | |
static PsPhoneTask * | getPhoneTask (void) |
Protected Member Functions | |
PsPhoneTask () | |
Private Member Functions | |
virtual UtlBoolean | handleMessage (OsMsg &rMsg) |
virtual UtlBoolean | handlePhoneMessage (const PsMsg &rMsg) |
void | initComponentGroups () |
void | initPlatformButtonSettings (PsButtonTask *pButtonTask) |
void | setGainValue (int value) |
void | postListenerMessage (const PsMsg &rMsg) |
PsPhoneTask (const PsPhoneTask &rPsPhoneTask) | |
PsPhoneTask & | operator= (const PsPhoneTask &rhs) |
Static Private Attributes | |
static PsPhoneTask * | spInstance = 0 |
static OsBSem | sLock |
enum SpkrMode |
|
virtual |
|
protected |
|
private |
int activateGroup | ( | PsMsg & | rMsg | ) |
int activateGroup | ( | int | type | ) |
|
virtual |
UtlBoolean deactivateGroup | ( | PsMsg & | rMsg | ) |
UtlBoolean deactivateGroup | ( | int | type | ) |
void extSpeakerConnect | ( | UtlBoolean | connected | ) |
UtlBoolean getComponent | ( | PsMsg & | rMsg | ) |
UtlBoolean getComponentGroups | ( | PsMsg & | rMsg | ) |
UtlBoolean getComponents | ( | PsMsg & | rMsg | ) |
|
virtual |
|
static |
|
virtual |
|
virtual |
|
privatevirtual |
|
privatevirtual |
|
private |
|
private |
UtlBoolean numComponents | ( | PsMsg & | rMsg | ) |
|
private |
|
virtual |
|
private |
|
virtual |
|
private |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
int taoGetMicGain | ( | int | group | ) |
void taoGetNominalVolume | ( | int & | volume, |
int | type | ||
) |
void taoGetVolume | ( | int & | volume, |
int | type | ||
) |
OsStatus taoSetMicGain | ( | int | group, |
int | level | ||
) |
void taoSetVolume | ( | int | volume, |
int | type | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |