Debian Codegraph @

src/libqmi-glib/qmi-enums-loc.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * libqmi-glib -- GLib/GIO based library to control QMI devices
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA.
19 *
20 * Copyright (C) 2012 Google Inc.
21 * Copyright (C) 2012-2017 Aleksander Morgado <[email protected]>
22 */
23
24 #ifndef _LIBQMI_GLIB_QMI_ENUMS_LOC_H_
25 #define _LIBQMI_GLIB_QMI_ENUMS_LOC_H_
26
27 #if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
28 #error "Only <libqmi-glib.h> can be included directly."
29 #endif
30
31 /**
32 * SECTION: qmi-enums-loc
33 * @title: LOC enumerations and flags
34 * @short_description: Enumerations and flags in the LOC service.
35 *
36 * This section defines enumerations and flags used in the LOC service
37 * interface.
38 */
39
40 /*****************************************************************************/
41 /* Helper enums for the 'QMI LOC Start' indication */
42
43 /**
44 * QmiLocIntermediateReportState:
45 * @QMI_LOC_INTERMEDIATE_REPORT_STATE_UNKNOWN: Unknown.
46 * @QMI_LOC_INTERMEDIATE_REPORT_STATE_ENABLE: Enable intermediate state reporting.
47 * @QMI_LOC_INTERMEDIATE_REPORT_STATE_DISABLE: Disable intermediate state reporting.
48 *
49 * Whether to enable or disable intermediate state reporting.
50 *
51 * Since: 1.20
52 */
53 typedef enum { /*< since=1.20 >*/
54 QMI_LOC_INTERMEDIATE_REPORT_STATE_UNKNOWN = 0,
55 QMI_LOC_INTERMEDIATE_REPORT_STATE_ENABLE = 1,
56 QMI_LOC_INTERMEDIATE_REPORT_STATE_DISABLE = 2,
57 } QmiLocIntermediateReportState;
58
59 /**
60 * QmiLocIndicationStatus:
61 * @QMI_LOC_INDICATION_STATUS_SUCCESS: Success.
62 * @QMI_LOC_INDICATION_STATUS_GENERAL_FAILURE: General Failure.
63 * @QMI_LOC_INDICATION_STATUS_UNSUPPORTED: Unsupported.
64 * @QMI_LOC_INDICATION_STATUS_INVALID_PARAMETER: Invalid Parameter.
65 * @QMI_LOC_INDICATION_STATUS_ENGINE_BUSY: Engine is busy.
66 * @QMI_LOC_INDICATION_STATUS_PHONE_OFFLINE: Phone is offline.
67 * @QMI_LOC_INDICATION_STATUS_TIMEOUT: Timeout.
68 *
69 * General result of a received indication.
70 *
71 * Since: 1.22
72 */
73 typedef enum { /*< since=1.22 >*/
74 QMI_LOC_INDICATION_STATUS_SUCCESS = 0,
75 QMI_LOC_INDICATION_STATUS_GENERAL_FAILURE = 1,
76 QMI_LOC_INDICATION_STATUS_UNSUPPORTED = 2,
77 QMI_LOC_INDICATION_STATUS_INVALID_PARAMETER = 3,
78 QMI_LOC_INDICATION_STATUS_ENGINE_BUSY = 4,
79 QMI_LOC_INDICATION_STATUS_PHONE_OFFLINE = 5,
80 QMI_LOC_INDICATION_STATUS_TIMEOUT = 6,
81 } QmiLocIndicationStatus;
82
83 /**
84 * QmiLocSessionStatus:
85 * @QMI_LOC_SESSION_STATUS_SUCCESS: Success
86 * @QMI_LOC_SESSION_STATUS_IN_PROGRESS: Operation in Progress.
87 * @QMI_LOC_SESSION_STATUS_GENERAL_FAILURE: General Failure.
88 * @QMI_LOC_SESSION_STATUS_TIMEOUT: Timeout.
89 * @QMI_LOC_SESSION_STATUS_USER_ENDED: User ended.
90 * @QMI_LOC_SESSION_STATUS_BAD_PARAMETER: Bad Parameter.
91 * @QMI_LOC_SESSION_STATUS_PHONE_OFFLINE: Phone is offline.
92 * @QMI_LOC_SESSION_STATUS_ENGINE_LOCKED: Engine is locked.
93 *
94 * Status of a received session indication.
95 *
96 * Since: 1.22
97 */
98 typedef enum { /*< since=1.22 >*/
99 QMI_LOC_SESSION_STATUS_SUCCESS = 0,
100 QMI_LOC_SESSION_STATUS_IN_PROGRESS = 1,
101 QMI_LOC_SESSION_STATUS_GENERAL_FAILURE = 2,
102 QMI_LOC_SESSION_STATUS_TIMEOUT = 3,
103 QMI_LOC_SESSION_STATUS_USER_ENDED = 4,
104 QMI_LOC_SESSION_STATUS_BAD_PARAMETER = 5,
105 QMI_LOC_SESSION_STATUS_PHONE_OFFLINE = 6,
106 QMI_LOC_SESSION_STATUS_ENGINE_LOCKED = 6,
107 } QmiLocSessionStatus;
108
109 /**
110 * QmiLocFixRecurrenceType:
111 * @QMI_LOC_FIX_RECURRENCE_TYPE_REQUEST_PERIODIC_FIXES: Periodic fixes.
112 * @QMI_LOC_FIX_RECURRENCE_TYPE_REQUEST_SINGLE_FIX: Single fix.
113 *
114 * Whether to request a single or periodic fixes.
115 *
116 * Since: 1.22
117 */
118 typedef enum { /*< since=1.22 >*/
119 QMI_LOC_FIX_RECURRENCE_TYPE_REQUEST_PERIODIC_FIXES = 1,
120 QMI_LOC_FIX_RECURRENCE_TYPE_REQUEST_SINGLE_FIX = 2,
121 } QmiLocFixRecurrenceType;
122
123 /**
124 * QmiLocOperationMode:
125 * @QMI_LOC_OPERATION_MODE_DEFAULT: Default.
126 * @QMI_LOC_OPERATION_MODE_MSB: Mobile Station Based (MSB) A-GPS.
127 * @QMI_LOC_OPERATION_MODE_MSA: Mobile Station Assisted (MSA) A-GPS.
128 * @QMI_LOC_OPERATION_MODE_STANDALONE: Standalone.
129 * @QMI_LOC_OPERATION_MODE_CELLID: Cell ID.
130 * @QMI_LOC_OPERATION_MODE_WWAN: WWAN.
131 *
132 * Which operation mode to use.
133 *
134 * Since: 1.22
135 */
136 typedef enum { /*< since=1.22 >*/
137 QMI_LOC_OPERATION_MODE_DEFAULT = 1,
138 QMI_LOC_OPERATION_MODE_MSB = 2,
139 QMI_LOC_OPERATION_MODE_MSA = 3,
140 QMI_LOC_OPERATION_MODE_STANDALONE = 4,
141 QMI_LOC_OPERATION_MODE_CELLID = 5,
142 QMI_LOC_OPERATION_MODE_WWAN = 6,
143 } QmiLocOperationMode;
144
145 /**
146 * QmiLocEngineState:
147 * @QMI_LOC_ENGINE_STATE_ON: On.
148 * @QMI_LOC_ENGINE_STATE_OFF: Off.
149 *
150 * State of the engine.
151 *
152 * Since: 1.22
153 */
154 typedef enum { /*< since=1.22 >*/
155 QMI_LOC_ENGINE_STATE_ON = 1,
156 QMI_LOC_ENGINE_STATE_OFF = 2,
157 } QmiLocEngineState;
158
159 /**
160 * QmiLocTechnologyUsed:
161 * @QMI_LOC_TECHNOLOGY_USED_SATELLITE: Satellite.
162 * @QMI_LOC_TECHNOLOGY_USED_CELLULAR: Cellular.
163 * @QMI_LOC_TECHNOLOGY_USED_WIFI: WiFi.
164 * @QMI_LOC_TECHNOLOGY_USED_SENSORS: Sensors.
165 * @QMI_LOC_TECHNOLOGY_USED_REFERENCE_LOCATION: Reference Location.
166 * @QMI_LOC_TECHNOLOGY_USED_INJECTED_POSITION: Injected Position.
167 * @QMI_LOC_TECHNOLOGY_USED_AFLT: AFLT (Advanced Forward Link Trilateration).
168 * @QMI_LOC_TECHNOLOGY_USED_HYBRID: Hybrid.
169 *
170 * Which technology has been used.
171 *
172 * Since: 1.22
173 */
174 typedef enum { /*< since=1.22 >*/
175 QMI_LOC_TECHNOLOGY_USED_SATELLITE = 1 << 0,
176 QMI_LOC_TECHNOLOGY_USED_CELLULAR = 1 << 1,
177 QMI_LOC_TECHNOLOGY_USED_WIFI = 1 << 2,
178 QMI_LOC_TECHNOLOGY_USED_SENSORS = 1 << 3,
179 QMI_LOC_TECHNOLOGY_USED_REFERENCE_LOCATION = 1 << 4,
180 QMI_LOC_TECHNOLOGY_USED_INJECTED_POSITION = 1 << 5,
181 QMI_LOC_TECHNOLOGY_USED_AFLT = 1 << 6,
182 QMI_LOC_TECHNOLOGY_USED_HYBRID = 1 << 7,
183 } QmiLocTechnologyUsed;
184
185 /**
186 * QmiLocReliability:
187 * @QMI_LOC_RELIABILITY_NOT_SET: Not set.
188 * @QMI_LOC_RELIABILITY_VERY_LOW: Very low.
189 * @QMI_LOC_RELIABILITY_LOW: Low.
190 * @QMI_LOC_RELIABILITY_MEDIUM: Medium.
191 * @QMI_LOC_RELIABILITY_HIGH: High.
192 *
193 * Reliability of the provided information.
194 *
195 * Since: 1.22
196 */
197 typedef enum { /*< since=1.22 >*/
198 QMI_LOC_RELIABILITY_NOT_SET = 0,
199 QMI_LOC_RELIABILITY_VERY_LOW = 1,
200 QMI_LOC_RELIABILITY_LOW = 2,
201 QMI_LOC_RELIABILITY_MEDIUM = 3,
202 QMI_LOC_RELIABILITY_HIGH = 4,
203 } QmiLocReliability;
204
205 /**
206 * QmiLocTimeSource:
207 * @QMI_LOC_TIME_SOURCE_INVALID: Invalid.
208 * @QMI_LOC_TIME_SOURCE_NETWORK_TIME_TRANSFER: Time is set by the 1X system.
209 * @QMI_LOC_TIME_SOURCE_NETWORK_TIME_TAGGING: Time is set by WCDMA/GSM time tagging.
210 * @QMI_LOC_TIME_SOURCE_EXTERNAL_INPUT: Time set by external injection.
211 * @QMI_LOC_TIME_SOURCE_TOW_DECODE: Time is set after decoding over-the-air GPS navigation data from one GPS satellite.
212 * @QMI_LOC_TIME_SOURCE_TOW_CONFIRMED: Time is set after decoding over-the-air GPS navigation data from multiple satellites.
213 * @QMI_LOC_TIME_SOURCE_TOW_AND_WEEK_CONFIRMED: Both time of the week and GPS week number are known.
214 * @QMI_LOC_TIME_SOURCE_NAVIGATION_SOLUTION: Time is set by the position engine after the fix is obtained.
215 * @QMI_LOC_TIME_SOURCE_SOLVE_FOR_TIME: Time is set by the position engine after performing SFT.
216 * @QMI_LOC_TIME_SOURCE_GLO_TOW_DECODE: Time is set after decoding QZSS satellites.
217 * @QMI_LOC_TIME_SOURCE_TIME_TRANSFORM: Time is set after transforming the GPS to GLO time.
218 * @QMI_LOC_TIME_SOURCE_WCDMA_SLEEP_TIME_TAG: Time is set by the sleep time tag provided by the WCDMA network.
219 * @QMI_LOC_TIME_SOURCE_GSM_SLEEP_TIME_TAG: Time is set by the sleep time tag provided by the GSM network.
220 * @QMI_LOC_TIME_SOURCE_UNKNOWN: Unknown.
221 * @QMI_LOC_TIME_SOURCE_SYSTEM_TIMETICK: Time is derived from the system clock.
222 * @QMI_LOC_TIME_SOURCE_QZSS_TOW_DECODE: Time set after decoding QZSS satellites.
223 * @QMI_LOC_TIME_SOURCE_BDS_TOW_DECODE: Time set after decoding BDS satellites.
224 *
225 * Source of the used time.
226 *
227 * Since: 1.22
228 */
229 typedef enum { /*< since=1.22 >*/
230 QMI_LOC_TIME_SOURCE_INVALID = 0,
231 QMI_LOC_TIME_SOURCE_NETWORK_TIME_TRANSFER = 1,
232 QMI_LOC_TIME_SOURCE_NETWORK_TIME_TAGGING = 2,
233 QMI_LOC_TIME_SOURCE_EXTERNAL_INPUT = 3,
234 QMI_LOC_TIME_SOURCE_TOW_DECODE = 4,
235 QMI_LOC_TIME_SOURCE_TOW_CONFIRMED = 5,
236 QMI_LOC_TIME_SOURCE_TOW_AND_WEEK_CONFIRMED = 6,
237 QMI_LOC_TIME_SOURCE_NAVIGATION_SOLUTION = 7,
238 QMI_LOC_TIME_SOURCE_SOLVE_FOR_TIME = 8,
239 QMI_LOC_TIME_SOURCE_GLO_TOW_DECODE = 9,
240 QMI_LOC_TIME_SOURCE_TIME_TRANSFORM = 10,
241 QMI_LOC_TIME_SOURCE_WCDMA_SLEEP_TIME_TAG = 11,
242 QMI_LOC_TIME_SOURCE_GSM_SLEEP_TIME_TAG = 12,
243 QMI_LOC_TIME_SOURCE_UNKNOWN = 13,
244 QMI_LOC_TIME_SOURCE_SYSTEM_TIMETICK = 14,
245 QMI_LOC_TIME_SOURCE_QZSS_TOW_DECODE = 15,
246 QMI_LOC_TIME_SOURCE_BDS_TOW_DECODE = 16,
247 } QmiLocTimeSource;
248
249 /**
250 * QmiLocSatelliteValidInformation:
251 * @QMI_LOC_SATELLITE_VALID_INFORMATION_SYSTEM: System,
252 * @QMI_LOC_SATELLITE_VALID_INFORMATION_GNSS_SATELLITE_ID: GNSS Satellite ID.
253 * @QMI_LOC_SATELLITE_VALID_INFORMATION_HEALTH_STATUS: Health status.
254 * @QMI_LOC_SATELLITE_VALID_INFORMATION_PROCESS_STATUS: Process status.
255 * @QMI_LOC_SATELLITE_VALID_INFORMATION_SATELLITE_INFO_MASK: Satellite info mask.
256 * @QMI_LOC_SATELLITE_VALID_INFORMATION_ELEVATION: Elevation.
257 * @QMI_LOC_SATELLITE_VALID_INFORMATION_AZIMUTH: Azimuth.
258 * @QMI_LOC_SATELLITE_VALID_INFORMATION_SIGNAL_TO_NOISE_RATIO: Signal to noise ratio.
259 *
260 * Which information about the satellite is valid.
261 *
262 * Since: 1.22
263 */
264 typedef enum { /*< since=1.22 >*/
265 QMI_LOC_SATELLITE_VALID_INFORMATION_SYSTEM = 1 << 0,
266 QMI_LOC_SATELLITE_VALID_INFORMATION_GNSS_SATELLITE_ID = 1 << 1,
267 QMI_LOC_SATELLITE_VALID_INFORMATION_HEALTH_STATUS = 1 << 2,
268 QMI_LOC_SATELLITE_VALID_INFORMATION_PROCESS_STATUS = 1 << 3,
269 QMI_LOC_SATELLITE_VALID_INFORMATION_SATELLITE_INFO_MASK = 1 << 4,
270 QMI_LOC_SATELLITE_VALID_INFORMATION_ELEVATION = 1 << 5,
271 QMI_LOC_SATELLITE_VALID_INFORMATION_AZIMUTH = 1 << 6,
272 QMI_LOC_SATELLITE_VALID_INFORMATION_SIGNAL_TO_NOISE_RATIO = 1 << 7,
273 } QmiLocSatelliteValidInformation;
274
275 /**
276 * QmiLocSystem:
277 * @QMI_LOC_SYSTEM_GPS: GPS.
278 * @QMI_LOC_SYSTEM_GALILEO: Galileo.
279 * @QMI_LOC_SYSTEM_SBAS: SBAS.
280 * @QMI_LOC_SYSTEM_COMPASS: COMPASS (BeiDou).
281 * @QMI_LOC_SYSTEM_GLONASS: GLONASS.
282 *
283 * Which location system a satellite is part of.
284 *
285 * Since: 1.22
286 */
287 typedef enum { /*< since=1.22 >*/
288 QMI_LOC_SYSTEM_GPS = 1,
289 QMI_LOC_SYSTEM_GALILEO = 2,
290 QMI_LOC_SYSTEM_SBAS = 3,
291 QMI_LOC_SYSTEM_COMPASS = 4,
292 QMI_LOC_SYSTEM_GLONASS = 5,
293 } QmiLocSystem;
294
295 /**
296 * QmiLocHealthStatus:
297 * @QMI_LOC_HEALTH_STATUS_UNHEALTHY: Unhealthy.
298 * @QMI_LOC_HEALTH_STATUS_HEALTHY: Healthy.
299 *
300 * Whether a satellite is healthy or unhealthy.
301 *
302 * Since: 1.22
303 */
304 typedef enum { /*< since=1.22 >*/
305 QMI_LOC_HEALTH_STATUS_UNHEALTHY = 0,
306 QMI_LOC_HEALTH_STATUS_HEALTHY = 1,
307 } QmiLocHealthStatus;
308
309 /**
310 * QmiLocNavigationData:
311 * @QMI_LOC_NAVIGATION_DATA_HAS_EPHEMERIS: Has ephemeris.
312 * @QMI_LOC_NAVIGATION_DATA_HAS_ALMANAC: Has almanac.
313 *
314 * Whether the ephemeris or almanac exist for a satellite.
315 *
316 * Since: 1.22
317 */
318 typedef enum { /*< since=1.22 >*/
319 QMI_LOC_NAVIGATION_DATA_HAS_EPHEMERIS = 0,
320 QMI_LOC_NAVIGATION_DATA_HAS_ALMANAC = 1,
321 } QmiLocNavigationData;
322
323 /**
324 * QmiLocSatelliteStatus:
325 * @QMI_LOC_SATELLITE_STATUS_IDLE: Idle.
326 * @QMI_LOC_SATELLITE_STATUS_SEARCHING: Searching.
327 * @QMI_LOC_SATELLITE_STATUS_TRACKING: Tracking.
328 *
329 * Whether the engine searches or tracks a satellite.
330 *
331 * Since: 1.22
332 */
333 typedef enum { /*< since=1.22 >*/
334 QMI_LOC_SATELLITE_STATUS_IDLE = 0,
335 QMI_LOC_SATELLITE_STATUS_SEARCHING = 1,
336 QMI_LOC_SATELLITE_STATUS_TRACKING = 2,
337 } QmiLocSatelliteStatus;
338
339 /**
340 * QmiLocServerType:
341 * @QMI_LOC_SERVER_TYPE_UNKNOWN: Unknown.
342 * @QMI_LOC_SERVER_TYPE_CDMA_PDE: CDMA Position Determining System.
343 * @QMI_LOC_SERVER_TYPE_CDMA_MPC: CDMA Mobile Positioning Center.
344 * @QMI_LOC_SERVER_TYPE_UMTS_SLP: SUPL Location Platform.
345 * @QMI_LOC_SERVER_TYPE_CUSTOM_PDE: Custom position determining system.
346 *
347 * Server type for Assisted-GPS.
348 *
349 * Since: 1.22
350 */
351 typedef enum { /*< since=1.22 >*/
352 QMI_LOC_SERVER_TYPE_UNKNOWN = 0,
353 QMI_LOC_SERVER_TYPE_CDMA_PDE = 1,
354 QMI_LOC_SERVER_TYPE_CDMA_MPC = 2,
355 QMI_LOC_SERVER_TYPE_UMTS_SLP = 3,
356 QMI_LOC_SERVER_TYPE_CUSTOM_PDE = 4,
357 } QmiLocServerType;
358
359 /**
360 * QmiLocServerAddressType:
361 * @QMI_LOC_SERVER_ADDRESS_TYPE_NONE: None.
362 * @QMI_LOC_SERVER_ADDRESS_TYPE_IPV4: IPv4 server address.
363 * @QMI_LOC_SERVER_ADDRESS_TYPE_IPV6: IPv6 server address.
364 * @QMI_LOC_SERVER_ADDRESS_TYPE_URL: URL server address.
365 *
366 * Type of server address for Assisted-GPS.
367 *
368 * Since: 1.22
369 */
370 typedef enum { /*< since=1.22 >*/
371 QMI_LOC_SERVER_ADDRESS_TYPE_NONE = 0,
372 QMI_LOC_SERVER_ADDRESS_TYPE_IPV4 = 1 << 0,
373 QMI_LOC_SERVER_ADDRESS_TYPE_IPV6 = 1 << 1,
374 QMI_LOC_SERVER_ADDRESS_TYPE_URL = 1 << 2,
375 } QmiLocServerAddressType;
376
377 /**
378 * QmiLocPredictedOrbitsDataFormat:
379 * @QMI_LOC_PREDICTED_ORBITS_DATA_FORMAT_XTRA: Qualcomm XTRA database.
380 *
381 * Type of predicted orbits data.
382 *
383 * Since: 1.22
384 */
385 typedef enum { /*< since=1.22 >*/
386 QMI_LOC_PREDICTED_ORBITS_DATA_FORMAT_XTRA = 0
387 } QmiLocPredictedOrbitsDataFormat;
388
389 /**
390 * QmiLocDeleteSvInfo:
391 * @QMI_LOC_DELETE_SV_INFO_EPHEMERIS: Ephemeris.
392 * @QMI_LOC_DELETE_SV_INFO_ALMANAC: Almanac.
393 *
394 * Type of data to delete for a given satellite.
395 *
396 * Since: 1.22
397 */
398 typedef enum { /*< since=1.22 >*/
399 QMI_LOC_DELETE_SV_INFO_EPHEMERIS = 1 << 0,
400 QMI_LOC_DELETE_SV_INFO_ALMANAC = 1 << 1,
401 } QmiLocDeleteSvInfo;
402
403 /**
404 * QmiLocDeleteCellDatabase:
405 * @QMI_LOC_DELETE_CELL_DATABASE_POS: Position.
406 * @QMI_LOC_DELETE_CELL_DATABASE_LATEST_GPS_POS: Latest GPS position.
407 * @QMI_LOC_DELETE_CELL_DATABASE_OTA_POS: OTA position.
408 * @QMI_LOC_DELETE_CELL_DATABASE_EXT_REF_POS: External reference position.
409 * @QMI_LOC_DELETE_CELL_DATABASE_TIMETAG: Timetag.
410 * @QMI_LOC_DELETE_CELL_DATABASE_CELLID: Cell ID.
411 * @QMI_LOC_DELETE_CELL_DATABASE_CACHED_CELLID: Cached cell ID.
412 * @QMI_LOC_DELETE_CELL_DATABASE_LAST_SRV_CELL: Last serving cell.
413 * @QMI_LOC_DELETE_CELL_DATABASE_CUR_SRV_CELL: Current servince cell.
414 * @QMI_LOC_DELETE_CELL_DATABASE_NEIGHBOR_INFO: Neighboring cell info.
415 *
416 * Type of data to delete from the cell database.
417 *
418 * Since: 1.22
419 */
420 typedef enum { /*< since=1.22 >*/
421 QMI_LOC_DELETE_CELL_DATABASE_POS = 1 << 0,
422 QMI_LOC_DELETE_CELL_DATABASE_LATEST_GPS_POS = 1 << 1,
423 QMI_LOC_DELETE_CELL_DATABASE_OTA_POS = 1 << 2,
424 QMI_LOC_DELETE_CELL_DATABASE_EXT_REF_POS = 1 << 3,
425 QMI_LOC_DELETE_CELL_DATABASE_TIMETAG = 1 << 4,
426 QMI_LOC_DELETE_CELL_DATABASE_CELLID = 1 << 5,
427 QMI_LOC_DELETE_CELL_DATABASE_CACHED_CELLID = 1 << 6,
428 QMI_LOC_DELETE_CELL_DATABASE_LAST_SRV_CELL = 1 << 7,
429 QMI_LOC_DELETE_CELL_DATABASE_CUR_SRV_CELL = 1 << 8,
430 QMI_LOC_DELETE_CELL_DATABASE_NEIGHBOR_INFO = 1 << 9,
431 } QmiLocDeleteCellDatabase;
432
433 /**
434 * QmiLocDeleteClockInfo:
435 * @QMI_LOC_DELETE_CLOCK_INFO_TIME_EST: Time estimation.
436 * @QMI_LOC_DELETE_CLOCK_INFO_FREQ_EST: Frequency estimation.
437 * @QMI_LOC_DELETE_CLOCK_INFO_WEEK_NUMBER: Week number.
438 * @QMI_LOC_DELETE_CLOCK_INFO_RTC_TIME: RTC time.
439 * @QMI_LOC_DELETE_CLOCK_INFO_TIME_TRANSFER: Time transfer.
440 * @QMI_LOC_DELETE_CLOCK_INFO_GPS_TIME_EST: GPS time estimation.
441 * @QMI_LOC_DELETE_CLOCK_INFO_GLO_TIME_EST: GLONASS time estimation.
442 * @QMI_LOC_DELETE_CLOCK_INFO_GLO_DAY_NUMBER: GLONASS day number.
443 * @QMI_LOC_DELETE_CLOCK_INFO_GLO_YEAR_NUMBER: GLONASS year number.
444 * @QMI_LOC_DELETE_CLOCK_INFO_GLO_RF_GRP_DELAY: GLONASS RF group delay.
445 * @QMI_LOC_DELETE_CLOCK_INFO_DISABLE_TT: Disable TT.
446 *
447 * Type of data to delete from the clock information.
448 *
449 * Since: 1.22
450 */
451 typedef enum { /*< since=1.22 >*/
452 QMI_LOC_DELETE_CLOCK_INFO_TIME_EST = 1 << 0,
453 QMI_LOC_DELETE_CLOCK_INFO_FREQ_EST = 1 << 1,
454 QMI_LOC_DELETE_CLOCK_INFO_WEEK_NUMBER = 1 << 2,
455 QMI_LOC_DELETE_CLOCK_INFO_RTC_TIME = 1 << 3,
456 QMI_LOC_DELETE_CLOCK_INFO_TIME_TRANSFER = 1 << 4,
457 QMI_LOC_DELETE_CLOCK_INFO_GPS_TIME_EST = 1 << 5,
458 QMI_LOC_DELETE_CLOCK_INFO_GLO_TIME_EST = 1 << 6,
459 QMI_LOC_DELETE_CLOCK_INFO_GLO_DAY_NUMBER = 1 << 7,
460 QMI_LOC_DELETE_CLOCK_INFO_GLO_YEAR_NUMBER = 1 << 8,
461 QMI_LOC_DELETE_CLOCK_INFO_GLO_RF_GRP_DELAY = 1 << 9,
462 QMI_LOC_DELETE_CLOCK_INFO_DISABLE_TT = 1 << 10,
463 } QmiLocDeleteClockInfo;
464
465 /**
466 * QmiLocNmeaType:
467 * @QMI_LOC_NMEA_TYPE_GGA: Enable GGA traces.
468 * @QMI_LOC_NMEA_TYPE_RMC: Enable RMC traces.
469 * @QMI_LOC_NMEA_TYPE_GSV: Enable GSV traces.
470 * @QMI_LOC_NMEA_TYPE_GSA: Enable GSA traces.
471 * @QMI_LOC_NMEA_TYPE_VTG: Enable VTG traces.
472 * @QMI_LOC_NMEA_TYPE_PQXFI: Enable PQXFI traces.
473 * @QMI_LOC_NMEA_TYPE_PSTIS: Enable PSTIS traces.
474 * @QMI_LOC_NMEA_TYPE_ALL: Enable all supported trace types.
475 *
476 * NMEA trace types that may be enabled in the GNSS engine.
477 *
478 * Since: 1.26
479 */
480 typedef enum { /*< since=1.26 >*/
481 QMI_LOC_NMEA_TYPE_GGA = 1 << 0,
482 QMI_LOC_NMEA_TYPE_RMC = 1 << 1,
483 QMI_LOC_NMEA_TYPE_GSV = 1 << 2,
484 QMI_LOC_NMEA_TYPE_GSA = 1 << 3,
485 QMI_LOC_NMEA_TYPE_VTG = 1 << 4,
486 QMI_LOC_NMEA_TYPE_PQXFI = 1 << 5,
487 QMI_LOC_NMEA_TYPE_PSTIS = 1 << 6,
488 QMI_LOC_NMEA_TYPE_ALL = 0x0000FFFF,
489 } QmiLocNmeaType;
490
491 /**
492 * QmiLocLockType:
493 * @QMI_LOC_LOCK_TYPE_NONE: Do not lock any position sessions.
494 * @QMI_LOC_LOCK_TYPE_MI: Lock mobile-initiated position sessions.
495 * @QMI_LOC_LOCK_TYPE_MT: Lock mobile-terminated position sessions.
496 * @QMI_LOC_LOCK_TYPE_ALL: Lock all position sessions.
497 *
498 * Location engine lock type.
499 *
500 * Since: 1.28
501 */
502 typedef enum { /*< since=1.28 >*/
503 QMI_LOC_LOCK_TYPE_NONE = 1,
504 QMI_LOC_LOCK_TYPE_MI = 2,
505 QMI_LOC_LOCK_TYPE_MT = 3,
506 QMI_LOC_LOCK_TYPE_ALL = 4,
507 } QmiLocLockType;
508
509
510 /**
511 * QmiLocAltitudeSource:
512 * @QMI_LOC_ALTITUDE_SOURCE_UNKNOWN: Altitude source is unknown.
513 * @QMI_LOC_ALTITUDE_SOURCE_GPS: Altitude is determined by GPS.
514 * @QMI_LOC_ALTITUDE_SOURCE_CELL_ID: Altitude determined based on cell id.
515 * @QMI_LOC_ALTITUDE_SOURCE_ENHANCED_CELL_ID: Altitude determined based on enchanced information about cell id.
516 * @QMI_LOC_ALTITUDE_SOURCE_WIFI: Altitude determined by available WiFi networks.
517 * @QMI_LOC_ALTITUDE_SOURCE_TERRESTRIAL: Terrestrial source of altitude.
518 * @QMI_LOC_ALTITUDE_SOURCE_TERRESTRIAL_HYBRID: Hybrid terrestrial source of altitude.
519 * @QMI_LOC_ALTITUDE_SOURCE_ALTITUDE_DATABASE: Altitude database is used as a source for altitude.
520 * @QMI_LOC_ALTITUDE_SOURCE_BAROMETRIC_ALTIMETER: Altitude determined using barometric altimeter.
521 * @QMI_LOC_ALTITUDE_SOURCE_OTHER: Altitude determined using other sources.
522 *
523 * Source of the used altitude.
524 *
525 * Since: 1.37
526 */
527 typedef enum { /*< since=1.37 >*/
528 QMI_LOC_ALTITUDE_SOURCE_UNKNOWN = 0,
529 QMI_LOC_ALTITUDE_SOURCE_GPS = 1,
530 QMI_LOC_ALTITUDE_SOURCE_CELL_ID = 2,
531 QMI_LOC_ALTITUDE_SOURCE_ENHANCED_CELL_ID = 3,
532 QMI_LOC_ALTITUDE_SOURCE_WIFI = 4,
533 QMI_LOC_ALTITUDE_SOURCE_TERRESTRIAL = 5,
534 QMI_LOC_ALTITUDE_SOURCE_TERRESTRIAL_HYBRID = 6,
535 QMI_LOC_ALTITUDE_SOURCE_ALTITUDE_DATABASE = 7,
536 QMI_LOC_ALTITUDE_SOURCE_BAROMETRIC_ALTIMETER = 8,
537 QMI_LOC_ALTITUDE_SOURCE_OTHER = 9,
538 } QmiLocAltitudeSource;
539
540 /**
541 * QmiLocAltitudeDependency:
542 * @QMI_LOC_ALTITUDE_DEPENDENCY_UNKNOWN: Unknown.
543 * @QMI_LOC_ALTITUDE_DEPENDENCY_FULLY_INTERDEPENDENT: Fully interdependent.
544 * @QMI_LOC_ALTITUDE_DEPENDENCY_ON_LAT_LON: Altitude depends on latitude and longitude.
545 * @QMI_LOC_ALTITUDE_DEPENDENCY_FULLY_INDEPENDENT: Altitude is fully independent.
546 *
547 * Dependency between the horizontal and altitude position components.
548 *
549 * Since: 1.37
550 */
551 typedef enum { /*< since=1.37 >*/
552 QMI_LOC_ALTITUDE_DEPENDENCY_UNKNOWN = 0,
553 QMI_LOC_ALTITUDE_DEPENDENCY_FULLY_INTERDEPENDENT = 1,
554 QMI_LOC_ALTITUDE_DEPENDENCY_ON_LAT_LON = 2,
555 QMI_LOC_ALTITUDE_DEPENDENCY_FULLY_INDEPENDENT = 3,
556 } QmiLocAltitudeDependency;
557
558
559 /**
560 * QmiLocAltitudeUncertainty:
561 * @QMI_LOC_ALTITUDE_UNCERTAINTY_UNKNOWN: Unknown.
562 * @QMI_LOC_ALTITUDE_UNCERTAINTY_POINT: Uncertainty is valid at the injected horizontal position coordinates only.
563 * @QMI_LOC_ALTITUDE_UNCERTAINTY_FULL: Uncertainty applies to the position of the device regardless of horizontal position.
564 *
565 * Region of uncertainty.
566 *
567 * Since: 1.37
568 */
569 typedef enum { /*< since=1.37 >*/
570 QMI_LOC_ALTITUDE_UNCERTAINTY_UNKNOWN = 0,
571 QMI_LOC_ALTITUDE_UNCERTAINTY_POINT = 1,
572 QMI_LOC_ALTITUDE_UNCERTAINTY_FULL = 2,
573 } QmiLocAltitudeUncertainty;
574
575
576 /**
577 * QmiLocPositionSource:
578 * @QMI_LOC_POSITION_SOURCE_GNSS: Position source is GNSS.
579 * @QMI_LOC_POSITION_SOURCE_CELL_ID: Position is based on Cell ID.
580 * @QMI_LOC_POSITION_SOURCE_ENHANCED_CELL_ID: Position is based on enhaced information about Cell ID.
581 * @QMI_LOC_POSITION_SOURCE_WIFI: Position is based on available WiFi networks.
582 * @QMI_LOC_POSITION_SOURCE_TERRESTRIAL: Position source is terrestrial.
583 * @QMI_LOC_POSITION_SOURCE_GNSS_TERRESTRIAL_HYBRID: Position source is GNSS terrestrial hybrid.
584 * @QMI_LOC_POSITION_SOURCE_OTHER: Other sources of position information.
585 * @QMI_LOC_POSITION_SOURCE_DRE: Position source is the Dead Reckoning Engine.
586 * @QMI_LOC_POSITION_SOURCE_FLP: Position source is Fused Location Provider.
587 * @QMI_LOC_POSITION_SOURCE_NLP: Position source is Network Location Provider.
588 * @QMI_LOC_POSITION_SOURCE_FLP_ALE: Position source is derived from Fused Location Provider - Android Location Engine.
589 *
590 * Source from which this position was obtained.
591 * If altitude is specified and the altitude source is not specified, the engine
592 * assumes that the altitude was obtained using the specified position source.
593 * If both altitude and altitude source are specified, the engine assumes
594 * that only latitude and longitude were obtained using the specified position
595 * source.
596 *
597 * Since: 1.37
598 */
599 typedef enum { /*< since=1.37 >*/
600 QMI_LOC_POSITION_SOURCE_GNSS = 0,
601 QMI_LOC_POSITION_SOURCE_CELL_ID = 1,
602 QMI_LOC_POSITION_SOURCE_ENHANCED_CELL_ID = 2,
603 QMI_LOC_POSITION_SOURCE_WIFI = 3,
604 QMI_LOC_POSITION_SOURCE_TERRESTRIAL = 4,
605 QMI_LOC_POSITION_SOURCE_GNSS_TERRESTRIAL_HYBRID = 5,
606 QMI_LOC_POSITION_SOURCE_OTHER = 6,
607 QMI_LOC_POSITION_SOURCE_DRE = 7,
608 QMI_LOC_POSITION_SOURCE_FLP = 8,
609 QMI_LOC_POSITION_SOURCE_NLP = 9,
610 QMI_LOC_POSITION_SOURCE_FLP_ALE = 10,
611 } QmiLocPositionSource;
612
613
614 /**
615 * QmiLocPositionSourceProvider:
616 * @QMI_LOC_POSITION_SOURCE_PROVIDER_EXTERNAL: Position is sourced from an external module.
617 * @QMI_LOC_POSITION_SOURCE_PROVIDER_INTERNAL: Position is sourced from an internal module.
618 *
619 * Source provider from which this position was obtained.
620 *
621 * Since: 1.37
622 */
623 typedef enum { /*< since=1.37 >*/
624 QMI_LOC_POSITION_SOURCE_PROVIDER_EXTERNAL = 0,
625 QMI_LOC_POSITION_SOURCE_PROVIDER_INTERNAL = 1,
626 } QmiLocPositionSourceProvider;
627
628
629 /**
630 * QmiLocInjectedOrbitServerParamUpdate:
631 * @QMI_LOC_PREDICTED_ORBITS_INJECT_REQUEST: Request for injection of predicted orbits.
632 * @QMI_LOC_PREDICTED_ORBITS_SERVER_UPDATE: Update server list.
633 * @QMI_LOC_PREDICTED_ORBITS_REFRESH_UPDATE_RATE: Refresh periodicity of injection.
634 *
635 * Bits indicating parameters updated in server request of predicted orbits data.
636 *
637 * Since: 1.37
638 */
639 typedef enum { /*< since=1.37 >*/
640 QMI_LOC_PREDICTED_ORBITS_INJECT_REQUEST = 1 << 0,
641 QMI_LOC_PREDICTED_ORBITS_SERVER_UPDATE = 1 << 1,
642 QMI_LOC_PREDICTED_ORBITS_REFRESH_UPDATE_RATE = 1 << 2,
643 } QmiLocInjectedOrbitServerParamUpdate;
644
645 /**
646 * QmiLocInjectedOrbitUpdateType:
647 * @QMI_LOC_INJECTED_ORBIT_RATE_UPDATE: Injected orbit rate update.
648 * @QMI_LOC_INTEGRITY_RATE_UPDATE: Integrity rate update.
649 *
650 * Data type for which rate is being updated.
651 *
652 * Since: 1.37
653 */
654 typedef enum { /*< since=1.37 >*/
655 QMI_LOC_INJECTED_ORBIT_RATE_UPDATE = 1,
656 QMI_LOC_INTEGRITY_RATE_UPDATE = 2,
657 } QmiLocInjectedOrbitUpdateType;
658
659 /**
660 * QmiLocInjectedOrbitFileType:
661 * @QMI_LOC_INJECTED_ORBIT_FILE_XTRA: xtra assistance file.
662 * @QMI_LOC_INJECTED_ORBIT_FILE_NAVIC: Navic xtra assistance file
663 *
664 * Assistance file type
665 *
666 * Since: 1.37
667 */
668 typedef enum { /*< since=1.37 >*/
669 QMI_LOC_INJECTED_ORBIT_FILE_XTRA = 1,
670 QMI_LOC_INJECTED_ORBIT_FILE_NAVIC = 2,
671 } QmiLocInjectedOrbitFileType;
672
673
674 /**
675 * QmiLocInjectedTimeSource:
676 * QMI_LOC_INJECTED_TIME_SOURCE_UNKNOWN: unknown origin
677 * QMI_LOC_INJECTED_TIME_SOURCE_AP: AP-based time injection
678 * QMI_LOC_INJECTED_TIME_SOURCE_NTP: Network time protocol
679 * QMI_LOC_INJECTED_TIME_SOURCE_NTS: Network time security
680 *
681 * Specifies source of the coarse time
682 *
683 * Since: 1.37
684 */
685 typedef enum { /*< since=1.37 >*/
686 QMI_LOC_INJECTED_TIME_SOURCE_UNKNOWN = 0,
687 QMI_LOC_INJECTED_TIME_SOURCE_AP = 1,
688 QMI_LOC_INJECTED_TIME_SOURCE_NTP = 2,
689 QMI_LOC_INJECTED_TIME_SOURCE_NTS = 3,
690 } QmiLocInjectedTimeSource;
691
692 #endif /* _LIBQMI_GLIB_QMI_ENUMS_LOC_H_ */