• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CONF-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_CONF-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 enum class MmsVersionType {
124     MMS_VERSION_1_0 = 0x10,
125     MMS_VERSION_1_1 = 0x11,
126     MMS_VERSION_1_2 = 0x12,
127     MMS_VERSION_1_3 = 0x13,
128 };
129 
130 /**
131  * @brief MmsBoolType
132  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.37 X-Mms-Read-Report Field
133  */
134 enum class MmsBoolType {
135     MMS_YES                         = 128,
136     MMS_NO                          = 129,
137 };
138 
139 /**
140  * @brief MmsMessageClass
141  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.27 X-Mms-Message-Class Field
142  */
143 enum class MmsMessageClass {
144     PERSONAL =	128,
145     ADVERTISEMENT =	129,
146     INFORMATIONAL =	130,
147     AUTO = 	131,
148 };
149 
150 /**
151  * @brief MmsExpiry
152  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.20 X-Mms-Expiry Field
153  */
154 enum class MmsExpiry {
155     ABSOLUTE_TOKEN = 128,
156     RELATIVE_TOKEN = 129,
157 };
158 
159 /**
160  * @brief MmsPriority
161  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.35 X-Mms-Priority Field
162  */
163 enum class MmsPriority {
164     MMS_LOW                         = 128,
165     MMS_NORMAL                      = 129,
166     MMS_HIGH                        = 130,
167 };
168 
169 /**
170  * @brief MmsResponseStatus
171  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.48 X-Mms-Response-Status Field
172  */
173 enum class MmsResponseStatus {
174     MMS_OK                                                  = 128,
175     MMS_ERROR_UNSPECIFIED                                   = 129,
176     MMS_ERROR_SERVICE_DENIED                                = 130,
177     MMS_ERROR_MESSAGE_FORMAT_CORRUPT                        = 131,
178     MMS_ERROR_SENDING_ADDRESS_UNRESOLVED                    = 132,
179     MMS_ERROR_MESSAGE_NOT_FOUND                             = 133,
180     MMS_ERROR_NETWORK_PROBLEM                               = 134,
181     MMS_ERROR_CONTENT_NOT_ACCEPTED                          = 135,
182     MMS_ERROR_UNSUPPORTED_MESSAGE                           = 136,
183     MMS_ERROR_TRANSIENT_FAILURE                             = 192,
184     MMS_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED          = 193,
185     MMS_ERROR_TRANSIENT_MESSAGE_NOT_FOUND                   = 194,
186     MMS_ERROR_TRANSIENT_NETWORK_PROBLEM                     = 195,
187     MMS_ERROR_TRANSIENT_PARTIAL_SUCCESS                     = 196,
188     MMS_ERROR_PERMANENT_FAILURE                             = 224,
189     MMS_ERROR_PERMANENT_SERVICE_DENIED                      = 225,
190     MMS_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT              = 226,
191     MMS_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED          = 227,
192     MMS_ERROR_PERMANENT_MESSAGE_NOT_FOUND                   = 228,
193     MMS_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED                = 229,
194     MMS_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET  = 230,
195     MMS_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231,
196     MMS_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED    = 232,
197     MMS_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED        = 233,
198     MMS_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED        = 234,
199     MMS_ERROR_PERMANENT_LACK_OF_PREPAID                     = 235,
200 };
201 
202 /**
203  * @brief MmsSenderVisibility
204  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.52 X-Mms-Sender-Visibility Field
205  */
206 enum class MmsSenderVisibility {
207     MMS_HIDE                         = 128,
208     MMS_SHOW                         = 129,
209 };
210 
211 /**
212  * @brief MmsStatus
213  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.54 X-Mms-Status Field
214  */
215 enum class MmsStatus {
216     MMS_EXPIRED                      = 128,
217     MMS_RETRIEVED                    = 129,
218     MMS_REJECTED                     = 130,
219     MMS_DEFERRED                     = 131,
220     MMS_MMS_UNRECOGNISED             = 132,
221     MMS_INDETERMINATE                = 133,
222     MMS_FORWARDED                    = 134,
223     MMS_UNREACHABLE                  = 135,
224 };
225 
226 /**
227  * @brief MmsRetrieveStatus
228  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.50 X-Mms-Retrieve-Status Field
229  */
230 enum class MmsRetrieveStatus {
231     MMS_RETRIEVE_STATUS_OK                                  = 128,
232     MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_FAILURE             = 192,
233     MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_MESSAGE_NOT_FOUND   = 193,
234     MMS_RETRIEVE_STATUS_ERROR_TRANSIENT_NETWORK_PROBLEM     = 194,
235     MMS_RETRIEVE_STATUS_ERROR_PERMANENT_FAILURE             = 224,
236     MMS_RETRIEVE_STATUS_ERROR_PERMANENT_SERVICE_DENIED      = 225,
237     MMS_RETRIEVE_STATUS_ERROR_PERMANENT_MESSAGE_NOT_FOUND   = 226,
238     MMS_RETRIEVE_STATUS_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227,
239 };
240 
241 /**
242  * @brief MmsReadStatus
243  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.38 X-Mms-Read-Status Field
244  */
245 enum class MmsReadStatus {
246     MMS_READ                            = 128,
247     MMS_DELETED_WITHOUT_BEING_READ      = 129,
248 };
249 
250 /**
251  * @brief MmsReplyCharging
252  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.43 X-Mms-Reply-Charging Field
253  */
254 enum class MmsReplyCharging {
255     MMS_REQUESTED               = 128,
256     MMS_REQUESTED_TEXT_ONLY     = 129,
257     MMS_ACCEPTED                = 130,
258     MMS_ACCEPTED_TEXT_ONLY      = 131,
259 };
260 
261 /**
262  * @brief MmsReplyChargingDeadline
263  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.44 X-Mms-Reply-Charging-Deadline Field
264  */
265 enum class MmsReplyChargingDeadline {
266     MMS_ABSOLUTE_TOKEN              = 128,
267     MMS_RELATIVE_TOKEN              = 129,
268 };
269 
270 /**
271  * @brief MmsMmState
272  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.33 X-Mms-MM-State Field
273  */
274 enum class MmsMmState {
275     MMS_MM_STATE_DRAFT                        = 128,
276     MMS_MM_STATE_SENT                         = 129,
277     MMS_MM_STATE_NEW                          = 130,
278     MMS_MM_STATE_RETRIEVED                    = 131,
279     MMS_MM_STATE_FORWARDED                    = 132,
280 };
281 
282 /**
283  * @brief MmsMmFlags
284  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.32 X-Mms-MM-Flags Field
285  */
286 enum class MmsMmFlags {
287     MMS_ADD_TOKEN                       = 128,
288     MMS_REMOVE_TOKEN                    = 129,
289     MMS_FILTER_TOKEN                    = 130,
290 };
291 
292 /**
293  * @brief MmsStoreStatus
294  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.58 X-Mms-Store-Status Field
295  */
296 enum class MmsStoreStatus {
297     MMS_STORE_STATUS_SUCCESS                                 = 128,
298     MMS_STORE_STATUS_ERROR_TRANSIENT_FAILURE                 = 192,
299     MMS_STORE_STATUS_ERROR_TRANSIENT_NETWORK_PROBLEM         = 193,
300     MMS_STORE_STATUS_ERROR_PERMANENT_FAILURE                 = 224,
301     MMS_STORE_STATUS_ERROR_PERMANENT_SERVICE_DENIED          = 225,
302     MMS_STORE_STATUS_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT  = 226,
303     MMS_STORE_STATUS_ERROR_PERMANENT_MESSAGE_NOT_FOUND       = 227,
304     MMS_STORE_STATUS_ERROR_PERMANENT_MMBOX_FULL              = 228,
305 };
306 
307 /**
308  * @brief MmsMboxTotals
309  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.26 X-Mms-Mbox-Totals Field
310  */
311 enum class MmsMboxTotals {
312     MMS_MESSAGE_TOTAL_TOKEN                     = 128,
313     MMS_SIZE_TOTAL_TOKEN                        = 129,
314 };
315 
316 /**
317  * @brief MmsMboxQuotas
318  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.25 X-Mms-Mbox-Quotas Field
319  */
320 enum class MmsMboxQuotas {
321     MMS_MESSAGE_QUOTA_TOKEN                     = 128,
322     MMS_SIZE_QUOTA_TOKEN                        = 129,
323 };
324 
325 /**
326  * @brief MmsRecommendedRetrievalMode
327  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.39 X-Mms-Recommended-Retrieval-Mode Field
328  */
329 enum class MmsRecommendedRetrievalMode {
330     MMS_MANUAL                                  = 128,
331 };
332 
333 /**
334  * @brief MmsContentClass
335  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.9 X-Mms-Content-Class Field
336  */
337 enum class MmsContentClass {
338     MMS_TEXT                                    = 128,
339     MMS_IMAGE_BASIC                             = 129,
340     MMS_IMAGE_RICH                              = 130,
341     MMS_VIDEO_BASIC                             = 131,
342     MMS_VIDEO_RICH                              = 132,
343     MMS_MEGAPIXEL                               = 133,
344     MMS_CONTENT_BASIC                           = 134,
345     MMS_CONTENT_RICH                            = 135,
346 };
347 
348 /**
349  * @brief MmsCancelStatus
350  * OMA-TS-MMS_CONF-V1_3-20110913-A   section:7.3.7 X-Mms-Cancel-Status Field
351  */
352 enum class MmsCancelStatus {
353     MMS_CANCEL_REQUEST_SUCCESSFULLY_RECEIVED    = 128,
354     MMS_CANCEL_REQUEST_CORRUPTED                = 129,
355 };
356 
357 /**
358  * @brief MmsCharSets
359  * wap-230-wsp-20010705-a   Table 42. Character Set Assignment Examples
360  */
361 enum class MmsCharSets {
362     BIG5 = 0X07EA,
363     ISO_10646_UCS_2 = 0X03E8,
364     ISO_8859_1 = 0X04,
365     ISO_8859_2 = 0X05,
366     ISO_8859_3 = 0X06,
367     ISO_8859_4 = 0X07,
368     ISO_8859_5 = 0X08,
369     ISO_8859_6 = 0X09,
370     ISO_8859_7 = 0X0A,
371     ISO_8859_8 = 0X0B,
372     ISO_8859_9 = 0X0C,
373     SHIFT_JIS = 0X11,
374     US_ASCII = 0X03,
375     UTF_8 = 0X6A
376 };
377 
378 enum class MmsFieldOptType {
379     MMS_MANDATORY_TYPE,
380     MMS_OPTIONAL_TYPE,
381     MMS_UNSUPPORTED_TYPE
382 };
383 
384 enum class MmsFieldValueType {
385     MMS_FIELD_OCTET_TYPE = 0x01,
386     MMS_FIELD_INTEGER_TYPE = 0x02,
387     MMS_FIELD_LONG_TYPE = 0x04,
388     MMS_FIELD_TEXT_TYPE = 0x08,
389     MMS_FIELD_ENCODE_TEXT_TYPE = 0x10,
390     MMS_FIELD_ENCODE_ADDR_TYPE = 0x20,
391     MMS_FIELD_UNKOWN_TYPE = 0x00
392 };
393 
394 enum class MmsEncodeErrcode {
395     MMS_OK,
396     MMS_NOT_SET_ERR,
397     MMS_BUFF_ERR
398 };
399 
400 struct MmsHeaderCategDes {
401     unsigned char fieldId;
402     MmsFieldOptType fieldOpt;
403     MmsFieldValueType valueType;
404 };
405 
406 struct KeyString {
407     unsigned char key;
408     const char *value;
409 };
410 
411 struct MmsFieldDes {
412     unsigned char fieldId;
413     MmsFieldValueType type;
414 };
415 
416 /**
417 * OMA-TS-MMS_ENC-V1_3-20110913-A.pdf
418 * 7.4 Header Field Names and Assigned Numbers
419 */
420 static const KeyString mmsHeaderNames[] = {
421     /* MMS 1.0 */
422     { MMS_BCC,                           "Mms-Bcc" },
423     { MMS_CC,                            "Mms-Cc" },
424     { MMS_CONTENT_LOCATION,              "Mms-Content-Location" },
425     { MMS_CONTENT_TYPE,                  "Mms-Content-Type" },
426     { MMS_DATE,                          "Mms-Date" },
427     { MMS_DELIVERY_REPORT,               "Mms-Delivery-Report" },
428     { MMS_DELIVERY_TIME,                 "Mms-Delivery-Time" },
429     { MMS_EXPIRY,                        "Mms-Expiry" },
430     { MMS_FROM,                          "Mms-From" },
431     { MMS_MESSAGE_CLASS,                 "Mms-Message-Class" },
432     { MMS_MESSAGE_ID,                    "Mms-Message-ID" },
433     { MMS_MESSAGE_TYPE,                  "Mms-Message-Type" },
434     { MMS_MMS_VERSION,                   "Mms-Mms-Version" },
435     { MMS_MESSAGE_SIZE,                  "Mms-Message-Size" },
436     { MMS_PRIORITY,                      "Mms-Priority" },
437     { MMS_READ_REPORT,                   "Mms-Read-Report" },
438     { MMS_REPORT_ALLOWED,                "Mms-Report-Allowed" },
439     { MMS_RESPONSE_STATUS,               "Mms-Response-Status" },
440     { MMS_RESPONSE_TEXT,                 "Mms-Response-Text" },
441     { MMS_SENDER_VISIBILITY,             "Mms-X-Mms-Sender-Visibility" },
442     { MMS_STATUS,                        "Mms-X-Mms-Status" },
443     { MMS_SUBJECT,                       "Mms-Subject" },
444     { MMS_TO,                            "Mms-To" },
445     { MMS_TRANSACTION_ID,                "Mms-X-Mms-Transaction-Id" },
446     /* MMS 1.1 */
447     { MMS_RETRIEVE_STATUS,               "Mms-X-Mms-Retrieve-Status" },
448     { MMS_RETRIEVE_TEXT,                 "Mms-X-Mms-Retrieve-Text" },
449     { MMS_READ_STATUS,                   "Mms-X-Mms-Read-Status" },
450     { MMS_REPLY_CHARGING,                "Mms-X-Mms-Reply-Charging" },
451     { MMS_REPLY_CHARGING_DEADLINE,       "Mms-X-Mms-Reply-Charging-Deadline" },
452     { MMS_REPLY_CHARGING_ID,             "Mms-X-Mms-Reply-Charging-ID" },
453     { MMS_REPLY_CHARGING_SIZE,           "Mms-X-Mms-Reply-Charging-Size" },
454     { MMS_PREVIOUSLY_SENT_BY,            "Mms-X-Mms-Previously-Sent-By" },
455     { MMS_PREVIOUSLY_SENT_DATE,          "Mms-X-Mms-Previously-Sent-Date" },
456     /* MMS 1.2 */
457     { MMS_STORE,                         "Mms-X-Mms-Store" },
458     { MMS_MM_STATE,                      "Mms-X-Mms-MM-State" },
459     { MMS_MM_FLAGS,                      "Mms-X-Mms-MM-Flags" },
460     { MMS_STORE_STATUS,                  "Mms-X-Mms-Store-Status" },
461     { MMS_STORE_STATUS_TEXT,             "Mms-X-Mms-Store-Status-Text" },
462     { MMS_STORED,                        "Mms-X-Mms-Stored" },
463     { MMS_ATTRIBUTES,                    "Mms-X-Mms-Attributes" },
464     { MMS_TOTALS,                        "Mms-X-Mms-Totals" },
465     { MMS_MBOX_TOTALS,                   "Mms-X-Mms-Mbox-Totals" },
466     { MMS_QUOTAS,                        "Mms-X-Mms-Quotas" },
467     { MMS_MBOX_QUOTAS,                   "Mms-X-Mms-Mbox-Quotas" },
468     { MMS_MESSAGE_COUNT,                 "Mms-X-Mms-Message-Count" },
469     { MMS_CONTENT,                       "Mms-Content" },
470     { MMS_START,                         "Mms-X-Mms-Start" },
471     { MMS_ADDITIONAL_HEADERS,            "Mms-Additional-headers" },
472     { MMS_DISTRIBUTION_INDICATOR,        "Mms-X-Mms-Distribution-Indicator" },
473     { MMS_ELEMENT_DESCRIPTOR,            "Mms-X-Mms-Element-Descriptor" },
474     { MMS_LIMIT,                         "Mms-X-Mms-Limit" },
475     { MMS_RECOMMENDED_RETRIEVAL_MODE,     "Mms-X-Mms-Recommended-Retrieval-Mode-Text" },
476     { MMS_RECOMMENDED_RETRIEVAL_MODE_TEXT, "Mms-X-Mms-Recommended-Retrieval-Mode-Text" },
477     { MMS_STATUS_TEXT,                   "Mms-X-Mms-Status-Text" },
478     { MMS_APPLIC_ID,                     "Mms-X-Mms-Applic-ID" },
479     { MMS_REPLY_APPLIC_ID,               "Mms-X-Mms-Reply-Applic-ID" },
480     { MMS_AUX_APPLIC_INFO,               "Mms-X-Mms-Aux-Applic-Info" },
481     { MMS_CONTENT_CLASS,                 "Mms-X-Mms-Content-Class" },
482     { MMS_DRM_CONTENT,                   "Mms-X-Mms-DRM-Content" },
483     { MMS_ADAPTATION_ALLOWED,            "Mms-X-Mms-Adaptation-Allowed" },
484     { MMS_REPLACE_ID,                    "Mms-X-Mms-Replace-ID" },
485     { MMS_CANCEL_ID,                     "Mms-X-Mms-Cancel-ID" },
486     { MMS_CANCEL_STATUS,                 "Mms-X-Mms-Cancel-Status" },
487 
488     { 0x00, "empty" },
489 };
490 } // namespace Telephony
491 } // namespace OHOS
492 #endif
493