class CTelephonyAudioRouting : public CBase |
Used by telephony applications to query outputs and to configure the output where audio will be routed.
Public Member Functions | |
---|---|
const TArray < TAudioOutput > & | AvailableOutputs () |
TInt | GetShowNote ( TBool &) |
IMPORT_C CTelephonyAudioRouting * | NewL ( MTelephonyAudioRoutingObserver &) |
TAudioOutput | Output () |
TAudioOutput | PreviousOutput () |
void | SetOutputL ( TAudioOutput ) |
TInt | SetShowNote ( TBool ) |
Public Member Enumerations | |
---|---|
enum |
TAudioOutput
{
ENotActive , ENone , EHandset , ELoudspeaker , EWiredAudioAccessory , EBTAudioAccessory , ETTY } |
const TArray < TAudioOutput > & | AvailableOutputs | ( | ) | [pure virtual] |
EHandset
ELoudspeaker
EWiredAudioAccessory,
EWiredAccessory,
EBTAudioAccessory
ETTY Audio can be routed to any of the available outputs in the list.
IMPORT_C CTelephonyAudioRouting * | NewL | ( | MTelephonyAudioRoutingObserver & | aObserver | ) | [static] |
Factory interface returning a new instance of CTelephonyAudioRouting .
If the server is not created by the Adaptation, this leaves with KErrNotReady. If the client does not have MultimediaDD capability, this leaves with KErrPermissionDenied.
Leaves on failure.
MTelephonyAudioRoutingObserver & aObserver |
TAudioOutput | Output | ( | ) | [pure virtual] |
ENotActive : If output has not been set by any or one of the telephony apps has called SetOutputL(ENotActive) successfully.
ENone : If user has destroyed audio link by long key press on the BT device.
EHandset or ELoudspeaker or EWiredAudioAccessory or EBTAudioAccessory or ETTY depending on the last successful SetOutputL() call. EBTAudioAccessory is also returned when adaptation routes audio from device to BT accessory automatically when user initiated long key press event occurs.
TAudioOutput | PreviousOutput | ( | ) | [pure virtual] |
ENotActive : If output had not been set or one of the telephony apps had previously called SetOutputL(ENotActive) successfully.
EHandset or ELoudspeaker or EWiredAudioAccessory or EBTAudioAccessory or ETTY depending on the second last successful SetOutputL() call.
void | SetOutputL | ( | TAudioOutput | aOutput = ENotActive | ) | [pure virtual] |
Sends an asynchronous request to Adaptation to set the output where telephony audio will be routed. This request is completed only when the application receives MTelephonyAudioRoutingObserver::SetOutputComplete callback.
If MTelephonyAudioRoutingObserver::SetOutputComplete returns KErrNone, aOutput requested by this application is configured by Adaptation. Otherwise there was error configuring aOutput and application should call CTelephonyAudioRouting::Output to get the active output.
System wide error code when failure to send request.
KErrArgument when parameter is ENone.
KErrHardwareNotAvailable if aOutput is not in the list of available outputs.
TAudioOutput aOutput = ENotActive | : output requested by application. This can only be any of the outputs from AvailableOutputs() list or ENotActive. |
ENotActive | |
ENone | |
EHandset | |
ELoudspeaker | |
EWiredAudioAccessory | |
EBTAudioAccessory | |
ETTY |
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.