class CTelephonyAudioRoutingManager : public CBase |
Used by Adaptation to notify server regarding changes in audio output.
Public Member Functions | |
---|---|
~CTelephonyAudioRoutingManager () | |
IMPORT_C void | AvailableOutputsChanged (const TArray < CTelephonyAudioRouting::TAudioOutput > &) |
IMPORT_C CTelephonyAudioRoutingManager * | NewL ( MTelephonyAudioRoutingPolicyObserver &, const TArray < CTelephonyAudioRouting::TAudioOutput > &) |
IMPORT_C void | OutputChangeRequestCompleted ( CTelephonyAudioRouting::TAudioOutput , TInt ) |
IMPORT_C void | OutputChanged ( CTelephonyAudioRouting::TAudioOutput ) |
Private Member Functions | |
---|---|
CTelephonyAudioRoutingManager ( MTelephonyAudioRoutingPolicyObserver &) | |
void | ConstructL (const TArray < CTelephonyAudioRouting::TAudioOutput > &) |
TInt | StartServer () |
Private Attributes | |
---|---|
RTelephonyAudioRoutingManagerSession * | iMgrSession |
MTelephonyAudioRoutingPolicyObserver & | iObserver |
RThread | iServer |
CTelephonyAudioRoutingManager | ( | MTelephonyAudioRoutingPolicyObserver & | aObserver | ) | [private] |
C++ default constructor.
MTelephonyAudioRoutingPolicyObserver & aObserver |
IMPORT_C void | AvailableOutputsChanged | ( | const TArray < CTelephonyAudioRouting::TAudioOutput > & | aArray | ) |
EHandset
ELoudspeaker
EWiredAudioAccessory,
EBTAudioAccessory
ETTY
const TArray < CTelephonyAudioRouting::TAudioOutput > & aArray | : Array of currently active outputs. |
void | ConstructL | ( | const TArray < CTelephonyAudioRouting::TAudioOutput > & | aArray | ) | [private] |
2nd Phase constructor.
const TArray < CTelephonyAudioRouting::TAudioOutput > & aArray |
IMPORT_C CTelephonyAudioRoutingManager * | NewL | ( | MTelephonyAudioRoutingPolicyObserver & | aObserver, |
const TArray < CTelephonyAudioRouting::TAudioOutput > & | aArray | |||
) | [static] |
Factory interface returning a new instance of CTelephonyAudioRoutingManager .
EHandset
ELoudspeaker
EWiredAudioAccessory,
EBTAudioAccessory
ETTY
Only one instance of Manager can exist in the system.
Leaves on failure. Call to this function to create a second instance will leave with KErrAlreadyExists.
MTelephonyAudioRoutingPolicyObserver & aObserver | |
const TArray < CTelephonyAudioRouting::TAudioOutput > & aArray |
IMPORT_C void | OutputChangeRequestCompleted | ( | CTelephonyAudioRouting::TAudioOutput | aOutput, |
TInt | aError | |||
) |
Notify the server that MTelephonyAudioRoutingPolicyObserver::OutputChangeRequested request from client has be serviced. If output requested by client is set active, aError will be KErrNone. If for any reason the output requested by the client is not set, Adaptation will call this with active output and reason for not setting the requested output.
CTelephonyAudioRouting::TAudioOutput aOutput | : Currently active output |
TInt aError | KErrNone if aOutput was requested by client, else system wide error code. |
IMPORT_C void | OutputChanged | ( | CTelephonyAudioRouting::TAudioOutput | aOutput | ) |
Notify the server that active output has changed.
EBTAudioAccessory - In-call audio is routed from the device to BT audio accessory by the user via long key press. (Audio is automatically routed by Audio subsystem).
ENone - In call audio is currently routed to BT audio accessory and Audio link between device and BT audio accessory is destroyed by the user via long key press. Audio is not routed anywhere and BT audio accessory is still a valid output.
CTelephonyAudioRouting::TAudioOutput aOutput | : ENone or EBTAudioAccessory. |
RTelephonyAudioRoutingManagerSession * | iMgrSession | [private] |
MTelephonyAudioRoutingPolicyObserver & | iObserver | [private] |
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.