1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/src/gonk/mms_consts.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,131 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +// Encoded X-Mms-Message-Type values 1.9 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.30 1.10 +this.MMS_PDU_TYPE_SEND_REQ = 128; 1.11 +this.MMS_PDU_TYPE_SEND_CONF = 129; 1.12 +this.MMS_PDU_TYPE_NOTIFICATION_IND = 130; 1.13 +this.MMS_PDU_TYPE_NOTIFYRESP_IND = 131; 1.14 +this.MMS_PDU_TYPE_RETRIEVE_CONF = 132; 1.15 +this.MMS_PDU_TYPE_ACKNOWLEDGE_IND = 133; 1.16 +this.MMS_PDU_TYPE_DELIVERY_IND = 134; 1.17 +this.MMS_PDU_TYPE_READ_REC_IND = 135; 1.18 +this.MMS_PDU_TYPE_READ_ORIG_IND = 136; 1.19 +this.MMS_PDU_TYPE_FORWARD_REQ = 137; 1.20 +this.MMS_PDU_TYPE_FORWARD_CONF = 138; 1.21 +this.MMS_PDU_TYPE_MBOX_STORE_REQ = 139; 1.22 +this.MMS_PDU_TYPE_MBOX_STORE_CONF = 140; 1.23 +this.MMS_PDU_TYPE_MBOX_VIEW_REQ = 141; 1.24 +this.MMS_PDU_TYPE_MBOX_VIEW_CONF = 142; 1.25 +this.MMS_PDU_TYPE_MBOX_UPLOAD_REQ = 143; 1.26 +this.MMS_PDU_TYPE_MBOX_UPLOAD_CONF = 144; 1.27 +this.MMS_PDU_TYPE_MBOX_DELETE_REQ = 145; 1.28 +this.MMS_PDU_TYPE_MBOX_DELETE_CONF = 146; 1.29 +this.MMS_PDU_TYPE_MBOX_DESCR = 147; 1.30 +this.MMS_PDU_TYPE_DELETE_REQ = 148; 1.31 +this.MMS_PDU_TYPE_DELETE_CONF = 149; 1.32 +this.MMS_PDU_TYPE_CANCEL_REQ = 150; 1.33 +this.MMS_PDU_TYPE_CANCEL_CONF = 151; 1.34 + 1.35 +// MMS version 1.36 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.34 1.37 +this.MMS_VERSION_1_1 = (0x01 << 4) | 0x01; 1.38 +this.MMS_VERSION_1_3 = (0x01 << 4) | 0x03; 1.39 + 1.40 +// Common Status Values 1.41 +this.MMS_PDU_ERROR_OK = 128; 1.42 +this.MMS_PDU_ERROR_TRANSIENT_FAILURE = 192; 1.43 +this.MMS_PDU_ERROR_PERMANENT_FAILURE = 224; 1.44 + 1.45 +// X-Mms-Response-Status values 1.46 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.48 1.47 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 28, 29, 30 1.48 +//this.MMS_PDU_RESPONSE_ERROR_UNSPECIFIED = 129; (obsolete) 1.49 +//this.MMS_PDU_RESPONSE_ERROR_SERVICE_DENIED = 130; (obsolete) 1.50 +//this.MMS_PDU_RESPONSE_ERROR_MESSAGE_FORMAT_CORRUPT = 131; (obsolete) 1.51 +//this.MMS_PDU_RESPONSE_ERROR_SENDING_ADDRESS_UNRESOLVED = 132; (obsolete) 1.52 +//this.MMS_PDU_RESPONSE_ERROR_MESSAGE_NOT_FOUND = 133; (obsolete) 1.53 +//this.MMS_PDU_RESPONSE_ERROR_NETWORK_PROBLEM = 134; (obsolete) 1.54 +//this.MMS_PDU_RESPONSE_ERROR_CONTENT_NOT_ACCEPTED = 135; (obsolete) 1.55 +this.MMS_PDU_RESPONSE_ERROR_UNSUPPORTED_MESSAGE = 136; 1.56 +this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED = 193; 1.57 +this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 194; 1.58 +this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_NETWORK_PROBLEM = 195; 1.59 +this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_PARTIAL_SUCCESS = 196; 1.60 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SERVICE_DENIED = 225; 1.61 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226; 1.62 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED = 227; 1.63 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 228; 1.64 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED = 229; 1.65 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET = 230; 1.66 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231; 1.67 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED = 232; 1.68 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED = 233; 1.69 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED = 234; 1.70 +this.MMS_PDU_RESPONSE_ERROR_PERMANENT_LACK_OF_PREPAID = 235; 1.71 + 1.72 +// X-Mms-Retrieve-Status values 1.73 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.50 1.74 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 31 1.75 +this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 193; 1.76 +this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_NETWORK_PROBLEM = 194; 1.77 +this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_SERVICE_DENIED = 225; 1.78 +this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 226; 1.79 +this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227; 1.80 + 1.81 +// X-Mms-Store-Status values 1.82 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.58 1.83 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 35 1.84 +this.MMS_PDU_STORE_ERROR_TRANSIENT_NETWORK_PROBLEM = 193; 1.85 +this.MMS_PDU_STORE_ERROR_PERMANENT_SERVICE_DENIED = 225; 1.86 +this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226; 1.87 +this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 227; 1.88 +this.MMS_PDU_STORE_ERROR_PERMANENT_MMBOX_FULL = 228; 1.89 + 1.90 +// X-Mms-Status values 1.91 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.54 1.92 +this.MMS_PDU_STATUS_EXPIRED = 128; 1.93 +this.MMS_PDU_STATUS_RETRIEVED = 129; 1.94 +this.MMS_PDU_STATUS_REJECTED = 130; 1.95 +this.MMS_PDU_STATUS_DEFERRED = 131; 1.96 +this.MMS_PDU_STATUS_UNRECOGNISED = 132; 1.97 +this.MMS_PDU_STATUS_INDETERMINATE = 133; 1.98 +this.MMS_PDU_STATUS_FORWARDED = 134; 1.99 +this.MMS_PDU_STATUS_UNREACHABLE = 135; 1.100 + 1.101 +// X-Mms-Cancel-Status values 1.102 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.7 1.103 +this.MMS_PDU_CANCEL_STATUS_RECEIVED = 128; 1.104 +this.MMS_PDU_CANCEL_STATUS_CORRUPTED = 129; 1.105 + 1.106 +// X-Mms-Sender-Visibility 1.107 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.52 1.108 +this.MMS_PDU_SENDER_VISIBILITY_HIDE = 128; 1.109 +this.MMS_PDU_SENDER_VISIBILITY_SHOW = 129; 1.110 + 1.111 +// X-Mms-Read-Status 1.112 +// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.38 1.113 +this.MMS_PDU_READ_STATUS_READ = 128; 1.114 +this.MMS_PDU_READ_STATUS_DELETED_UNREAD = 129; 1.115 + 1.116 +// Maximum Values of MMS Parameters 1.117 +// @see OMA-TS-MMS_CONF-V1_3-20110511-C 10.2.5 1.118 +this.MMS_MAX_LENGTH_SUBJECT = 40; 1.119 +this.MMS_MAX_LENGTH_RECIPIENT = 312; 1.120 +this.MMS_MAX_TOTAL_RECIPIENTS = 20; 1.121 +this.MMS_MAX_LENGTH_NAME_CONTENT_TYPE = 40; 1.122 +this.MMS_MAX_LENGTH_MAILBOX_PORTION = 256; 1.123 + 1.124 +this.DOM_READ_STATUS_NOT_APPLICABLE = "not-applicable"; 1.125 +this.DOM_READ_STATUS_SUCCESS = "success"; 1.126 +this.DOM_READ_STATUS_PENDING = "pending"; 1.127 +this.DOM_READ_STATUS_ERROR = "error"; 1.128 + 1.129 +this.ALL_CONST_SYMBOLS = undefined; // We want ALL_CONST_SYMBOLS to be exported. 1.130 +this.ALL_CONST_SYMBOLS = Object.keys(this); 1.131 + 1.132 +// Allow this file to be imported via Components.utils.import(). 1.133 +this.EXPORTED_SYMBOLS = ALL_CONST_SYMBOLS; 1.134 +