2
0

qmi-enums-wms.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /*
  3. * uqmi -- tiny QMI support implementation
  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_WMS_H_
  24. #define _LIBQMI_GLIB_QMI_ENUMS_WMS_H_
  25. /**
  26. * SECTION: qmi-enums-wms
  27. *
  28. * This section defines enumerations and flags used in the WMS service
  29. * interface.
  30. */
  31. /*****************************************************************************/
  32. /* Helper enums for the 'QMI WMS Event Report' indication */
  33. /**
  34. * QmiWmsStorageType:
  35. * @QMI_WMS_STORAGE_TYPE_UIM: Message stored in UIM.
  36. * @QMI_WMS_STORAGE_TYPE_NV: Message stored in non-volatile memory.
  37. * @QMI_WMS_STORAGE_TYPE_NONE: None.
  38. *
  39. * Type of messaging storage.
  40. *
  41. * Since: 1.0
  42. */
  43. typedef enum { /*< since=1.0 >*/
  44. QMI_WMS_STORAGE_TYPE_UIM = 0x00,
  45. QMI_WMS_STORAGE_TYPE_NV = 0x01,
  46. QMI_WMS_STORAGE_TYPE_NONE = 0xFF
  47. } QmiWmsStorageType;
  48. /**
  49. * QmiWmsAckIndicator:
  50. * @QMI_WMS_ACK_INDICATOR_SEND: ACK needs to be sent.
  51. * @QMI_WMS_ACK_INDICATOR_DO_NOT_SEND: ACK doesn't need to be sent.
  52. *
  53. * Indication of whether ACK needs to be sent or not.
  54. *
  55. * Since: 1.0
  56. */
  57. typedef enum { /*< since=1.0 >*/
  58. QMI_WMS_ACK_INDICATOR_SEND = 0x00,
  59. QMI_WMS_ACK_INDICATOR_DO_NOT_SEND = 0x01
  60. } QmiWmsAckIndicator;
  61. /**
  62. * QmiWmsMessageFormat:
  63. * @QMI_WMS_MESSAGE_FORMAT_CDMA: CDMA message.
  64. * @QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_POINT_TO_POINT: Point-to-point 3GPP message.
  65. * @QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_BROADCAST: Broadcast 3GPP message.
  66. * @QMI_WMS_MESSAGE_FORMAT_MWI: Message Waiting Indicator.
  67. *
  68. * Type of message.
  69. *
  70. * Since: 1.0
  71. */
  72. typedef enum { /*< since=1.0 >*/
  73. QMI_WMS_MESSAGE_FORMAT_CDMA = 0x00,
  74. QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_POINT_TO_POINT = 0x06,
  75. QMI_WMS_MESSAGE_FORMAT_GSM_WCDMA_BROADCAST = 0x07,
  76. QMI_WMS_MESSAGE_FORMAT_MWI = 0x08
  77. } QmiWmsMessageFormat;
  78. /**
  79. * QmiWmsMessageMode:
  80. * @QMI_WMS_MESSAGE_MODE_CDMA: Message sent using 3GPP2 technologies.
  81. * @QMI_WMS_MESSAGE_MODE_GSM_WCDMA: Message sent using 3GPP technologies.
  82. *
  83. * Message mode.
  84. *
  85. * Since: 1.0
  86. */
  87. typedef enum { /*< since=1.0 >*/
  88. QMI_WMS_MESSAGE_MODE_CDMA = 0x00,
  89. QMI_WMS_MESSAGE_MODE_GSM_WCDMA = 0x01
  90. } QmiWmsMessageMode;
  91. /**
  92. * QmiWmsNotificationType:
  93. * @QMI_WMS_NOTIFICATION_TYPE_PRIMARY: Primary.
  94. * @QMI_WMS_NOTIFICATION_TYPE_SECONDARY_GSM: Secondary GSM.
  95. * @QMI_WMS_NOTIFICATION_TYPE_SECONDARY_UMTS: Secondary UMTS.
  96. *
  97. * Type of notification.
  98. *
  99. * Since: 1.0
  100. */
  101. typedef enum { /*< since=1.0 >*/
  102. QMI_WMS_NOTIFICATION_TYPE_PRIMARY = 0x00,
  103. QMI_WMS_NOTIFICATION_TYPE_SECONDARY_GSM = 0x01,
  104. QMI_WMS_NOTIFICATION_TYPE_SECONDARY_UMTS = 0x02
  105. } QmiWmsNotificationType;
  106. /*****************************************************************************/
  107. /* Helper enums for the 'QMI WMS Raw Send' request/response */
  108. /**
  109. * QmiWmsCdmaServiceOption:
  110. * @QMI_WMS_CDMA_SERVICE_OPTION_AUTO: Automatic selection of service option.
  111. * @QMI_WMS_CDMA_SERVICE_OPTION_6: Use service option 6.
  112. * @QMI_WMS_CDMA_SERVICE_OPTION_14: Use service option 14.
  113. *
  114. * CDMA service option selection.
  115. *
  116. * Since: 1.0
  117. */
  118. typedef enum { /*< since=1.0 >*/
  119. QMI_WMS_CDMA_SERVICE_OPTION_AUTO = 0x00,
  120. QMI_WMS_CDMA_SERVICE_OPTION_6 = 0x06,
  121. QMI_WMS_CDMA_SERVICE_OPTION_14 = 0x0E
  122. } QmiWmsCdmaServiceOption;
  123. /**
  124. * QmiWmsCdmaCauseCode:
  125. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_ADDRESS_VACANT: Address is valid but not yet allocated. Since 1.18.
  126. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_ADDRESS_TRANSLATION_FAILURE: Address is invalid. Since 1.18.
  127. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_RESOURCE_SHORTAGE: Network resource shortage. Since 1.18.
  128. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_FAILURE: Network failed. Since 1.18.
  129. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_INVALID_TELESERVICE_ID: SMS teleservice ID is invalid. Since 1.18.
  130. * @QMI_WMS_CDMA_CAUSE_CODE_NETWORK_OTHER: Other network error. Since 1.18.
  131. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NO_PAGE_RESPONSE: No page response from destination. Since 1.18.
  132. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_BUSY: Destination is busy. Since 1.18.
  133. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NO_ACK: No acknowledge from destination. Since 1.18.
  134. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_RESOURCE_SHORTAGE: Destination resource shortage. Since 1.18.
  135. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_SMS_DELIVERY_POSTPONED: SMS delivery postponed. Since 1.18.
  136. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_OUT_OF_SERVICE: Destination out of service. Since 1.18.
  137. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NOT_AT_ADDRESS: Destination not at address. Since 1.18.
  138. * @QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_OTHER: Other destination error. Since 1.18.
  139. * @QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_RESOURCE_SHORTAGE: Radio interface resource shortage. Since 1.18.
  140. * @QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_INCOMPATIBILITY: Radio interface incompatibility. Since 1.18.
  141. * @QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_OTHER: Other radio interface error. Since 1.18.
  142. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_ENCODING: Encoding error. Since 1.18.
  143. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_ORIGIN_DENIED: SMS origin denied. Since 1.18.
  144. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_DESTINATION_DENIED: SMS destination denied. Since 1.18.
  145. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SUPPLEMENTARY_SERVICE_NOT_SUPPORTED: Supplementary service not supported. Since 1.18.
  146. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_NOT_SUPPORTED: SMS not supported. Since 1.18.
  147. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_MISSING_EXPECTED_PARAMETER: Missing optional expected parameter. Since 1.18.
  148. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_MISSING_MANDATORY_PARAMETER: Missing mandatory parameter. Since 1.18.
  149. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_UNRECOGNIZED_PARAMETER_VALUE: Unrecognized parameter value. Since 1.18.
  150. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_UNEXPECTED_PARAMETER_VALUE: Unexpected parameter value. Since 1.18.
  151. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_USER_DATA_SIZE_ERROR: User data size error. Since 1.18.
  152. * @QMI_WMS_CDMA_CAUSE_CODE_GENERAL_OTHER: Other general error. Since 1.18.
  153. *
  154. * Cause codes when failed to send an SMS in CDMA.
  155. *
  156. * Since: 1.0
  157. */
  158. typedef enum { /*< since=1.0 >*/
  159. /* Network errors */
  160. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_ADDRESS_VACANT = 0x00,
  161. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_ADDRESS_TRANSLATION_FAILURE = 0x01,
  162. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_RESOURCE_SHORTAGE = 0x02,
  163. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_FAILURE = 0x03,
  164. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_INVALID_TELESERVICE_ID = 0x04,
  165. QMI_WMS_CDMA_CAUSE_CODE_NETWORK_OTHER = 0x05,
  166. /* Destination errors */
  167. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NO_PAGE_RESPONSE = 0x20,
  168. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_BUSY = 0x21,
  169. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NO_ACK = 0x22,
  170. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_RESOURCE_SHORTAGE = 0x23,
  171. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_SMS_DELIVERY_POSTPONED = 0x24,
  172. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_OUT_OF_SERVICE = 0x25,
  173. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_NOT_AT_ADDRESS = 0x26,
  174. QMI_WMS_CDMA_CAUSE_CODE_DESTINATION_OTHER = 0x27,
  175. /* Radio Interface errors */
  176. QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_RESOURCE_SHORTAGE = 0x40,
  177. QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_INCOMPATIBILITY = 0x41,
  178. QMI_WMS_CDMA_CAUSE_CODE_RADIO_INTERFACE_OTHER = 0x42,
  179. /* General errors */
  180. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_ENCODING = 0x60,
  181. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_ORIGIN_DENIED = 0x61,
  182. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_DESTINATION_DENIED = 0x62,
  183. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SUPPLEMENTARY_SERVICE_NOT_SUPPORTED = 0x63,
  184. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_SMS_NOT_SUPPORTED = 0x64,
  185. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_MISSING_EXPECTED_PARAMETER = 0x65,
  186. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_MISSING_MANDATORY_PARAMETER = 0x66,
  187. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_UNRECOGNIZED_PARAMETER_VALUE = 0x67,
  188. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_UNEXPECTED_PARAMETER_VALUE = 0x68,
  189. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_USER_DATA_SIZE_ERROR = 0x69,
  190. QMI_WMS_CDMA_CAUSE_CODE_GENERAL_OTHER = 0x6A
  191. } QmiWmsCdmaCauseCode;
  192. /**
  193. * QmiWmsCdmaErrorClass:
  194. * @QMI_WMS_CDMA_ERROR_CLASS_TEMPORARY: Temporary error reported by network.
  195. * @QMI_WMS_CDMA_ERROR_CLASS_PERMANENT: Permanent error reported by network.
  196. * @QMI_WMS_CDMA_ERROR_CLASS_TEMPORARY_DEVICE: Temporary error reported by device. Since 1.28.
  197. * @QMI_WMS_CDMA_ERROR_CLASS_PERMANENT_DEVICE: Permanent error reported by device. Since 1.28.
  198. *
  199. * Error class reported from the network when failed to send an SMS in CDMA,
  200. * or reported by the device when failed to process a transfer-only CDMA message.
  201. *
  202. * Since: 1.0
  203. */
  204. typedef enum { /*< since=1.0 >*/
  205. QMI_WMS_CDMA_ERROR_CLASS_TEMPORARY = 0x00,
  206. QMI_WMS_CDMA_ERROR_CLASS_PERMANENT = 0x01,
  207. QMI_WMS_CDMA_ERROR_CLASS_TEMPORARY_DEVICE = 0x02,
  208. QMI_WMS_CDMA_ERROR_CLASS_PERMANENT_DEVICE = 0x03,
  209. } QmiWmsCdmaErrorClass;
  210. /**
  211. * QmiWmsGsmUmtsRpCause:
  212. * @QMI_WMS_GSM_UMTS_RP_CAUSE_UNASSIGNED_NUMBER: Unassigned number.
  213. * @QMI_WMS_GSM_UMTS_RP_CAUSE_OPERATOR_DETERMINED_BARRING: Operator determined barring.
  214. * @QMI_WMS_GSM_UMTS_RP_CAUSE_CALL_BARRED: Call barred.
  215. * @QMI_WMS_GSM_UMTS_RP_CAUSE_RESERVED: Reserved.
  216. * @QMI_WMS_GSM_UMTS_RP_CAUSE_SMS_TRANSFER_REJECTED: SMS transfer rejected.
  217. * @QMI_WMS_GSM_UMTS_RP_CAUSE_MEMORY_CAPACITY_EXCEEDED: Memory capacity exceeded.
  218. * @QMI_WMS_GSM_UMTS_RP_CAUSE_DESTINATION_OUT_OF_ORDER: Destination out of order.
  219. * @QMI_WMS_GSM_UMTS_RP_CAUSE_UNIDENTIFIED_SUBSCRIBER: Unidentified subscriber.
  220. * @QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_REJECTED: Facility rejected.
  221. * @QMI_WMS_GSM_UMTS_RP_CAUSE_UNKNOWN_SUBSCRIBER: Unknown subscriber.
  222. * @QMI_WMS_GSM_UMTS_RP_CAUSE_NETWORK_OUF_OF_ORDER: Network out of order.
  223. * @QMI_WMS_GSM_UMTS_RP_CAUSE_TEMPORARY_FAILURE: Temporary failure.
  224. * @QMI_WMS_GSM_UMTS_RP_CAUSE_CONGESTION: Congestion.
  225. * @QMI_WMS_GSM_UMTS_RP_CAUSE_RESOURCES_UNAVAILABLE: Resources unavailable.
  226. * @QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_NOT_SUBSCRIBED: Facility not subscribed.
  227. * @QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_NOT_IMPLEMENTED: Facility not implemented.
  228. * @QMI_WMS_GSM_UMTS_RP_CAUSE_INVALID_SMS_TRANSFER_REFERENCE_VALUE: Invalid SMS transfer reference value.
  229. * @QMI_WMS_GSM_UMTS_RP_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE: Semantically incorrect message.
  230. * @QMI_WMS_GSM_UMTS_RP_CAUSE_INVALID_MANDATORY_INFO: Invalid mandatory info.
  231. * @QMI_WMS_GSM_UMTS_RP_CAUSE_MESSAGE_TYPE_NOT_IMPLEMENTED: Message type not implemented.
  232. * @QMI_WMS_GSM_UMTS_RP_CAUSE_MESSAGE_NOT_COMPATIBLE_WITH_SMS: Message not compatible with SMS.
  233. * @QMI_WMS_GSM_UMTS_RP_CAUSE_INFORMATION_ELEMENT_NOT_IMPLEMENTED: Information element not implemented.
  234. * @QMI_WMS_GSM_UMTS_RP_CAUSE_PROTOCOL_ERROR: Protocol error.
  235. * @QMI_WMS_GSM_UMTS_RP_CAUSE_INTERWORKING: Interworking error.
  236. *
  237. * RP cause codes when failed to send an SMS in GSM/WCDMA.
  238. *
  239. * Since: 1.0
  240. */
  241. typedef enum { /*< since=1.0 >*/
  242. QMI_WMS_GSM_UMTS_RP_CAUSE_UNASSIGNED_NUMBER = 0x01,
  243. QMI_WMS_GSM_UMTS_RP_CAUSE_OPERATOR_DETERMINED_BARRING = 0x08,
  244. QMI_WMS_GSM_UMTS_RP_CAUSE_CALL_BARRED = 0x0A,
  245. QMI_WMS_GSM_UMTS_RP_CAUSE_RESERVED = 0x0B,
  246. QMI_WMS_GSM_UMTS_RP_CAUSE_SMS_TRANSFER_REJECTED = 0x15,
  247. QMI_WMS_GSM_UMTS_RP_CAUSE_MEMORY_CAPACITY_EXCEEDED = 0x16,
  248. QMI_WMS_GSM_UMTS_RP_CAUSE_DESTINATION_OUT_OF_ORDER = 0x1B,
  249. QMI_WMS_GSM_UMTS_RP_CAUSE_UNIDENTIFIED_SUBSCRIBER = 0x1C,
  250. QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_REJECTED = 0x1D,
  251. QMI_WMS_GSM_UMTS_RP_CAUSE_UNKNOWN_SUBSCRIBER = 0x1E,
  252. QMI_WMS_GSM_UMTS_RP_CAUSE_NETWORK_OUF_OF_ORDER = 0x20,
  253. QMI_WMS_GSM_UMTS_RP_CAUSE_TEMPORARY_FAILURE = 0x21,
  254. QMI_WMS_GSM_UMTS_RP_CAUSE_CONGESTION = 0x2A,
  255. QMI_WMS_GSM_UMTS_RP_CAUSE_RESOURCES_UNAVAILABLE = 0x2F,
  256. QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_NOT_SUBSCRIBED = 0x32,
  257. QMI_WMS_GSM_UMTS_RP_CAUSE_FACILITY_NOT_IMPLEMENTED = 0x45,
  258. QMI_WMS_GSM_UMTS_RP_CAUSE_INVALID_SMS_TRANSFER_REFERENCE_VALUE = 0x51,
  259. QMI_WMS_GSM_UMTS_RP_CAUSE_SEMANTICALLY_INCORRECT_MESSAGE = 0x5F,
  260. QMI_WMS_GSM_UMTS_RP_CAUSE_INVALID_MANDATORY_INFO = 0x60,
  261. QMI_WMS_GSM_UMTS_RP_CAUSE_MESSAGE_TYPE_NOT_IMPLEMENTED = 0x61,
  262. QMI_WMS_GSM_UMTS_RP_CAUSE_MESSAGE_NOT_COMPATIBLE_WITH_SMS = 0x62,
  263. QMI_WMS_GSM_UMTS_RP_CAUSE_INFORMATION_ELEMENT_NOT_IMPLEMENTED = 0x63,
  264. QMI_WMS_GSM_UMTS_RP_CAUSE_PROTOCOL_ERROR = 0x6F,
  265. QMI_WMS_GSM_UMTS_RP_CAUSE_INTERWORKING = 0x7F
  266. } QmiWmsGsmUmtsRpCause;
  267. /**
  268. * QmiWmsGsmUmtsTpCause:
  269. * @QMI_WMS_GSM_UMTS_TP_CAUSE_TELE_INTERWORKING_NOT_SUPPORTED: Tele interworking not supported.
  270. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED: Short message type 0 not supported.
  271. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SHORT_MESSAGE_CANNOT_BE_REPLACED: Short message cannot be replaced.
  272. * @QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_PID_ERROR: Unspecified TP-PID error.
  273. * @QMI_WMS_GSM_UMTS_TP_CAUSE_DCS_NOT_SUPPORTED: Data coding scheme not supported.
  274. * @QMI_WMS_GSM_UMTS_TP_CAUSE_MESSAGE_CLASS_NOT_SUPPORTED: Message class not supported.
  275. * @QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_DCS_ERROR: Unspecified data coding scheme error.
  276. * @QMI_WMS_GSM_UMTS_TP_CAUSE_COMMAND_CANNOT_BE_ACTIONED: Command cannot be actioned.
  277. * @QMI_WMS_GSM_UMTS_TP_CAUSE_COMMAND_UNSUPPORTED: Command unsupported.
  278. * @QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_COMMAND_ERROR: Unspecified command error.
  279. * @QMI_WMS_GSM_UMTS_TP_CAUSE_TPDU_NOT_SUPPORTED: TPDU not supported.
  280. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SC_BUSY: SC busy.
  281. * @QMI_WMS_GSM_UMTS_TP_CAUSE_NO_SC_SUBSCRIPTION: No SC subscription.
  282. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SC_SYSTEM_FAILURE: SC system failure.
  283. * @QMI_WMS_GSM_UMTS_TP_CAUSE_INVALID_SME_ADDRESS: Invalid SME address.
  284. * @QMI_WMS_GSM_UMTS_TP_CAUSE_DESTINATION_SME_BARRED: Destination SME barred.
  285. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SM_REJECTED_OR_DUPLICATE: SM rejected or duplicate.
  286. * @QMI_WMS_GSM_UMTS_TP_CAUSE_VPF_NOT_SUPPORTED: TP-VPF not supported.
  287. * @QMI_WMS_GSM_UMTS_TP_CAUSE_VP_NOT_SUPPORTED: TP-VP not supported.
  288. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_SMS_STORAGE_FULL: SIM SMS storage full.
  289. * @QMI_WMS_GSM_UMTS_TP_CAUSE_NO_SMS_STORAGE_CAPABILITY_IN_SIM: No SMS storage capability in SIM.
  290. * @QMI_WMS_GSM_UMTS_TP_CAUSE_MS_ERROR: MS error.
  291. * @QMI_WMS_GSM_UMTS_TP_CAUSE_MEMORY_CAPACITY_EXCEEDED: Memory capacity exceeded.
  292. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_APPLICATION_TOOLKIT_BUSY: SIM application toolkit busy.
  293. * @QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_DATA_DOWNLOAD_ERROR: SIM data download error.
  294. * @QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_ERROR: Unspecified error.
  295. *
  296. * RT cause codes when failed to send an SMS in GSM/WCDMA.
  297. *
  298. * Since: 1.0
  299. */
  300. typedef enum { /*< since=1.0 >*/
  301. QMI_WMS_GSM_UMTS_TP_CAUSE_TELE_INTERWORKING_NOT_SUPPORTED = 0x80,
  302. QMI_WMS_GSM_UMTS_TP_CAUSE_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED = 0x81,
  303. QMI_WMS_GSM_UMTS_TP_CAUSE_SHORT_MESSAGE_CANNOT_BE_REPLACED = 0x82,
  304. QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_PID_ERROR = 0x8F,
  305. QMI_WMS_GSM_UMTS_TP_CAUSE_DCS_NOT_SUPPORTED = 0x90,
  306. QMI_WMS_GSM_UMTS_TP_CAUSE_MESSAGE_CLASS_NOT_SUPPORTED = 0x91,
  307. QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_DCS_ERROR = 0x9F,
  308. QMI_WMS_GSM_UMTS_TP_CAUSE_COMMAND_CANNOT_BE_ACTIONED = 0xA0,
  309. QMI_WMS_GSM_UMTS_TP_CAUSE_COMMAND_UNSUPPORTED = 0xA1,
  310. QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_COMMAND_ERROR = 0xAF,
  311. QMI_WMS_GSM_UMTS_TP_CAUSE_TPDU_NOT_SUPPORTED = 0xB0,
  312. QMI_WMS_GSM_UMTS_TP_CAUSE_SC_BUSY = 0xC0,
  313. QMI_WMS_GSM_UMTS_TP_CAUSE_NO_SC_SUBSCRIPTION = 0xC1,
  314. QMI_WMS_GSM_UMTS_TP_CAUSE_SC_SYSTEM_FAILURE = 0xC2,
  315. QMI_WMS_GSM_UMTS_TP_CAUSE_INVALID_SME_ADDRESS = 0xC3,
  316. QMI_WMS_GSM_UMTS_TP_CAUSE_DESTINATION_SME_BARRED = 0xC4,
  317. QMI_WMS_GSM_UMTS_TP_CAUSE_SM_REJECTED_OR_DUPLICATE = 0xC5,
  318. QMI_WMS_GSM_UMTS_TP_CAUSE_VPF_NOT_SUPPORTED = 0xC6,
  319. QMI_WMS_GSM_UMTS_TP_CAUSE_VP_NOT_SUPPORTED = 0xC7,
  320. QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_SMS_STORAGE_FULL = 0xD0,
  321. QMI_WMS_GSM_UMTS_TP_CAUSE_NO_SMS_STORAGE_CAPABILITY_IN_SIM = 0xD1,
  322. QMI_WMS_GSM_UMTS_TP_CAUSE_MS_ERROR = 0xD2,
  323. QMI_WMS_GSM_UMTS_TP_CAUSE_MEMORY_CAPACITY_EXCEEDED = 0xD3,
  324. QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_APPLICATION_TOOLKIT_BUSY = 0xD4,
  325. QMI_WMS_GSM_UMTS_TP_CAUSE_SIM_DATA_DOWNLOAD_ERROR = 0xD5,
  326. QMI_WMS_GSM_UMTS_TP_CAUSE_UNSPECIFIED_ERROR = 0xFF
  327. } QmiWmsGsmUmtsTpCause;
  328. /**
  329. * QmiWmsMessageDeliveryFailureType:
  330. * @QMI_WMS_MESSAGE_DELIVERY_FAILURE_TYPE_TEMPORARY: Temporary failure.
  331. * @QMI_WMS_MESSAGE_DELIVERY_FAILURE_TYPE_PERMANENT: Permanent failure.
  332. *
  333. * Type of message delivery failure.
  334. *
  335. * Since: 1.0
  336. */
  337. typedef enum { /*< since=1.0 >*/
  338. QMI_WMS_MESSAGE_DELIVERY_FAILURE_TYPE_TEMPORARY = 0x00,
  339. QMI_WMS_MESSAGE_DELIVERY_FAILURE_TYPE_PERMANENT = 0x01
  340. } QmiWmsMessageDeliveryFailureType;
  341. /*****************************************************************************/
  342. /* Helper enums for the 'QMI WMS Read Raw' request/response */
  343. /**
  344. * QmiWmsMessageTagType:
  345. * @QMI_WMS_MESSAGE_TAG_TYPE_MT_READ: Received SMS, already read.
  346. * @QMI_WMS_MESSAGE_TAG_TYPE_MT_NOT_READ: Received SMS, not read.
  347. * @QMI_WMS_MESSAGE_TAG_TYPE_MO_SENT: Sent SMS.
  348. * @QMI_WMS_MESSAGE_TAG_TYPE_MO_NOT_SENT: Not yet sent SMS.
  349. *
  350. * Type of message tag.
  351. *
  352. * Since: 1.0
  353. */
  354. typedef enum { /*< since=1.0 >*/
  355. QMI_WMS_MESSAGE_TAG_TYPE_MT_READ = 0x00,
  356. QMI_WMS_MESSAGE_TAG_TYPE_MT_NOT_READ = 0x01,
  357. QMI_WMS_MESSAGE_TAG_TYPE_MO_SENT = 0x02,
  358. QMI_WMS_MESSAGE_TAG_TYPE_MO_NOT_SENT = 0x03
  359. } QmiWmsMessageTagType;
  360. /**
  361. * QmiWmsMessageProtocol:
  362. * @QMI_WMS_MESSAGE_PROTOCOL_CDMA: CDMA.
  363. * @QMI_WMS_MESSAGE_PROTOCOL_WCDMA: WCDMA.
  364. *
  365. * Type of message protocol.
  366. *
  367. * Since: 1.0
  368. */
  369. typedef enum { /*< since=1.0 >*/
  370. QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0x00,
  371. QMI_WMS_MESSAGE_PROTOCOL_WCDMA = 0x01
  372. } QmiWmsMessageProtocol;
  373. /*****************************************************************************/
  374. /* Helper enums for the 'QMI WMS Set Routes' request/response */
  375. /**
  376. * QmiWmsMessageType:
  377. * @QMI_WMS_MESSAGE_TYPE_POINT_TO_POINT: Point to point message.
  378. *
  379. * Type of message.
  380. *
  381. * Since: 1.0
  382. */
  383. typedef enum { /*< since=1.0 >*/
  384. QMI_WMS_MESSAGE_TYPE_POINT_TO_POINT = 0x00
  385. } QmiWmsMessageType;
  386. /**
  387. * QmiWmsMessageClass:
  388. * @QMI_WMS_MESSAGE_CLASS_0: Class 0.
  389. * @QMI_WMS_MESSAGE_CLASS_1: Class 1.
  390. * @QMI_WMS_MESSAGE_CLASS_2: Class 2.
  391. * @QMI_WMS_MESSAGE_CLASS_3: Class 3.
  392. * @QMI_WMS_MESSAGE_CLASS_NONE: Class none.
  393. * @QMI_WMS_MESSAGE_CLASS_CDMA: Class CDMA.
  394. *
  395. * Message class.
  396. *
  397. * Since: 1.0
  398. */
  399. typedef enum { /*< since=1.0 >*/
  400. QMI_WMS_MESSAGE_CLASS_0 = 0x00,
  401. QMI_WMS_MESSAGE_CLASS_1 = 0x01,
  402. QMI_WMS_MESSAGE_CLASS_2 = 0x02,
  403. QMI_WMS_MESSAGE_CLASS_3 = 0x03,
  404. QMI_WMS_MESSAGE_CLASS_NONE = 0x04,
  405. QMI_WMS_MESSAGE_CLASS_CDMA = 0x05
  406. } QmiWmsMessageClass;
  407. /**
  408. * QmiWmsReceiptAction:
  409. * @QMI_WMS_RECEIPT_ACTION_DISCARD: Discard message.
  410. * @QMI_WMS_RECEIPT_ACTION_STORE_AND_NOTIFY: Store and notify to client.
  411. * @QMI_WMS_RECEIPT_ACTION_TRANSFER_ONLY: Notify to client, which should send back ACK.
  412. * @QMI_WMS_RECEIPT_ACTION_TRANSFER_AND_ACK: Notify to client and send back ACK.
  413. * @QMI_WMS_RECEIPT_ACTION_UNKNOWN: Unknown action.
  414. *
  415. * Action to perform when a message is received.
  416. *
  417. * Since: 1.0
  418. */
  419. typedef enum { /*< since=1.0 >*/
  420. QMI_WMS_RECEIPT_ACTION_DISCARD = 0x00,
  421. QMI_WMS_RECEIPT_ACTION_STORE_AND_NOTIFY = 0x01,
  422. QMI_WMS_RECEIPT_ACTION_TRANSFER_ONLY = 0x02,
  423. QMI_WMS_RECEIPT_ACTION_TRANSFER_AND_ACK = 0x03,
  424. QMI_WMS_RECEIPT_ACTION_UNKNOWN = 0xFF
  425. } QmiWmsReceiptAction;
  426. /**
  427. * QmiWmsTransferIndication:
  428. * @QMI_WMS_TRANSFER_INDICATION_CLIENT: Status reports transferred to the client.
  429. *
  430. * Transfer indication actions.
  431. *
  432. * Since: 1.0
  433. */
  434. typedef enum { /*< since=1.0 >*/
  435. QMI_WMS_TRANSFER_INDICATION_CLIENT = 0x01
  436. } QmiWmsTransferIndication;
  437. /**
  438. * QmiWmsAckFailureCause:
  439. * @QMI_WMS_ACK_FAILURE_CAUSE_NO_NETWORK_RESPONSE: No network response.
  440. * @QMI_WMS_ACK_FAILURE_CAUSE_NETWORK_RELEASED_LINK: Network released link.
  441. * @QMI_WMS_ACK_FAILURE_CAUSE_NOT_SENT: Not sent.
  442. *
  443. * Ack failure cause.
  444. *
  445. * Since: 1.28
  446. */
  447. typedef enum { /*< since=1.28 >*/
  448. QMI_WMS_ACK_FAILURE_CAUSE_NO_NETWORK_RESPONSE = 0x00,
  449. QMI_WMS_ACK_FAILURE_CAUSE_NETWORK_RELEASED_LINK = 0x01,
  450. QMI_WMS_ACK_FAILURE_CAUSE_NOT_SENT = 0x02,
  451. } QmiWmsAckFailureCause;
  452. #endif /* _LIBQMI_GLIB_QMI_ENUMS_WMS_H_ */