1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef MMS_CODEC_TYPE_H 17 #define MMS_CODEC_TYPE_H 18 19 namespace OHOS { 20 namespace Telephony { 21 /** 22 * @brief MmsFieldCode 23 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.4 Header Field Names and Assigned Numbers 24 * Table 25: Field Name Assignments 25 */ 26 enum MmsFieldCode { 27 MMS_BCC = 0x01 | 0x80, 28 MMS_CC = 0x02 | 0x80, 29 MMS_CONTENT_LOCATION = 0x03 | 0x80, 30 MMS_CONTENT_TYPE = 0x04 | 0x80, 31 MMS_DATE = 0x05 | 0x80, 32 MMS_DELIVERY_REPORT = 0x06 | 0x80, 33 MMS_DELIVERY_TIME = 0x07 | 0x80, 34 MMS_EXPIRY = 0x08 | 0x80, 35 MMS_FROM = 0x09 | 0x80, 36 MMS_MESSAGE_CLASS = 0x0A | 0x80, 37 MMS_MESSAGE_ID = 0x0B | 0x80, 38 MMS_MESSAGE_TYPE = 0x0C | 0x80, 39 MMS_MMS_VERSION = 0x0D | 0x80, 40 MMS_MESSAGE_SIZE = 0x0E | 0x80, 41 MMS_PRIORITY = 0x0F | 0x80, 42 MMS_READ_REPORT = 0x10 | 0x80, 43 MMS_REPORT_ALLOWED = 0x11 | 0x80, 44 MMS_RESPONSE_STATUS = 0x12 | 0x80, 45 MMS_RESPONSE_TEXT = 0x13 | 0x80, 46 MMS_SENDER_VISIBILITY = 0x14 | 0x80, 47 MMS_STATUS = 0x15 | 0x80, 48 MMS_SUBJECT = 0x16 | 0x80, 49 MMS_TO = 0x17 | 0x80, 50 MMS_TRANSACTION_ID = 0x18 | 0x80, 51 MMS_RETRIEVE_STATUS = 0x19 | 0x80, 52 MMS_RETRIEVE_TEXT = 0x1A | 0x80, 53 MMS_READ_STATUS = 0x1B | 0x80, 54 MMS_REPLY_CHARGING = 0x1C | 0x80, 55 MMS_REPLY_CHARGING_DEADLINE = 0x1D | 0x80, 56 MMS_REPLY_CHARGING_ID = 0x1E | 0x80, 57 MMS_REPLY_CHARGING_SIZE = 0x1F | 0x80, 58 MMS_PREVIOUSLY_SENT_BY = 0x20 | 0x80, 59 MMS_PREVIOUSLY_SENT_DATE = 0x21 | 0x80, 60 MMS_STORE = 0x22 | 0x80, 61 MMS_MM_STATE = 0x23 | 0x80, 62 MMS_MM_FLAGS = 0x24 | 0x80, 63 MMS_STORE_STATUS = 0x25 | 0x80, 64 MMS_STORE_STATUS_TEXT = 0x26 | 0x80, 65 MMS_STORED = 0x27 | 0x80, 66 MMS_ATTRIBUTES = 0x28 | 0x80, 67 MMS_TOTALS = 0x29 | 0x80, 68 MMS_MBOX_TOTALS = 0x2A | 0x80, 69 MMS_QUOTAS = 0x2B | 0x80, 70 MMS_MBOX_QUOTAS = 0x2C | 0x80, 71 MMS_MESSAGE_COUNT = 0x2D | 0x80, 72 MMS_CONTENT = 0x2E | 0x80, // un 73 MMS_START = 0x2F | 0x80, 74 MMS_ADDITIONAL_HEADERS = 0x30 | 0x80, // un 75 MMS_DISTRIBUTION_INDICATOR = 0x31 | 0x80, 76 MMS_ELEMENT_DESCRIPTOR = 0x32 | 0x80, 77 MMS_LIMIT = 0x33 | 0x80, 78 MMS_RECOMMENDED_RETRIEVAL_MODE = 0x34 | 0x80, 79 MMS_RECOMMENDED_RETRIEVAL_MODE_TEXT = 0x35 | 0x80, 80 MMS_STATUS_TEXT = 0x36 | 0x80, 81 MMS_APPLIC_ID = 0x37 | 0x80, 82 MMS_REPLY_APPLIC_ID = 0x38 | 0x80, 83 MMS_AUX_APPLIC_INFO = 0x39 | 0x80, 84 MMS_CONTENT_CLASS = 0x3A | 0x80, 85 MMS_DRM_CONTENT = 0x3B | 0x80, 86 MMS_ADAPTATION_ALLOWED = 0x3C | 0x80, 87 MMS_REPLACE_ID = 0x3D | 0x80, 88 MMS_CANCEL_ID = 0x3E | 0x80, 89 MMS_CANCEL_STATUS = 0x3F | 0x80, 90 }; 91 92 /** 93 * @brief MmsMsgType 94 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.30 X-Mms-Message-Type Field 95 */ 96 enum MmsMsgType { 97 MMS_MSGTYPE_SEND_REQ = 128, 98 MMS_MSGTYPE_SEND_CONF = 129, 99 MMS_MSGTYPE_NOTIFICATION_IND = 130, 100 MMS_MSGTYPE_NOTIFYRESP_IND = 131, 101 MMS_MSGTYPE_RETRIEVE_CONF = 132, 102 MMS_MSGTYPE_ACKNOWLEDGE_IND = 133, 103 MMS_MSGTYPE_DELIVERY_IND = 134, 104 MMS_MSGTYPE_READ_REC_IND = 135, 105 MMS_MSGTYPE_READ_ORIG_IND = 136, 106 MMS_MSGTYPE_FORWARD_REQ = 137, 107 MMS_MSGTYPE_FORWARD_CONF = 138, 108 MMS_MSGTYPE_MBOX_STORE_REQ = 139, 109 MMS_MSGTYPE_MBOX_STORE_CONF = 140, 110 MMS_MSGTYPE_MBOX_VIEW_REQ = 141, 111 MMS_MSGTYPE_MBOX_VIEW_CONF = 142, 112 MMS_MSGTYPE_MBOX_UPLOAD_REQ = 143, 113 MMS_MSGTYPE_MBOX_UPLOAD_CONF = 144, 114 MMS_MSGTYPE_MBOX_DELETE_REQ = 145, 115 MMS_MSGTYPE_MBOX_DELETE_CONF = 146, 116 MMS_MSGTYPE_MBOX_DESCR = 147, 117 MMS_MSGTYPE_DELETE_REQ = 148, 118 MMS_MSGTYPE_DELETE_CONF = 149, 119 MMS_MSGTYPE_CANCEL_REQ = 150, 120 MMS_MSGTYPE_CANCEL_CONF = 151, 121 }; 122 123 /** 124 * @brief Enumerates MMS versions. 125 */ 126 enum class MmsVersionType { 127 /** 128 * Indicates MMS version 1_0. 129 */ 130 MMS_VERSION_1_0 = 0x10, 131 /** 132 * Indicates MMS version 1_1. 133 */ 134 MMS_VERSION_1_1 = 0x11, 135 /** 136 * Indicates MMS version 1_2. 137 */ 138 MMS_VERSION_1_2 = 0x12, 139 /** 140 * Indicates MMS version 1_3. 141 */ 142 MMS_VERSION_1_3 = 0x13, 143 }; 144 145 /** 146 * @brief MmsBoolType 147 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.37 X-Mms-Read-Report Field 148 */ 149 enum class MmsBoolType { 150 MMS_YES = 128, 151 MMS_NO = 129, 152 }; 153 154 /** 155 * @brief MmsMessageClass 156 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.27 X-Mms-Message-Class Field 157 */ 158 enum class MmsMessageClass { 159 PERSONAL = 128, 160 ADVERTISEMENT = 129, 161 INFORMATIONAL = 130, 162 AUTO = 131, 163 }; 164 165 /** 166 * @brief MmsExpiry 167 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.20 X-Mms-Expiry Field 168 */ 169 enum class MmsExpiry { 170 ABSOLUTE_TOKEN = 128, 171 RELATIVE_TOKEN = 129, 172 }; 173 174 /** 175 * @brief MmsPriority 176 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.35 X-Mms-Priority Field 177 */ 178 enum class MmsPriority { 179 MMS_LOW = 128, 180 MMS_NORMAL = 129, 181 MMS_HIGH = 130, 182 }; 183 184 /** 185 * @brief MmsResponseStatus 186 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.48 X-Mms-Response-Status Field 187 */ 188 enum class MmsResponseStatus { 189 MMS_OK = 128, 190 MMS_ERROR_UNSPECIFIED = 129, 191 MMS_ERROR_SERVICE_DENIED = 130, 192 MMS_ERROR_MESSAGE_FORMAT_CORRUPT = 131, 193 MMS_ERROR_SENDING_ADDRESS_UNRESOLVED = 132, 194 MMS_ERROR_MESSAGE_NOT_FOUND = 133, 195 MMS_ERROR_NETWORK_PROBLEM = 134, 196 MMS_ERROR_CONTENT_NOT_ACCEPTED = 135, 197 MMS_ERROR_UNSUPPORTED_MESSAGE = 136, 198 MMS_ERROR_TRANSIENT_FAILURE = 192, 199 MMS_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED = 193, 200 MMS_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 194, 201 MMS_ERROR_TRANSIENT_NETWORK_PROBLEM = 195, 202 MMS_ERROR_TRANSIENT_PARTIAL_SUCCESS = 196, 203 MMS_ERROR_PERMANENT_FAILURE = 224, 204 MMS_ERROR_PERMANENT_SERVICE_DENIED = 225, 205 MMS_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226, 206 MMS_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED = 227, 207 MMS_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 228, 208 MMS_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED = 229, 209 MMS_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET = 230, 210 MMS_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231, 211 MMS_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED = 232, 212 MMS_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED = 233, 213 MMS_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED = 234, 214 MMS_ERROR_PERMANENT_LACK_OF_PREPAID = 235, 215 }; 216 217 /** 218 * @brief MmsSenderVisibility 219 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.52 X-Mms-Sender-Visibility Field 220 */ 221 enum class MmsSenderVisibility { 222 MMS_HIDE = 128, 223 MMS_SHOW = 129, 224 }; 225 226 /** 227 * @brief MmsStatus 228 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.54 X-Mms-Status Field 229 */ 230 enum class MmsStatus { 231 MMS_EXPIRED = 128, 232 MMS_RETRIEVED = 129, 233 MMS_REJECTED = 130, 234 MMS_DEFERRED = 131, 235 MMS_MMS_UNRECOGNISED = 132, 236 MMS_INDETERMINATE = 133, 237 MMS_FORWARDED = 134, 238 MMS_UNREACHABLE = 135, 239 }; 240 241 /** 242 * @brief MmsRetrieveStatus 243 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.50 X-Mms-Retrieve-Status Field 244 */ 245 enum class MmsRetrieveStatus { 246 MMS_RETRIEVE_STATUS_OK = 128, 247 MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_FAILURE = 192, 248 MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 193, 249 MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_NETWORK_PROBLEM = 194, 250 MMS_RETRIEVE_STATUS_ERROR_PERMANENT_FAILURE = 224, 251 MMS_RETRIEVE_STATUS_ERROR_PERMANENT_SERVICE_DENIED = 225, 252 MMS_RETRIEVE_STATUS_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 226, 253 MMS_RETRIEVE_STATUS_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227, 254 }; 255 256 /** 257 * @brief MmsReadStatus 258 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.38 X-Mms-Read-Status Field 259 */ 260 enum class MmsReadStatus { 261 MMS_READ = 128, 262 MMS_DELETED_WITHOUT_BEING_READ = 129, 263 }; 264 265 /** 266 * @brief MmsReplyCharging 267 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.43 X-Mms-Reply-Charging Field 268 */ 269 enum class MmsReplyCharging { 270 MMS_REQUESTED = 128, 271 MMS_REQUESTED_TEXT_ONLY = 129, 272 MMS_ACCEPTED = 130, 273 MMS_ACCEPTED_TEXT_ONLY = 131, 274 }; 275 276 /** 277 * @brief MmsReplyChargingDeadline 278 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.44 X-Mms-Reply-Charging-Deadline Field 279 */ 280 enum class MmsReplyChargingDeadline { 281 MMS_ABSOLUTE_TOKEN = 128, 282 MMS_RELATIVE_TOKEN = 129, 283 }; 284 285 /** 286 * @brief MmsMmState 287 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.33 X-Mms-MM-State Field 288 */ 289 enum class MmsMmState { 290 MMS_MM_STATE_DRAFT = 128, 291 MMS_MM_STATE_SENT = 129, 292 MMS_MM_STATE_NEW = 130, 293 MMS_MM_STATE_RETRIEVED = 131, 294 MMS_MM_STATE_FORWARDED = 132, 295 }; 296 297 /** 298 * @brief MmsMmFlags 299 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.32 X-Mms-MM-Flags Field 300 */ 301 enum class MmsMmFlags { 302 MMS_ADD_TOKEN = 128, 303 MMS_REMOVE_TOKEN = 129, 304 MMS_FILTER_TOKEN = 130, 305 }; 306 307 /** 308 * @brief MmsStoreStatus 309 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.58 X-Mms-Store-Status Field 310 */ 311 enum class MmsStoreStatus { 312 MMS_STORE_STATUS_SUCCESS = 128, 313 MMS_STORE_STATUS_ERROR_TRANSIENT_FAILURE = 192, 314 MMS_STORE_STATUS_ERROR_TRANSIENT_NETWORK_PROBLEM = 193, 315 MMS_STORE_STATUS_ERROR_PERMANENT_FAILURE = 224, 316 MMS_STORE_STATUS_ERROR_PERMANENT_SERVICE_DENIED = 225, 317 MMS_STORE_STATUS_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226, 318 MMS_STORE_STATUS_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 227, 319 MMS_STORE_STATUS_ERROR_PERMANENT_MMBOX_FULL = 228, 320 }; 321 322 /** 323 * @brief MmsMboxTotals 324 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.26 X-Mms-Mbox-Totals Field 325 */ 326 enum class MmsMboxTotals { 327 MMS_MESSAGE_TOTAL_TOKEN = 128, 328 MMS_SIZE_TOTAL_TOKEN = 129, 329 }; 330 331 /** 332 * @brief MmsMboxQuotas 333 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.25 X-Mms-Mbox-Quotas Field 334 */ 335 enum class MmsMboxQuotas { 336 MMS_MESSAGE_QUOTA_TOKEN = 128, 337 MMS_SIZE_QUOTA_TOKEN = 129, 338 }; 339 340 /** 341 * @brief MmsRecommendedRetrievalMode 342 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.39 X-Mms-Recommended-Retrieval-Mode Field 343 */ 344 enum class MmsRecommendedRetrievalMode { 345 MMS_MANUAL = 128, 346 }; 347 348 /** 349 * @brief MmsContentClass 350 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.9 X-Mms-Content-Class Field 351 */ 352 enum class MmsContentClass { 353 MMS_TEXT = 128, 354 MMS_IMAGE_BASIC = 129, 355 MMS_IMAGE_RICH = 130, 356 MMS_VIDEO_BASIC = 131, 357 MMS_VIDEO_RICH = 132, 358 MMS_MEGAPIXEL = 133, 359 MMS_CONTENT_BASIC = 134, 360 MMS_CONTENT_RICH = 135, 361 }; 362 363 /** 364 * @brief MmsCancelStatus 365 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.3.7 X-Mms-Cancel-Status Field 366 */ 367 enum class MmsCancelStatus { 368 MMS_CANCEL_REQUEST_SUCCESSFULLY_RECEIVED = 128, 369 MMS_CANCEL_REQUEST_CORRUPTED = 129, 370 }; 371 372 /** 373 * @brief MmsCharSets 374 * wap-230-wsp-20010705-a Table 42. Character Set Assignment Examples 375 */ 376 enum class MmsCharSets { 377 BIG5 = 0X07EA, 378 ISO_10646_UCS_2 = 0X03E8, 379 ISO_8859_1 = 0X04, 380 ISO_8859_2 = 0X05, 381 ISO_8859_3 = 0X06, 382 ISO_8859_4 = 0X07, 383 ISO_8859_5 = 0X08, 384 ISO_8859_6 = 0X09, 385 ISO_8859_7 = 0X0A, 386 ISO_8859_8 = 0X0B, 387 ISO_8859_9 = 0X0C, 388 SHIFT_JIS = 0X11, 389 US_ASCII = 0X03, 390 UTF_8 = 0X6A 391 }; 392 393 /** 394 * @brief Enumerates the selectivity type of MMS field. 395 */ 396 enum class MmsFieldOptType { 397 /** 398 * Indicates this MMS field is mandatory. 399 */ 400 MMS_MANDATORY_TYPE, 401 /** 402 * Indicates this MMS field is optional. 403 */ 404 MMS_OPTIONAL_TYPE, 405 /** 406 * Indicates this MMS field is unsupported. 407 */ 408 MMS_UNSUPPORTED_TYPE 409 }; 410 411 /** 412 * @brief Enumerates the EncodeString type of MMS field value. 413 */ 414 enum class MmsFieldValueType { 415 MMS_FIELD_OCTET_TYPE = 0x01, 416 MMS_FIELD_INTEGER_TYPE = 0x02, 417 MMS_FIELD_LONG_TYPE = 0x04, 418 MMS_FIELD_TEXT_TYPE = 0x08, 419 MMS_FIELD_ENCODE_TEXT_TYPE = 0x10, 420 MMS_FIELD_ENCODE_ADDR_TYPE = 0x20, 421 MMS_FIELD_UNKOWN_TYPE = 0x00 422 }; 423 424 /** 425 * @brief Enumerates the error code of MMS encode. 426 */ 427 enum class MmsEncodeErrcode { 428 MMS_OK, 429 MMS_NOT_SET_ERR, 430 MMS_BUFF_ERR 431 }; 432 433 /** 434 * @brief Used to save information about MMS header. 435 */ 436 struct MmsHeaderCategDes { 437 /** 438 * Indicates the id of MMS field. 439 */ 440 unsigned char fieldId = 0; 441 /** 442 * Indicates the selectivity type of MMS field. 443 */ 444 MmsFieldOptType fieldOpt = MmsFieldOptType::MMS_UNSUPPORTED_TYPE; 445 /** 446 * Indicates the EncodeString type of MMS field value. 447 */ 448 MmsFieldValueType valueType = MmsFieldValueType::MMS_FIELD_UNKOWN_TYPE; 449 }; 450 451 /** 452 * @brief Used to save information about MMS header name. 453 */ 454 struct KeyString { 455 unsigned char key = 0; 456 const char *value = nullptr; 457 }; 458 459 /** 460 * @brief Used to save information about MMS field. 461 */ 462 struct MmsFieldDes { 463 /** 464 * Indicates the id of MMS field. 465 */ 466 unsigned char fieldId = 0; 467 /** 468 * Indicates the EncodeString type of MMS field value. 469 */ 470 MmsFieldValueType type = MmsFieldValueType::MMS_FIELD_UNKOWN_TYPE; 471 }; 472 473 /** 474 * @brief Header Field Names and Assigned Numbers 475 * OMA-TS-MMS_ENC-V1_3-20110913-A section:7.4 Header Field Names and Assigned Numbers 476 */ 477 static const KeyString mmsHeaderNames[] = { 478 /** 479 * MMS 1.0 480 */ 481 { MMS_BCC, "Mms-Bcc" }, 482 { MMS_CC, "Mms-Cc" }, 483 { MMS_CONTENT_LOCATION, "Mms-Content-Location" }, 484 { MMS_CONTENT_TYPE, "Mms-Content-Type" }, 485 { MMS_DATE, "Mms-Date" }, 486 { MMS_DELIVERY_REPORT, "Mms-Delivery-Report" }, 487 { MMS_DELIVERY_TIME, "Mms-Delivery-Time" }, 488 { MMS_EXPIRY, "Mms-Expiry" }, 489 { MMS_FROM, "Mms-From" }, 490 { MMS_MESSAGE_CLASS, "Mms-Message-Class" }, 491 { MMS_MESSAGE_ID, "Mms-Message-ID" }, 492 { MMS_MESSAGE_TYPE, "Mms-Message-Type" }, 493 { MMS_MMS_VERSION, "Mms-Mms-Version" }, 494 { MMS_MESSAGE_SIZE, "Mms-Message-Size" }, 495 { MMS_PRIORITY, "Mms-Priority" }, 496 { MMS_READ_REPORT, "Mms-Read-Report" }, 497 { MMS_REPORT_ALLOWED, "Mms-Report-Allowed" }, 498 { MMS_RESPONSE_STATUS, "Mms-Response-Status" }, 499 { MMS_RESPONSE_TEXT, "Mms-Response-Text" }, 500 { MMS_SENDER_VISIBILITY, "Mms-X-Mms-Sender-Visibility" }, 501 { MMS_STATUS, "Mms-X-Mms-Status" }, 502 { MMS_SUBJECT, "Mms-Subject" }, 503 { MMS_TO, "Mms-To" }, 504 { MMS_TRANSACTION_ID, "Mms-X-Mms-Transaction-Id" }, 505 /** 506 * MMS 1.1 507 */ 508 { MMS_RETRIEVE_STATUS, "Mms-X-Mms-Retrieve-Status" }, 509 { MMS_RETRIEVE_TEXT, "Mms-X-Mms-Retrieve-Text" }, 510 { MMS_READ_STATUS, "Mms-X-Mms-Read-Status" }, 511 { MMS_REPLY_CHARGING, "Mms-X-Mms-Reply-Charging" }, 512 { MMS_REPLY_CHARGING_DEADLINE, "Mms-X-Mms-Reply-Charging-Deadline" }, 513 { MMS_REPLY_CHARGING_ID, "Mms-X-Mms-Reply-Charging-ID" }, 514 { MMS_REPLY_CHARGING_SIZE, "Mms-X-Mms-Reply-Charging-Size" }, 515 { MMS_PREVIOUSLY_SENT_BY, "Mms-X-Mms-Previously-Sent-By" }, 516 { MMS_PREVIOUSLY_SENT_DATE, "Mms-X-Mms-Previously-Sent-Date" }, 517 /** 518 * MMS 1.2 519 */ 520 { MMS_STORE, "Mms-X-Mms-Store" }, 521 { MMS_MM_STATE, "Mms-X-Mms-MM-State" }, 522 { MMS_MM_FLAGS, "Mms-X-Mms-MM-Flags" }, 523 { MMS_STORE_STATUS, "Mms-X-Mms-Store-Status" }, 524 { MMS_STORE_STATUS_TEXT, "Mms-X-Mms-Store-Status-Text" }, 525 { MMS_STORED, "Mms-X-Mms-Stored" }, 526 { MMS_ATTRIBUTES, "Mms-X-Mms-Attributes" }, 527 { MMS_TOTALS, "Mms-X-Mms-Totals" }, 528 { MMS_MBOX_TOTALS, "Mms-X-Mms-Mbox-Totals" }, 529 { MMS_QUOTAS, "Mms-X-Mms-Quotas" }, 530 { MMS_MBOX_QUOTAS, "Mms-X-Mms-Mbox-Quotas" }, 531 { MMS_MESSAGE_COUNT, "Mms-X-Mms-Message-Count" }, 532 { MMS_CONTENT, "Mms-Content" }, 533 { MMS_START, "Mms-X-Mms-Start" }, 534 { MMS_ADDITIONAL_HEADERS, "Mms-Additional-headers" }, 535 { MMS_DISTRIBUTION_INDICATOR, "Mms-X-Mms-Distribution-Indicator" }, 536 { MMS_ELEMENT_DESCRIPTOR, "Mms-X-Mms-Element-Descriptor" }, 537 { MMS_LIMIT, "Mms-X-Mms-Limit" }, 538 { MMS_RECOMMENDED_RETRIEVAL_MODE, "Mms-X-Mms-Recommended-Retrieval-Mode-Text" }, 539 { MMS_RECOMMENDED_RETRIEVAL_MODE_TEXT, "Mms-X-Mms-Recommended-Retrieval-Mode-Text" }, 540 { MMS_STATUS_TEXT, "Mms-X-Mms-Status-Text" }, 541 { MMS_APPLIC_ID, "Mms-X-Mms-Applic-ID" }, 542 { MMS_REPLY_APPLIC_ID, "Mms-X-Mms-Reply-Applic-ID" }, 543 { MMS_AUX_APPLIC_INFO, "Mms-X-Mms-Aux-Applic-Info" }, 544 { MMS_CONTENT_CLASS, "Mms-X-Mms-Content-Class" }, 545 { MMS_DRM_CONTENT, "Mms-X-Mms-DRM-Content" }, 546 { MMS_ADAPTATION_ALLOWED, "Mms-X-Mms-Adaptation-Allowed" }, 547 { MMS_REPLACE_ID, "Mms-X-Mms-Replace-ID" }, 548 { MMS_CANCEL_ID, "Mms-X-Mms-Cancel-ID" }, 549 { MMS_CANCEL_STATUS, "Mms-X-Mms-Cancel-Status" }, 550 551 { 0x00, "empty" }, 552 }; 553 } // namespace Telephony 554 } // namespace OHOS 555 #endif 556