|
1 /* |
|
2 * Copyright (c) 2005-2009 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BTGPSPSYINTERNALPSKEYS_H |
|
21 #define BTGPSPSYINTERNALPSKEYS_H |
|
22 |
|
23 /** @file |
|
24 * @publishedPartner |
|
25 * @released |
|
26 */ |
|
27 |
|
28 |
|
29 /** |
|
30 * Uid of BT GPS PSY Events |
|
31 */ |
|
32 const TUid KPsUidBluetoothGpsPsy = { 0x101FE999 }; |
|
33 |
|
34 |
|
35 /** |
|
36 * PSY State |
|
37 */ |
|
38 const TUint KBluetoothGpsPsyState = 0x01; |
|
39 |
|
40 /** |
|
41 * PSY State possible values |
|
42 */ |
|
43 enum TBTGPSPSYState |
|
44 { |
|
45 /** BT GPS PSY not loaded */ |
|
46 EPSYNotLoaded = -1, |
|
47 /** BT GPS PSY loaded but not connected to GPS device */ |
|
48 EPSYLoaded, |
|
49 /** BT GPS PSY loaded and connected to PNOK enabled GPS device */ |
|
50 EPSYLoadedAndPNOKSupportedBTGPSUsed, |
|
51 /** BT GPS PSY loaded and connected to non PNOK enabled GPS device*/ |
|
52 EPSYLoadedAndPNOKNotSupportedBTGPSUsed, |
|
53 /** BT GPS PSY in stand by state */ |
|
54 EPSYInStandBy |
|
55 }; |
|
56 |
|
57 /** |
|
58 * BT GPS battery level, value between 0-100 |
|
59 */ |
|
60 const TUint KBluetoothGpsPsyBatteryLevel = 0x02; |
|
61 |
|
62 /** |
|
63 * State of the battery in the BT GPS device |
|
64 */ |
|
65 const TUint KBluetoothGpsPsyBatteryState = 0x03; |
|
66 |
|
67 /** |
|
68 * State of the BT GPS battery |
|
69 */ |
|
70 enum TBTGPSBatteryState |
|
71 { |
|
72 /** Battery state not available */ |
|
73 EBatteryStateNA = -1, |
|
74 /** Battery state normal */ |
|
75 EBatteryStateNormal, |
|
76 /** Battery low */ |
|
77 EBatteryStateLow, |
|
78 /** Battery full */ |
|
79 EBatteryStateFull |
|
80 }; |
|
81 |
|
82 |
|
83 /** |
|
84 * State of the external antenna of the BT GPS |
|
85 */ |
|
86 const TUint KBluetoothGpsPsyExtAntennaState = 0x04; |
|
87 |
|
88 enum TBTGPSExtAntennaState |
|
89 { |
|
90 /** External antenna no applicable */ |
|
91 EExtAntennaNA = -1, |
|
92 /** External antenna off */ |
|
93 EExtAntennaOff, |
|
94 /** External antenna on */ |
|
95 EExtAntennaOn |
|
96 }; |
|
97 |
|
98 |
|
99 /** |
|
100 * State of the BT GPS charger |
|
101 */ |
|
102 const TUint KBluetoothGpsPsyExtPowerState = 0x05; |
|
103 |
|
104 /** |
|
105 * State of external power connection |
|
106 */ |
|
107 enum TBTGPSExtPowerState |
|
108 { |
|
109 /** External power no applicable */ |
|
110 EExtPowerNA = -1, |
|
111 /** External power off */ |
|
112 EExtPowerOff, |
|
113 /** External power on */ |
|
114 EExtPowerOn |
|
115 }; |
|
116 |
|
117 |
|
118 /** |
|
119 * BT GPS device model name |
|
120 */ |
|
121 const TUint KBluetoothGpsPsyVersion = 0x06; |
|
122 |
|
123 /** |
|
124 * BT hardware version of the BT GPS device |
|
125 */ |
|
126 const TUint KBluetoothGpsPsyBtHwVersion = 0x07; |
|
127 |
|
128 /** |
|
129 * BT software version of the BT GPS device |
|
130 */ |
|
131 const TUint KBluetoothGpsPsyBtSwVersion = 0x08; |
|
132 |
|
133 /** |
|
134 * GPS hardware version of the BT GPS device |
|
135 */ |
|
136 const TUint KBluetoothGpsPsyGpsHwVersion = 0x09; |
|
137 |
|
138 /** |
|
139 * GPS software version of the BT GPS device |
|
140 */ |
|
141 const TUint KBluetoothGpsPsyGpsSwVersion = 0x0a; |
|
142 |
|
143 /** |
|
144 * enum for maximun lenght of versions |
|
145 */ |
|
146 enum { KMaximumVersionLength = 32 }; |
|
147 |
|
148 /** |
|
149 * BT GPS version descriptor defination |
|
150 */ |
|
151 typedef TBuf16<KMaximumVersionLength> TBTGPSVersion; |
|
152 |
|
153 #endif // BTGPSPSYINTERNALPSKEYS_H |
|
154 |
|
155 // End of file |