|
1 /* |
|
2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of an accessory management. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <centralrepository.h> |
|
21 #include <btengdomaincrkeys.h> |
|
22 |
|
23 #include "basrvaccman.h" |
|
24 #include "debug.h" |
|
25 |
|
26 void CBasrvAccMan::AudioToPhone(CBasrvAudio4Dos& /*aAudio4Dos*/) |
|
27 { |
|
28 } |
|
29 |
|
30 void CBasrvAccMan::AudioToAccessory(CBasrvAudio4Dos& /*aAudio4Dos*/) |
|
31 { |
|
32 } |
|
33 |
|
34 void CBasrvAccMan::ConstructL() |
|
35 { |
|
36 CRepository* cenrep = NULL; |
|
37 TRAP_IGNORE(cenrep = CRepository::NewL(KCRUidBluetoothEngine)); |
|
38 TInt avrcpVol = EBTAvrcpVolCTNotSupported; |
|
39 TInt autoDisconnect = EBTDisconnectIfAudioOpenFails; |
|
40 if (cenrep) |
|
41 { |
|
42 cenrep->Get(KBTAvrcpVolCTLV, avrcpVol); |
|
43 cenrep->Get(KBTDisconnectIfAudioOpenFailsLV, autoDisconnect); |
|
44 delete cenrep; |
|
45 } |
|
46 iAvrcpVolCTSupported = (avrcpVol == EBTAvrcpVolCTSupported) ? ETrue : EFalse; |
|
47 iDisconnectIfAudioOpenFails = (autoDisconnect == EBTDisconnectIfAudioOpenFails) ? ETrue : EFalse; |
|
48 TRACE_INFO((_L("[AVRCP_Vol_CT] %d [DisconnectIfAudioOpenFails] %d"), |
|
49 iAvrcpVolCTSupported, iDisconnectIfAudioOpenFails)) |
|
50 } |
|
51 |
|
52 void CBasrvAccMan::DestructVariant() |
|
53 { |
|
54 } |