equal
deleted
inserted
replaced
31 #include "CVtEngHandlerContainer.h" |
31 #include "CVtEngHandlerContainer.h" |
32 |
32 |
33 // CONSTANTS |
33 // CONSTANTS |
34 |
34 |
35 // For DevSound initialization |
35 // For DevSound initialization |
36 const TInt KVtEngUidControlHwDevice = 0x10206593; |
36 //const TInt KVtEngUidControlHwDevice = 0x10206593; |
37 |
37 |
38 // ============================ MEMBER FUNCTIONS =============================== |
38 // ============================ MEMBER FUNCTIONS =============================== |
39 |
39 |
40 // ----------------------------------------------------------------------------- |
40 // ----------------------------------------------------------------------------- |
41 // CVtEngAudioHandler::CVtEngAudioHandler |
41 // CVtEngAudioHandler::CVtEngAudioHandler |
53 // Symbian 2nd phase constructor can leave. |
53 // Symbian 2nd phase constructor can leave. |
54 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
55 // |
55 // |
56 void CVtEngAudioHandler::ConstructL() |
56 void CVtEngAudioHandler::ConstructL() |
57 { |
57 { |
58 __VTPRINT( DEBUG_CONSTRUCT | DEBUG_AUDIO, "AH.ConstructL" ) |
58 __VTPRINT( DEBUG_CONSTRUCT | DEBUG_AUDIO, "AH.ConstructL<" ) |
59 |
59 |
60 iAccHandler = &CVtEngUtility::AccessoryHandler(); |
60 iAccHandler = &CVtEngUtility::AccessoryHandler(); |
61 iAccHandler->RegisterObserverL( this ); |
61 iAccHandler->RegisterObserverL( this ); |
62 iTelephonyAudioRouting = CTelephonyAudioRouting::NewL( *this ); |
62 iTelephonyAudioRouting = CTelephonyAudioRouting::NewL( *this ); |
63 iCurrentAudioOutput = iTelephonyAudioRouting->Output(); |
63 iCurrentAudioOutput = iTelephonyAudioRouting->Output(); |
65 // Fetch the mode. |
65 // Fetch the mode. |
66 User::LeaveIfError( iAccHandler->AccessoryMode( iAccMode ) ); |
66 User::LeaveIfError( iAccHandler->AccessoryMode( iAccMode ) ); |
67 __VTPRINT2( DEBUG_AUDIO, "AH.iAccMode %d", ( TInt )iAccMode.iAccessoryMode ) |
67 __VTPRINT2( DEBUG_AUDIO, "AH.iAccMode %d", ( TInt )iAccMode.iAccessoryMode ) |
68 |
68 |
69 UpdateCurrentVolume(); |
69 UpdateCurrentVolume(); |
70 __VTPRINT( DEBUG_CONSTRUCT | DEBUG_AUDIO, "AH.ConstructL<") |
70 __VTPRINT( DEBUG_CONSTRUCT | DEBUG_AUDIO, "AH.ConstructL>") |
71 } |
71 } |
72 |
72 |
73 // ----------------------------------------------------------------------------- |
73 // ----------------------------------------------------------------------------- |
74 // CVtEngAudioHandler::NewL |
74 // CVtEngAudioHandler::NewL |
75 // Two-phased constructor. |
75 // Two-phased constructor. |