|
1 /* |
|
2 * Copyright (c) 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 TPhoneCmdParamAudioAvailability class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "tphonecmdparamaudioavailability.h" |
|
21 |
|
22 // ================= MEMBER FUNCTIONS ======================= |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // TPhoneCmdParamAudioAvailability::TPhoneCmdParamAudioAvailability |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C TPhoneCmdParamAudioAvailability::TPhoneCmdParamAudioAvailability() : |
|
31 TPhoneCommandParam() |
|
32 { |
|
33 iParamId = EPhoneParamIdAudioAvailable; |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------- |
|
37 // TPhoneCmdParamAudioAvailability::SetBTAccAvailable |
|
38 // Sets the BT accessory availability |
|
39 // (other items were commented in a header). |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C void TPhoneCmdParamAudioAvailability::SetBTAccAvailable( |
|
43 TBool aState ) |
|
44 { |
|
45 iBTAccAvailable = aState; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // TPhoneCmdParamAudioAvailability::IsBTAccAvailable |
|
50 // Returns the BT accessory availability |
|
51 // (other items were commented in a header). |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C TBool |
|
55 TPhoneCmdParamAudioAvailability::IsBTAccAvailable() const |
|
56 { |
|
57 return iBTAccAvailable; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // TPhoneCmdParamAudioAvailability::SetWiredAccAvailable |
|
62 // Sets the wired accessory availability |
|
63 // (other items were commented in a header). |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C void TPhoneCmdParamAudioAvailability::SetWiredAccAvailable( TBool aState ) |
|
67 { |
|
68 iWiredAccAvailable = aState; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // TPhoneCmdParamAudioAvailability::IsWiredAccAvailable |
|
73 // Returns the wired accessory availability |
|
74 // (other items were commented in a header). |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C TBool TPhoneCmdParamAudioAvailability::IsWiredAccAvailable() const |
|
78 { |
|
79 return iWiredAccAvailable; |
|
80 } |
|
81 |
|
82 |
|
83 // End of File |