qmi-enums-uim.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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 <aleksander@aleksander.es>
  22. */
  23. #ifndef _LIBQMI_GLIB_QMI_ENUMS_UIM_H_
  24. #define _LIBQMI_GLIB_QMI_ENUMS_UIM_H_
  25. /**
  26. * SECTION: qmi-enums-uim
  27. *
  28. * This section defines enumerations and flags used in the UIM service
  29. * interface.
  30. */
  31. /*****************************************************************************/
  32. /* Helper enums for the 'QMI UIM Indication Register' indication */
  33. /**
  34. * QmiUimEventRegistrationFlag:
  35. * @QMI_UIM_EVENT_REGISTRATION_FLAG_CARD_STATUS: Card status.
  36. * @QMI_UIM_EVENT_REGISTRATION_FLAG_SAP_CONNECTION: SAP connection.
  37. * @QMI_UIM_EVENT_REGISTRATION_FLAG_EXTENDED_CARD_STATUS: Extended card status.
  38. * @QMI_UIM_EVENT_REGISTRATION_FLAG_PHYSICAL_SLOT_STATUS: Physical slot status. Since 1.26.
  39. *
  40. * Flags to use to register to UIM indications.
  41. *
  42. * Since: 1.22.4
  43. */
  44. typedef enum { /*< since=1.22.4 >*/
  45. QMI_UIM_EVENT_REGISTRATION_FLAG_CARD_STATUS = 1 << 0,
  46. QMI_UIM_EVENT_REGISTRATION_FLAG_SAP_CONNECTION = 1 << 1,
  47. QMI_UIM_EVENT_REGISTRATION_FLAG_EXTENDED_CARD_STATUS = 1 << 2,
  48. QMI_UIM_EVENT_REGISTRATION_FLAG_PHYSICAL_SLOT_STATUS = 1 << 4,
  49. } QmiUimEventRegistrationFlag;
  50. /*****************************************************************************/
  51. /* Helper enums for the 'QMI UIM Read Record' request/response */
  52. /**
  53. * QmiUimSessionType:
  54. * @QMI_UIM_SESSION_TYPE_PRIMARY_GW_PROVISIONING: Primary GSM/WCDMA provisioning.
  55. * @QMI_UIM_SESSION_TYPE_PRIMARY_1X_PROVISIONING: Primary CDMA1x provisioning.
  56. * @QMI_UIM_SESSION_TYPE_SECONDARY_GW_PROVISIONING: Secondary GSM/WCDMA provisioning.
  57. * @QMI_UIM_SESSION_TYPE_SECONDARY_1X_PROVISIONING: Secondary CDMA1x provisioning.
  58. * @QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_1: Nonprovisioning on slot 1.
  59. * @QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_2: Nonprovisioning on slot 2.
  60. * @QMI_UIM_SESSION_TYPE_CARD_SLOT_1: Card on slot 1.
  61. * @QMI_UIM_SESSION_TYPE_CARD_SLOT_2: Card on slot 2.
  62. * @QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_1: Logical channel on slot 1.
  63. * @QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_2: Logical channel on slot 2.
  64. * @QMI_UIM_SESSION_TYPE_TERTIARY_GW_PROVISIONING: Tertiary GSM/WCDMA provisioning. Since 1.28.
  65. * @QMI_UIM_SESSION_TYPE_TERTIARY_1X_PROVISIONING: Tertiary CDMA1x provisioning. Since 1.28.
  66. * @QMI_UIM_SESSION_TYPE_QUATERNARY_GW_PROVISIONING: Quaternary GSM/WCDMA provisioning. Since 1.28.
  67. * @QMI_UIM_SESSION_TYPE_QUATERNARY_1X_PROVISIONING: Quaternary CDMA1x provisioning. Since 1.28.
  68. * @QMI_UIM_SESSION_TYPE_QUINARY_GW_PROVISIONING: Quinary GSM/WCDMA provisioning. Since 1.28.
  69. * @QMI_UIM_SESSION_TYPE_QUINARY_1X_PROVISIONING: Quinary CDMA1x provisioning. Since 1.28.
  70. * @QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_3: Nonprovisioning on slot 3. Since 1.28.
  71. * @QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_4: Nonprovisioning on slot 4. Since 1.28.
  72. * @QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_5: Nonprovisioning on slot 5. Since 1.28.
  73. * @QMI_UIM_SESSION_TYPE_CARD_SLOT_3: Card on slot 3. Since 1.28.
  74. * @QMI_UIM_SESSION_TYPE_CARD_SLOT_4: Card on slot 4. Since 1.28.
  75. * @QMI_UIM_SESSION_TYPE_CARD_SLOT_5: Card on slot 5. Since 1.28.
  76. * @QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_3: Logical channel on slot 3. Since 1.28.
  77. * @QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_4: Logical channel on slot 4. Since 1.28.
  78. * @QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_5: Logical channel on slot 5. Since 1.28.
  79. *
  80. * Type of UIM session.
  81. *
  82. * Since: 1.6
  83. */
  84. typedef enum { /*< since=1.6 >*/
  85. QMI_UIM_SESSION_TYPE_PRIMARY_GW_PROVISIONING = 0,
  86. QMI_UIM_SESSION_TYPE_PRIMARY_1X_PROVISIONING = 1,
  87. QMI_UIM_SESSION_TYPE_SECONDARY_GW_PROVISIONING = 2,
  88. QMI_UIM_SESSION_TYPE_SECONDARY_1X_PROVISIONING = 3,
  89. QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_1 = 4,
  90. QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_2 = 5,
  91. QMI_UIM_SESSION_TYPE_CARD_SLOT_1 = 6,
  92. QMI_UIM_SESSION_TYPE_CARD_SLOT_2 = 7,
  93. QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_1 = 8,
  94. QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_2 = 9,
  95. QMI_UIM_SESSION_TYPE_TERTIARY_GW_PROVISIONING = 10,
  96. QMI_UIM_SESSION_TYPE_TERTIARY_1X_PROVISIONING = 11,
  97. QMI_UIM_SESSION_TYPE_QUATERNARY_GW_PROVISIONING = 12,
  98. QMI_UIM_SESSION_TYPE_QUATERNARY_1X_PROVISIONING = 13,
  99. QMI_UIM_SESSION_TYPE_QUINARY_GW_PROVISIONING = 14,
  100. QMI_UIM_SESSION_TYPE_QUINARY_1X_PROVISIONING = 15,
  101. QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_3 = 16,
  102. QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_4 = 17,
  103. QMI_UIM_SESSION_TYPE_NONPROVISIONING_SLOT_5 = 18,
  104. QMI_UIM_SESSION_TYPE_CARD_SLOT_3 = 19,
  105. QMI_UIM_SESSION_TYPE_CARD_SLOT_4 = 20,
  106. QMI_UIM_SESSION_TYPE_CARD_SLOT_5 = 21,
  107. QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_3 = 22,
  108. QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_4 = 23,
  109. QMI_UIM_SESSION_TYPE_LOGICAL_CHANNEL_SLOT_5 = 24,
  110. } QmiUimSessionType;
  111. /*****************************************************************************/
  112. /* Helper enums for the 'QMI UIM Get File Attributes' request/response */
  113. /**
  114. * QmiUimFileType:
  115. * @QMI_UIM_FILE_TYPE_TRANSPARENT: Transparent.
  116. * @QMI_UIM_FILE_TYPE_CYCLIC: Cyclic.
  117. * @QMI_UIM_FILE_TYPE_LINEAR_FIXED: Linear fixed.
  118. * @QMI_UIM_FILE_TYPE_DEDICATED_FILE: Dedicated file.
  119. * @QMI_UIM_FILE_TYPE_MASTER_FILE: Master file.
  120. *
  121. * Type of UIM file.
  122. *
  123. * Since: 1.6
  124. */
  125. typedef enum { /*< since=1.6 >*/
  126. QMI_UIM_FILE_TYPE_TRANSPARENT = 0,
  127. QMI_UIM_FILE_TYPE_CYCLIC = 1,
  128. QMI_UIM_FILE_TYPE_LINEAR_FIXED = 2,
  129. QMI_UIM_FILE_TYPE_DEDICATED_FILE = 3,
  130. QMI_UIM_FILE_TYPE_MASTER_FILE = 4
  131. } QmiUimFileType;
  132. /**
  133. * QmiUimSecurityAttributeLogic:
  134. * @QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_ALWAYS: Always.
  135. * @QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_NEVER: Never.
  136. * @QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_AND: And.
  137. * @QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_OR: Or.
  138. * @QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_SINGLE: Single.
  139. *
  140. * Logic applicable to security attributes.
  141. *
  142. * Since: 1.6
  143. */
  144. typedef enum { /*< since=1.6 >*/
  145. QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_ALWAYS = 0,
  146. QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_NEVER = 1,
  147. QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_AND = 2,
  148. QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_OR = 3,
  149. QMI_UIM_SECURITY_ATTRIBUTE_LOGIC_SINGLE = 4
  150. } QmiUimSecurityAttributeLogic;
  151. /**
  152. * QmiUimSecurityAttribute:
  153. * @QMI_UIM_SECURITY_ATTRIBUTE_PIN1: PIN1.
  154. * @QMI_UIM_SECURITY_ATTRIBUTE_PIN2: PIN2.
  155. * @QMI_UIM_SECURITY_ATTRIBUTE_UPIN: UPIN.
  156. * @QMI_UIM_SECURITY_ATTRIBUTE_ADM: ADM.
  157. *
  158. * Security Attributes.
  159. *
  160. * Since: 1.6
  161. */
  162. typedef enum { /*< since=1.6 >*/
  163. QMI_UIM_SECURITY_ATTRIBUTE_PIN1 = 1 << 0,
  164. QMI_UIM_SECURITY_ATTRIBUTE_PIN2 = 1 << 1,
  165. QMI_UIM_SECURITY_ATTRIBUTE_UPIN = 1 << 2,
  166. QMI_UIM_SECURITY_ATTRIBUTE_ADM = 1 << 3
  167. } QmiUimSecurityAttribute;
  168. /*****************************************************************************/
  169. /* Helper enums for the 'QMI UIM Set PIN Protection' */
  170. /**
  171. * QmiUimPinId:
  172. * @QMI_UIM_PIN_ID_UNKNOWN: Unknown.
  173. * @QMI_UIM_PIN_ID_PIN1: PIN1.
  174. * @QMI_UIM_PIN_ID_PIN2: PIN2.
  175. * @QMI_UIM_PIN_ID_UPIN: UPIN.
  176. * @QMI_UIM_PIN_ID_HIDDEN_KEY: Hidden key.
  177. *
  178. * PIN ID.
  179. *
  180. * Since: 1.14
  181. */
  182. typedef enum { /*< since=1.14 >*/
  183. QMI_UIM_PIN_ID_UNKNOWN = 0,
  184. QMI_UIM_PIN_ID_PIN1 = 1,
  185. QMI_UIM_PIN_ID_PIN2 = 2,
  186. QMI_UIM_PIN_ID_UPIN = 3,
  187. QMI_UIM_PIN_ID_HIDDEN_KEY = 4
  188. } QmiUimPinId;
  189. /*****************************************************************************/
  190. /* Helper enums for the 'QMI UIM Get Card Status' request/response */
  191. /**
  192. * QmiUimCardState:
  193. * @QMI_UIM_CARD_STATE_ABSENT: Absent.
  194. * @QMI_UIM_CARD_STATE_PRESENT: Present.
  195. * @QMI_UIM_CARD_STATE_ERROR: Error.
  196. *
  197. * State of the card.
  198. *
  199. * Since: 1.10
  200. */
  201. typedef enum { /*< since=1.10 >*/
  202. QMI_UIM_CARD_STATE_ABSENT = 0,
  203. QMI_UIM_CARD_STATE_PRESENT = 1,
  204. QMI_UIM_CARD_STATE_ERROR = 2
  205. } QmiUimCardState;
  206. /**
  207. * QmiUimPinState:
  208. * @QMI_UIM_PIN_STATE_NOT_INITIALIZED: Not initialized.
  209. * @QMI_UIM_PIN_STATE_ENABLED_NOT_VERIFIED: Enabled, not verified.
  210. * @QMI_UIM_PIN_STATE_ENABLED_VERIFIED: Enabled, verified.
  211. * @QMI_UIM_PIN_STATE_DISABLED: Disabled.
  212. * @QMI_UIM_PIN_STATE_BLOCKED: Blocked.
  213. * @QMI_UIM_PIN_STATE_PERMANENTLY_BLOCKED: Permanently Blocked.
  214. *
  215. * The PIN state.
  216. *
  217. * Since: 1.10
  218. */
  219. typedef enum { /*< since=1.10 >*/
  220. QMI_UIM_PIN_STATE_NOT_INITIALIZED = 0,
  221. QMI_UIM_PIN_STATE_ENABLED_NOT_VERIFIED = 1,
  222. QMI_UIM_PIN_STATE_ENABLED_VERIFIED = 2,
  223. QMI_UIM_PIN_STATE_DISABLED = 3,
  224. QMI_UIM_PIN_STATE_BLOCKED = 4,
  225. QMI_UIM_PIN_STATE_PERMANENTLY_BLOCKED = 5,
  226. } QmiUimPinState;
  227. /**
  228. * QmiUimCardError:
  229. * @QMI_UIM_CARD_ERROR_UNKNOWN: Unknown error.
  230. * @QMI_UIM_CARD_ERROR_POWER_DOWN: Power down.
  231. * @QMI_UIM_CARD_ERROR_POLL: Poll error.
  232. * @QMI_UIM_CARD_ERROR_NO_ATR_RECEIVED: No ATR received.
  233. * @QMI_UIM_CARD_ERROR_VOLTAGE_MISMATCH: Voltage mismatch.
  234. * @QMI_UIM_CARD_ERROR_PARITY: Parity error.
  235. * @QMI_UIM_CARD_ERROR_POSSIBLY_REMOVED: Unknown error, possibly removed.
  236. * @QMI_UIM_CARD_ERROR_TECHNICAL: Technical problem.
  237. *
  238. * Card error.
  239. *
  240. * Since: 1.10
  241. */
  242. typedef enum { /*< since=1.10 >*/
  243. QMI_UIM_CARD_ERROR_UNKNOWN = 0,
  244. QMI_UIM_CARD_ERROR_POWER_DOWN = 1,
  245. QMI_UIM_CARD_ERROR_POLL = 2,
  246. QMI_UIM_CARD_ERROR_NO_ATR_RECEIVED = 3,
  247. QMI_UIM_CARD_ERROR_VOLTAGE_MISMATCH = 4,
  248. QMI_UIM_CARD_ERROR_PARITY = 5,
  249. QMI_UIM_CARD_ERROR_POSSIBLY_REMOVED = 6,
  250. QMI_UIM_CARD_ERROR_TECHNICAL = 7
  251. } QmiUimCardError;
  252. /**
  253. * QmiUimCardApplicationType:
  254. * @QMI_UIM_CARD_APPLICATION_TYPE_UNKNOWN: Unknown.
  255. * @QMI_UIM_CARD_APPLICATION_TYPE_SIM: SIM.
  256. * @QMI_UIM_CARD_APPLICATION_TYPE_USIM: USIM.
  257. * @QMI_UIM_CARD_APPLICATION_TYPE_RUIM: RUIM.
  258. * @QMI_UIM_CARD_APPLICATION_TYPE_CSIM: CSIM.
  259. * @QMI_UIM_CARD_APPLICATION_TYPE_ISIM: ISIM.
  260. *
  261. * Card application type.
  262. *
  263. * Since: 1.10
  264. */
  265. typedef enum { /*< since=1.10 >*/
  266. QMI_UIM_CARD_APPLICATION_TYPE_UNKNOWN = 0,
  267. QMI_UIM_CARD_APPLICATION_TYPE_SIM = 1,
  268. QMI_UIM_CARD_APPLICATION_TYPE_USIM = 2,
  269. QMI_UIM_CARD_APPLICATION_TYPE_RUIM = 3,
  270. QMI_UIM_CARD_APPLICATION_TYPE_CSIM = 4,
  271. QMI_UIM_CARD_APPLICATION_TYPE_ISIM = 5,
  272. } QmiUimCardApplicationType;
  273. /**
  274. * QmiUimCardApplicationState:
  275. * @QMI_UIM_CARD_APPLICATION_STATE_UNKNOWN: Unknown.
  276. * @QMI_UIM_CARD_APPLICATION_STATE_DETECTED: Detected.
  277. * @QMI_UIM_CARD_APPLICATION_STATE_PIN1_OR_UPIN_PIN_REQUIRED: PIN1 or UPIN PIN required.
  278. * @QMI_UIM_CARD_APPLICATION_STATE_PUK1_OR_UPIN_PUK_REQUIRED: PUK1 or UPIN PUK required.
  279. * @QMI_UIM_CARD_APPLICATION_STATE_CHECK_PERSONALIZATION_STATE: Personalization state must be checked.
  280. * @QMI_UIM_CARD_APPLICATION_STATE_PIN1_BLOCKED: PIN1 blocked.
  281. * @QMI_UIM_CARD_APPLICATION_STATE_ILLEGAL: Illegal.
  282. * @QMI_UIM_CARD_APPLICATION_STATE_READY: Ready
  283. *
  284. * Card application state.
  285. *
  286. * Since: 1.10
  287. */
  288. typedef enum { /*< since=1.10 >*/
  289. QMI_UIM_CARD_APPLICATION_STATE_UNKNOWN = 0,
  290. QMI_UIM_CARD_APPLICATION_STATE_DETECTED = 1,
  291. QMI_UIM_CARD_APPLICATION_STATE_PIN1_OR_UPIN_PIN_REQUIRED = 2,
  292. QMI_UIM_CARD_APPLICATION_STATE_PUK1_OR_UPIN_PUK_REQUIRED = 3,
  293. QMI_UIM_CARD_APPLICATION_STATE_CHECK_PERSONALIZATION_STATE = 4,
  294. QMI_UIM_CARD_APPLICATION_STATE_PIN1_BLOCKED = 5,
  295. QMI_UIM_CARD_APPLICATION_STATE_ILLEGAL = 6,
  296. QMI_UIM_CARD_APPLICATION_STATE_READY = 7,
  297. } QmiUimCardApplicationState;
  298. /**
  299. * QmiUimCardApplicationPersonalizationState:
  300. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_UNKNOWN: Unknown.
  301. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_IN_PROGRESS: Operation in progress.
  302. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_READY: Ready.
  303. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_CODE_REQUIRED: Code required.
  304. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_PUK_CODE_REQUIRED: PUK code required.
  305. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_PERMANENTLY_BLOCKED: Permanently blocked-
  306. *
  307. * Card application personalization state.
  308. *
  309. * Since: 1.10
  310. */
  311. typedef enum { /*< since=1.10 >*/
  312. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_UNKNOWN = 0,
  313. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_IN_PROGRESS = 1,
  314. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_READY = 2,
  315. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_CODE_REQUIRED = 3,
  316. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_PUK_CODE_REQUIRED = 4,
  317. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_STATE_PERMANENTLY_BLOCKED = 5,
  318. } QmiUimCardApplicationPersonalizationState;
  319. /**
  320. * QmiUimCardApplicationPersonalizationFeature:
  321. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_NETWORK: GW network.
  322. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_NETWORK_SUBSET: GW network subset.
  323. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_SERVICE_PROVIDER: GW service provider.
  324. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_CORPORATE: GW corporate.
  325. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_UIM: UIM.
  326. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_NETWORK_TYPE_1: 1X network type 1.
  327. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_NETWORK_TYPE_2: 1X network type 2.
  328. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_HRPD: 1X HRPD.
  329. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_SERVICE_PROVIDER: 1X service provider.
  330. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_CORPORATE: 1X corporate.
  331. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_RUIM: 1X R-UIM.
  332. * @QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_UNKNOWN: Unknown.
  333. *
  334. * Card application personalization feature, when a code is required.
  335. *
  336. * Since: 1.10
  337. */
  338. typedef enum { /*< since=1.10 >*/
  339. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_NETWORK = 0,
  340. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_NETWORK_SUBSET = 1,
  341. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_SERVICE_PROVIDER = 2,
  342. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_CORPORATE = 3,
  343. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_GW_UIM = 4,
  344. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_NETWORK_TYPE_1 = 5,
  345. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_NETWORK_TYPE_2 = 6,
  346. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_HRPD = 7,
  347. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_SERVICE_PROVIDER = 8,
  348. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_CORPORATE = 9,
  349. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_1X_RUIM = 10,
  350. QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_UNKNOWN = 11
  351. } QmiUimCardApplicationPersonalizationFeature;
  352. /*****************************************************************************/
  353. /* Helper enums for the 'QMI UIM Refresh' indication */
  354. /**
  355. * QmiUimRefreshStage:
  356. * @QMI_UIM_REFRESH_STAGE_WAIT_FOR_OK: Waiting for REFRESH OK message.
  357. * @QMI_UIM_REFRESH_STAGE_START: Refresh started.
  358. * @QMI_UIM_REFRESH_STAGE_END_WITH_SUCCESS: Refresh completed successfully.
  359. * @QMI_UIM_REFRESH_STAGE_END_WITH_FAILURE: Refresh has failed.
  360. *
  361. * Current stage of the refresh procedure.
  362. *
  363. * Since: 1.28
  364. */
  365. typedef enum { /*< since=1.28 >*/
  366. QMI_UIM_REFRESH_STAGE_WAIT_FOR_OK = 0,
  367. QMI_UIM_REFRESH_STAGE_START = 1,
  368. QMI_UIM_REFRESH_STAGE_END_WITH_SUCCESS = 2,
  369. QMI_UIM_REFRESH_STAGE_END_WITH_FAILURE = 3
  370. } QmiUimRefreshStage;
  371. /**
  372. * QmiUimRefreshMode:
  373. * @QMI_UIM_REFRESH_MODE_RESET: Reset.
  374. * @QMI_UIM_REFRESH_MODE_INIT: Init.
  375. * @QMI_UIM_REFRESH_MODE_INIT_FCN: Init & FCN.
  376. * @QMI_UIM_REFRESH_MODE_FCN: FCN.
  377. * @QMI_UIM_REFRESH_MODE_INIT_FULL_FCN: Init & full FCN.
  378. * @QMI_UIM_REFRESH_MODE_APP_RESET: Application reset.
  379. * @QMI_UIM_REFRESH_MODE_3G_RESET: 3G session reset.
  380. *
  381. * Refresh mode
  382. *
  383. * Since: 1.28
  384. */
  385. typedef enum { /*< since=1.28 >*/
  386. QMI_UIM_REFRESH_MODE_RESET = 0,
  387. QMI_UIM_REFRESH_MODE_INIT = 1,
  388. QMI_UIM_REFRESH_MODE_INIT_FCN = 2,
  389. QMI_UIM_REFRESH_MODE_FCN = 3,
  390. QMI_UIM_REFRESH_MODE_INIT_FULL_FCN = 4,
  391. QMI_UIM_REFRESH_MODE_APP_RESET = 5,
  392. QMI_UIM_REFRESH_MODE_3G_RESET = 6
  393. } QmiUimRefreshMode;
  394. /*****************************************************************************/
  395. /* Helper enums for the 'QMI UIM Get Slot Status' request/response */
  396. /**
  397. * QmiUimPhysicalCardState:
  398. * @QMI_UIM_PHYSICAL_CARD_STATE_UNKNOWN: Unknown.
  399. * @QMI_UIM_PHYSICAL_CARD_STATE_ABSENT: Absent.
  400. * @QMI_UIM_PHYSICAL_CARD_STATE_PRESENT: Present.
  401. *
  402. * State of the physical card.
  403. *
  404. * Since: 1.26
  405. */
  406. typedef enum { /*< since=1.26 >*/
  407. QMI_UIM_PHYSICAL_CARD_STATE_UNKNOWN = 0,
  408. QMI_UIM_PHYSICAL_CARD_STATE_ABSENT = 1,
  409. QMI_UIM_PHYSICAL_CARD_STATE_PRESENT = 2,
  410. } QmiUimPhysicalCardState;
  411. /**
  412. * QmiUimSlotState:
  413. * @QMI_UIM_SLOT_STATE_INACTIVE: Inactive.
  414. * @QMI_UIM_SLOT_STATE_ACTIVE: Active.
  415. *
  416. * State of the slot.
  417. *
  418. * Since: 1.26
  419. */
  420. typedef enum { /*< since=1.26 >*/
  421. QMI_UIM_SLOT_STATE_INACTIVE = 0,
  422. QMI_UIM_SLOT_STATE_ACTIVE = 1,
  423. } QmiUimSlotState;
  424. /**
  425. * QmiUimCardProtocol:
  426. * @QMI_UIM_CARD_PROTOCOL_UNKNOWN: Unknown.
  427. * @QMI_UIM_CARD_PROTOCOL_ICC: ICC protocol.
  428. * @QMI_UIM_CARD_PROTOCOL_UICC: UICC protocol.
  429. *
  430. * Protocol for the card.
  431. *
  432. * Since: 1.26
  433. */
  434. typedef enum { /*< since=1.26 >*/
  435. QMI_UIM_CARD_PROTOCOL_UNKNOWN = 0,
  436. QMI_UIM_CARD_PROTOCOL_ICC = 1,
  437. QMI_UIM_CARD_PROTOCOL_UICC = 2,
  438. } QmiUimCardProtocol;
  439. /**
  440. * QmiUimConfiguration:
  441. * @QMI_UIM_CONFIGURATION_AUTOMATIC_SELECTION: Automatic selection.
  442. * @QMI_UIM_CONFIGURATION_PERSONALIZATION_STATUS: Personalization status.
  443. * @QMI_UIM_CONFIGURATION_HALT_SUBSCRIPTION: Halt publication of subscription.
  444. *
  445. * Requested configurations. If none explicitly requested, all configuration
  446. * items are returned.
  447. *
  448. * Since: 1.30
  449. */
  450. typedef enum { /*< since=1.30 >*/
  451. QMI_UIM_CONFIGURATION_AUTOMATIC_SELECTION = 1 << 0,
  452. QMI_UIM_CONFIGURATION_PERSONALIZATION_STATUS = 1 << 1,
  453. QMI_UIM_CONFIGURATION_HALT_SUBSCRIPTION = 1 << 2,
  454. } QmiUimConfiguration;
  455. /**
  456. * QmiUimDepersonalizationOperation:
  457. * @QMI_UIM_DEPERSONALIZATION_OPERATION_DEACTIVATE: Deactivate personalization
  458. * @QMI_UIM_DEPERSONALIZATION_OPERATION_UNBLOCK: Unblock personalization
  459. *
  460. * Depersonalization operation to perform.
  461. *
  462. * Since: 1.30
  463. */
  464. typedef enum { /*< since=1.30 >*/
  465. QMI_UIM_DEPERSONALIZATION_OPERATION_DEACTIVATE = 0,
  466. QMI_UIM_DEPERSONALIZATION_OPERATION_UNBLOCK = 1,
  467. } QmiUimDepersonalizationOperation;
  468. #endif /* _LIBQMI_GLIB_QMI_ENUMS_UIM_H_ */