CPEAudioData Class Reference
class CPEAudioData : public CBase |
This file contains the header file of the class CPEAudioData, which is an interface class to audio properties of the system
audiohandling.lib
- Since
- S60_5.0
Constructor & Destructor Documentation
CPEAudioData(MPEPhoneModelInternal &)
~CPEAudioData()
IMPORT_C | ~CPEAudioData | ( | ) | [virtual] |
Member Functions Documentation
CallAudioRoutePreferenceChanged()
IMPORT_C TInt | CallAudioRoutePreferenceChanged | ( | ) | |
Handles call audio route preference changed
ConstructL(CPEAudioFactory &)
void | ConstructL | ( | CPEAudioFactory & | aAudioFactory | ) | [protected] |
By default Symbian 2nd phase constructor is private, but we use it at generalized class.
Parameters
CPEAudioFactory & aAudioFactory | |
ConvertToPE(CTelephonyAudioRouting::TAudioOutput)
Converts TAR route value to PE value
ConvertToTAR(TPEAudioOutput)
Converts PE route value to TAR value
DoHandleVolumeChange(TInt)
void | DoHandleVolumeChange | ( | TInt | aVolume | ) | [protected, virtual] |
Protected function for derived classes to implement for extended volume handling. Default implementation is empty.
- Since
- S60 v5.0
Parameters
TInt aVolume | New volume value. |
GetAudioMuteSync(TBool &)
IMPORT_C void | GetAudioMuteSync | ( | TBool & | aAudioMute | ) | const |
Retrieves Audio mute synchronously.
GetAudioVolumeSync(TInt &)
IMPORT_C void | GetAudioVolumeSync | ( | TInt & | aAudioVolume | ) | const |
Retrieves Audio volume synchronously.
GetAvailableOutputs(CTelephonyAudioRouting &)
Makes request to Telephony Audio Routing to get available audio outputs
HandleCallEnding()
IMPORT_C void | HandleCallEnding | ( | ) | |
Ends call audio route when call disconnected
HandleCallStarting(TBool)
IMPORT_C TInt | HandleCallStarting | ( | TBool | aVideoCall | ) | |
Initialises call audio route when call is alerting or answered
HandleEnergencyCallStarting()
IMPORT_C TInt | HandleEnergencyCallStarting | ( | ) | |
Initialises energency call audio route
InitializeAudioVolumes()
void | InitializeAudioVolumes | ( | ) | [private] |
Gets all audio volume values from reporitory and update member variables
IsBTAvailable()
Return status of BT accessory availability
IsMuted()
TBool
| IsMuted | ( | ) | const [private] |
Return status of mic mute
IsTTYAvailable()
Return status of TTY accessory availability
IsWiredAvailable()
Return status of wired accessory availability
Output()
Return value of current output
PreviousOutput()
Return value of previous output
RoutePreference()
Return value of audio routing preference
SendErrorMessage(const TInt)
void | SendErrorMessage | ( | const TInt | aErrorCode | ) | |
Sends AudioHandlingError message to PhoneEngine and saves errorcode to member variable.
SendMessage(const MEngineMonitor::TPEMessagesFromPhoneEngine)
Forwards message given as parameter to PhoneEngine.
SendMessage(const MEngineMonitor::TPEMessagesFromPhoneEngine, const CTelephonyAudioRouting::TAudioOutput)
Forwards message given as parameter to Phone Engine
SendMessage(const MEngineMonitor::TPEMessagesFromPhoneEngine, CTelephonyAudioRouting &)
Forwards message given as parameter to Phone Engine
SetAudioMuteSync(const TBool)
IMPORT_C void | SetAudioMuteSync | ( | const TBool | aAudioMute | ) | |
Makes synchronous request to set Audio Mute.
SetAudioOutput(const TPEAudioOutput, TBool)
Makes request to Telephony Audio Routing to set audio output path
SetAudioVolumeSync(const TInt)
IMPORT_C void | SetAudioVolumeSync | ( | const TInt | aAudioVolume | ) | |
Makes synchronous request to set Audio Volume.
SetDefaultVolume()
IMPORT_C void | SetDefaultVolume | ( | ) | |
Sets default volume level if muted when call ended
SetRoutePreference(TBool)
void | SetRoutePreference | ( | TBool | aShowNote | ) | |
Sets value of audio routing preference
SetTAROutput(CTelephonyAudioRouting::TAudioOutput, TBool)
Set new audio route to TAR
StartUp()
Gets volume levels, audio mute, audio mode and audio volume at startup and starts monitors.
Member Data Documentation
TBool
iAudioOutputChanged
TBool
| iAudioOutputChanged | [protected] |
CTelephonyAudioRouting * iAudioRouting
CPECallAudioRoutingHandler * iAudioRoutingHandler
CPEAudioRoutingMonitor * iAudioRoutingMonitor
TInt
iHeadSetVolume
TInt
| iHeadSetVolume | [protected] |
TInt
iLoudspeakerVolume
TInt
| iLoudspeakerVolume | [protected] |
RArray< TPEAudioOutput > iPEavailableOutputs
MPEPhoneModelInternal & iPhoneModel
TBool
iRouteInitialized
TBool
| iRouteInitialized | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.