|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * Extended Phone RemCon API. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef BTMCDEFS_H |
|
21 #define BTMCDEFS_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 enum TBTMonoATVoiceRecognition |
|
26 { |
|
27 EBTMonoATVoiceRecognitionOff = 0, |
|
28 EBTMonoATVoiceRecognitionOn = 1, |
|
29 }; |
|
30 |
|
31 enum TBTMonoVoiceRecognitionInitiator |
|
32 { |
|
33 EBTMonoVoiceRecognitionDefaultInitiator = 0, // phone |
|
34 EBTMonoVoiceRecognitionActivatedByRemote, |
|
35 EBTMonoVoiceRecognitionDeactivatedByRemote, |
|
36 }; |
|
37 |
|
38 enum TBTMonoATPhoneIndicatorId |
|
39 { |
|
40 EBTMonoATNetworkIndicator = 1, |
|
41 EBTMonoATCallIndicator = 2, |
|
42 EBTMonoATCallSetupIndicator = 3, |
|
43 EBTMonoATCall_SetupIndicator = 4, |
|
44 EBTMonoATCallHeldIndicator = 5, |
|
45 EBTMonoATSignalStrengthIndicator = 6, |
|
46 EBTMonoATRoamingIndicator = 7, |
|
47 EBTMonoATBatteryChargeIndicator = 8 |
|
48 }; |
|
49 |
|
50 enum TBTMonoATNetworkStatus |
|
51 { |
|
52 EBTMonoATNetworkUnavailable = 0, |
|
53 EBTMonoATNetworkAvailable = 1 |
|
54 }; |
|
55 |
|
56 enum TBTMonoATRoamingStatus |
|
57 { |
|
58 EBTMonoATRoamingInactive = 0, |
|
59 EBTMonoATRoamingActive = 1 |
|
60 }; |
|
61 |
|
62 enum TBTMonoATCallStatus |
|
63 { |
|
64 EBTMonoATNoCall = 0, |
|
65 EBTMonoATCallActive = 1 |
|
66 }; |
|
67 |
|
68 enum TBTMonoATCallSetupStatus |
|
69 { |
|
70 EBTMonoATNoCallSetup = 0, |
|
71 EBTMonoATCallRinging = 1, |
|
72 EBTMonoATCallDialling = 2, |
|
73 EBTMonoATCallConnecting = 3 |
|
74 }; |
|
75 |
|
76 enum TBTMonoATCallHeldStatus |
|
77 { |
|
78 EBTMonoATNoCallHeld = 0, |
|
79 EBTMonoATCallHeldAndActive = 1, |
|
80 EBTMonoATCallHeldOnly = 2 |
|
81 }; |
|
82 |
|
83 |
|
84 enum TBTMonoATPhoneNumberType |
|
85 { |
|
86 EBTMonoATPhoneNumberUnavailable = 128, |
|
87 EBTMonoATPhoneNumberNational = 129, |
|
88 EBTMonoATPhoneNumberInternational = 145 |
|
89 }; |
|
90 |
|
91 // mandatory indicators including call, call setup and call held: |
|
92 const TInt KMandatoryInds = 0x00000001; |
|
93 |
|
94 // "service" indicator: |
|
95 const TInt KIndServiceBit = 0x00000002; |
|
96 |
|
97 // "signal" indicator: |
|
98 const TInt KIndSignalBit = 0x00000004; |
|
99 |
|
100 // "roam" indicator: |
|
101 const TInt KIndRoamBit = 0x00000008; |
|
102 |
|
103 // "battchg" indicator: |
|
104 const TInt KIndChargeBit = 0x00000010; |
|
105 |
|
106 // value to enable all indicators (when CMER=3,0,0,1 is received): |
|
107 const TInt KIndAllActivated = KMandatoryInds | |
|
108 KIndServiceBit | |
|
109 KIndSignalBit | |
|
110 KIndRoamBit | |
|
111 KIndChargeBit; |
|
112 |
|
113 // value to disable all indicators: |
|
114 const TInt KIndAllDeActivated = 0; |
|
115 |
|
116 enum TBTMonoATCallerIdNotif |
|
117 { |
|
118 EBTMonoATCallerIdNotifDisabled = 0, |
|
119 EBTMonoATCallerIdNotifEnabled = 1, |
|
120 }; |
|
121 |
|
122 enum TBTMonoATCallWaitingNotif |
|
123 { |
|
124 EBTMonoATCallWaitingNotifDisabled = 0, |
|
125 EBTMonoATCallWaitingNotifEnabled = 1, |
|
126 }; |
|
127 |
|
128 enum TBTMonoATCallerIdNetworkServiceStatus |
|
129 { |
|
130 EBTMonoATCallerIdNetworkServiceUnavailable = 0, |
|
131 EBTMonoATCallerIdNetworkServiceAvailable = 1, |
|
132 EBTMonoATCallerIdNetworkServiceUnknown = 2 |
|
133 }; |
|
134 |
|
135 enum TBTMonoATCregN |
|
136 { |
|
137 EBTMonoCregDisable = 0, |
|
138 EBTMonoCregEnableUnsolicited = 1, |
|
139 EBTMonoCregEnableAll = 2, |
|
140 }; |
|
141 enum TBTMonoATCregServiceStatus |
|
142 { |
|
143 EBTMonoCregNetworkServiceNotRegistered = 0, |
|
144 EBTMonoCregNetworkServiceHomeNetwork = 1, |
|
145 EBTMonoCregNetworkServiceNotRegisteredSearching = 2, |
|
146 EBTMonoCregNetworkServiceRegistrationDenied = 3, |
|
147 EBTMonoCregNetworkServiceUnknown = 4, |
|
148 EBTMonoCregNetworkServiceRegisteredRoaming = 5, |
|
149 }; |
|
150 |
|
151 const TInt KBTAGSupportedFeatureV10 = 0x2f; |
|
152 const TInt KBTAGSupportedFeatureV15 = 0xef; |
|
153 |
|
154 const TInt KRingInterval = 5 * 1000* 1000; // 5 sec |
|
155 |
|
156 const TInt KSlcTimeout = 20 * 1000 * 1000; // 20 sec |
|
157 |
|
158 const TInt KFirstHspCkpdTimeout = 1 * 1000 * 1000; // 1 sec |
|
159 |
|
160 const TInt KCallDiallingBit = 0x00000001; |
|
161 const TInt KCallRingingBit = 0x00000010; |
|
162 const TInt KCallAnsweringBit = 0x00000100; |
|
163 const TInt KCallConnectingBit = 0x00001000; |
|
164 const TInt KCallConnectedBit = 0x00010000; |
|
165 const TInt KCallHoldBit = 0x00100000; |
|
166 const TInt KActiveCallMask = 0x00110000; |
|
167 const TInt KCallAllStatusMask = 0x00111111; |
|
168 |
|
169 const TInt KHfFeatureBitVoiceRecognition = 0x08; |
|
170 const TInt KHfFeatureBitVolumeControl = 0x10; |
|
171 |
|
172 _LIT8(KDesTestCodeCINDv15, "(\"service\",(0,1)),(\"call\",(0,1)),(\"callsetup\",(0-3)),(\"call_setup\",(0-3)),(\"callheld\",(0-2)),(\"signal\",(0-5)),(\"roam\",(0-1)),(\"battchg\",(0-5))"); |
|
173 |
|
174 _LIT8(KDesTestCodeCHLDv15, "(0,1,1x,2,2x,3,4)"); |
|
175 |
|
176 _LIT8(KDesTestCodeBVRA, "(0,1)"); |
|
177 _LIT8(KDesTestCodeCLIP, "(0,1)"); |
|
178 _LIT8(KDesTestCodeCCWA, "(0,1)"); |
|
179 |
|
180 #endif // BTMCDEFS_H |
|
181 |