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