Debian Codegraph @

src/libqmi-glib/qmi-enums-pbm.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_PBM_H_
25 #define _LIBQMI_GLIB_QMI_ENUMS_PBM_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-pbm
33 * @title: PBM enumerations and flags
34 * @short_description: Enumerations and flags in the PBM service.
35 *
36 * This section defines enumerations and flags used in the PBM service
37 * interface.
38 */
39
40 /*****************************************************************************/
41 /* Helper enums for the 'QMI PBM Indication Register' indication */
42
43 /**
44 * QmiPbmEventRegistrationFlag:
45 * @QMI_PBM_EVENT_REGISTRATION_FLAG_RECORD_UPDATE: Request indications when records are added/edited/deleted.
46 * @QMI_PBM_EVENT_REGISTRATION_FLAG_PHONEBOOK_READY: Request indications when phonebooks are ready.
47 * @QMI_PBM_EVENT_REGISTRATION_FLAG_EMERGENCY_NUMBER_LIST: Request indications when emergency numbers are changed.
48 * @QMI_PBM_EVENT_REGISTRATION_FLAG_HIDDEN_RECORD_STATUS: Request indications when hidden record status is changed.
49 * @QMI_PBM_EVENT_REGISTRATION_FLAG_AAS_UPDATE: Request indications when Additional number Alpha String records are added/edited/deleted.
50 * @QMI_PBM_EVENT_REGISTRATION_FLAG_GAS_UPDATE: Request indications when Grouping information Alpha String records are added/edited/deleted.
51 *
52 * Flags to use to register to phonebook indications.
53 *
54 * Since: 1.6
55 */
56 typedef enum { /*< since=1.6 >*/
57 QMI_PBM_EVENT_REGISTRATION_FLAG_RECORD_UPDATE = 1 << 0,
58 QMI_PBM_EVENT_REGISTRATION_FLAG_PHONEBOOK_READY = 1 << 1,
59 QMI_PBM_EVENT_REGISTRATION_FLAG_EMERGENCY_NUMBER_LIST = 1 << 2,
60 QMI_PBM_EVENT_REGISTRATION_FLAG_HIDDEN_RECORD_STATUS = 1 << 3,
61 QMI_PBM_EVENT_REGISTRATION_FLAG_AAS_UPDATE = 1 << 4,
62 QMI_PBM_EVENT_REGISTRATION_FLAG_GAS_UPDATE = 1 << 5,
63 } QmiPbmEventRegistrationFlag;
64
65 /*****************************************************************************/
66 /* Helper enums for the 'Get Capabilities' request */
67
68 /**
69 * QmiPbmPhonebookType:
70 * @QMI_PBM_PHONEBOOK_TYPE_ADN: Abbreviated Dialing Number.
71 * @QMI_PBM_PHONEBOOK_TYPE_FDN: Fixed Dialing Number.
72 * @QMI_PBM_PHONEBOOK_TYPE_MSISDN: Mobile Subscriber Integrated Services Digital Network.
73 * @QMI_PBM_PHONEBOOK_TYPE_MBDN: Mail Box Dialing Number.
74 * @QMI_PBM_PHONEBOOK_TYPE_SDN: Service Dialing Number.
75 * @QMI_PBM_PHONEBOOK_TYPE_BDN: Barred Dialing Number.
76 * @QMI_PBM_PHONEBOOK_TYPE_LND: Last Number Dialed.
77 * @QMI_PBM_PHONEBOOK_TYPE_MBN: Mail Box Number.
78 *
79 * Phonebook type.
80 *
81 * Since: 1.6
82 */
83 typedef enum { /*< since=1.6 >*/
84 QMI_PBM_PHONEBOOK_TYPE_ADN = 1 << 0,
85 QMI_PBM_PHONEBOOK_TYPE_FDN = 1 << 1,
86 QMI_PBM_PHONEBOOK_TYPE_MSISDN = 1 << 2,
87 QMI_PBM_PHONEBOOK_TYPE_MBDN = 1 << 3,
88 QMI_PBM_PHONEBOOK_TYPE_SDN = 1 << 4,
89 QMI_PBM_PHONEBOOK_TYPE_BDN = 1 << 5,
90 QMI_PBM_PHONEBOOK_TYPE_LND = 1 << 6,
91 QMI_PBM_PHONEBOOK_TYPE_MBN = 1 << 7,
92 } QmiPbmPhonebookType;
93
94 /**
95 * QmiPbmSessionType:
96 * @QMI_PBM_SESSION_TYPE_GW_PRIMARY: Access phonebooks under GSM DF (ICC) or USIM application (UICC).
97 * @QMI_PBM_SESSION_TYPE_1X_PRIMARY: Access phonebooks under CDMA DF (ICC) or CSIM application (UICC).
98 * @QMI_PBM_SESSION_TYPE_GW_SECONDARY: Access phonebooks under GSM DF (ICC) or USIM application (UICC). Dual standby.
99 * @QMI_PBM_SESSION_TYPE_1X_SECONDARY: Access phonebooks under CDMA DF (ICC) or CSIM application (UICC). Dual standby.
100 * @QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_1: Access phonebooks under a nonprovisioning application in slot 1.
101 * @QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_2: Access phonebooks under a nonprovisioning application in slot 2.
102 * @QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_1: Access phonebooks that are not in any application of the card in slot 1.
103 * @QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_2: Access phonebooks that are not in any application of the card in slot 2.
104 *
105 * Type of phonebook management session.
106 *
107 * Since: 1.6
108 */
109 typedef enum { /*< since=1.6 >*/
110 QMI_PBM_SESSION_TYPE_GW_PRIMARY = 0,
111 QMI_PBM_SESSION_TYPE_1X_PRIMARY = 1,
112 QMI_PBM_SESSION_TYPE_GW_SECONDARY = 2,
113 QMI_PBM_SESSION_TYPE_1X_SECONDARY = 3,
114 QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_1 = 4,
115 QMI_PBM_SESSION_TYPE_NONPROVISIONING_SLOT_2 = 5,
116 QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_1 = 6,
117 QMI_PBM_SESSION_TYPE_GLOBAL_PHONEBOOK_SLOT_2 = 7,
118 } QmiPbmSessionType;
119
120 /**
121 * QmiPbmEmergencyNumberFlags:
122 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_POLICE: The number may be used to reach police.
123 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_AMBULANCE: The number may be used to reach ambulance services.
124 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_FIRE_BRIGADE: The number may be used to reach the fire brigade.
125 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_MARINE_GUARD: The number may be used to reach marine guard.
126 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_MOUNTAIN_RESCUE: The number may be used to reach mountain rescue.
127 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_MANUAL_ECALL: The number may be used for manual emergency calls.
128 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_AUTOMATIC_ECALL: The number may be used for automatic emergency calls.
129 * @QMI_PBM_EMERGENCY_NUMBER_FLAG_SPARE: The number is a spare.
130 *
131 * Flags for emergency numbers.
132 *
133 * Since: 1.38
134 */
135 typedef enum { /*< since=1.38 >*/
136 QMI_PBM_EMERGENCY_NUMBER_FLAG_POLICE = 1 << 0,
137 QMI_PBM_EMERGENCY_NUMBER_FLAG_AMBULANCE = 1 << 1,
138 QMI_PBM_EMERGENCY_NUMBER_FLAG_FIRE_BRIGADE = 1 << 2,
139 QMI_PBM_EMERGENCY_NUMBER_FLAG_MARINE_GUARD = 1 << 3,
140 QMI_PBM_EMERGENCY_NUMBER_FLAG_MOUNTAIN_RESCUE = 1 << 4,
141 QMI_PBM_EMERGENCY_NUMBER_FLAG_MANUAL_ECALL = 1 << 5,
142 QMI_PBM_EMERGENCY_NUMBER_FLAG_AUTOMATIC_ECALL = 1 << 6,
143 QMI_PBM_EMERGENCY_NUMBER_FLAG_SPARE = 1 << 7,
144 } QmiPbmEmergencyNumberFlags;
145
146 #endif /* _LIBQMI_GLIB_QMI_ENUMS_PBM_H_ */