dom/mobilemessage/src/gonk/mms_consts.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 // Encoded X-Mms-Message-Type values
michael@0 6 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.30
michael@0 7 this.MMS_PDU_TYPE_SEND_REQ = 128;
michael@0 8 this.MMS_PDU_TYPE_SEND_CONF = 129;
michael@0 9 this.MMS_PDU_TYPE_NOTIFICATION_IND = 130;
michael@0 10 this.MMS_PDU_TYPE_NOTIFYRESP_IND = 131;
michael@0 11 this.MMS_PDU_TYPE_RETRIEVE_CONF = 132;
michael@0 12 this.MMS_PDU_TYPE_ACKNOWLEDGE_IND = 133;
michael@0 13 this.MMS_PDU_TYPE_DELIVERY_IND = 134;
michael@0 14 this.MMS_PDU_TYPE_READ_REC_IND = 135;
michael@0 15 this.MMS_PDU_TYPE_READ_ORIG_IND = 136;
michael@0 16 this.MMS_PDU_TYPE_FORWARD_REQ = 137;
michael@0 17 this.MMS_PDU_TYPE_FORWARD_CONF = 138;
michael@0 18 this.MMS_PDU_TYPE_MBOX_STORE_REQ = 139;
michael@0 19 this.MMS_PDU_TYPE_MBOX_STORE_CONF = 140;
michael@0 20 this.MMS_PDU_TYPE_MBOX_VIEW_REQ = 141;
michael@0 21 this.MMS_PDU_TYPE_MBOX_VIEW_CONF = 142;
michael@0 22 this.MMS_PDU_TYPE_MBOX_UPLOAD_REQ = 143;
michael@0 23 this.MMS_PDU_TYPE_MBOX_UPLOAD_CONF = 144;
michael@0 24 this.MMS_PDU_TYPE_MBOX_DELETE_REQ = 145;
michael@0 25 this.MMS_PDU_TYPE_MBOX_DELETE_CONF = 146;
michael@0 26 this.MMS_PDU_TYPE_MBOX_DESCR = 147;
michael@0 27 this.MMS_PDU_TYPE_DELETE_REQ = 148;
michael@0 28 this.MMS_PDU_TYPE_DELETE_CONF = 149;
michael@0 29 this.MMS_PDU_TYPE_CANCEL_REQ = 150;
michael@0 30 this.MMS_PDU_TYPE_CANCEL_CONF = 151;
michael@0 31
michael@0 32 // MMS version
michael@0 33 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.34
michael@0 34 this.MMS_VERSION_1_1 = (0x01 << 4) | 0x01;
michael@0 35 this.MMS_VERSION_1_3 = (0x01 << 4) | 0x03;
michael@0 36
michael@0 37 // Common Status Values
michael@0 38 this.MMS_PDU_ERROR_OK = 128;
michael@0 39 this.MMS_PDU_ERROR_TRANSIENT_FAILURE = 192;
michael@0 40 this.MMS_PDU_ERROR_PERMANENT_FAILURE = 224;
michael@0 41
michael@0 42 // X-Mms-Response-Status values
michael@0 43 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.48
michael@0 44 // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 28, 29, 30
michael@0 45 //this.MMS_PDU_RESPONSE_ERROR_UNSPECIFIED = 129; (obsolete)
michael@0 46 //this.MMS_PDU_RESPONSE_ERROR_SERVICE_DENIED = 130; (obsolete)
michael@0 47 //this.MMS_PDU_RESPONSE_ERROR_MESSAGE_FORMAT_CORRUPT = 131; (obsolete)
michael@0 48 //this.MMS_PDU_RESPONSE_ERROR_SENDING_ADDRESS_UNRESOLVED = 132; (obsolete)
michael@0 49 //this.MMS_PDU_RESPONSE_ERROR_MESSAGE_NOT_FOUND = 133; (obsolete)
michael@0 50 //this.MMS_PDU_RESPONSE_ERROR_NETWORK_PROBLEM = 134; (obsolete)
michael@0 51 //this.MMS_PDU_RESPONSE_ERROR_CONTENT_NOT_ACCEPTED = 135; (obsolete)
michael@0 52 this.MMS_PDU_RESPONSE_ERROR_UNSUPPORTED_MESSAGE = 136;
michael@0 53 this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED = 193;
michael@0 54 this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 194;
michael@0 55 this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_NETWORK_PROBLEM = 195;
michael@0 56 this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_PARTIAL_SUCCESS = 196;
michael@0 57 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SERVICE_DENIED = 225;
michael@0 58 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226;
michael@0 59 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED = 227;
michael@0 60 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 228;
michael@0 61 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED = 229;
michael@0 62 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET = 230;
michael@0 63 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231;
michael@0 64 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED = 232;
michael@0 65 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED = 233;
michael@0 66 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED = 234;
michael@0 67 this.MMS_PDU_RESPONSE_ERROR_PERMANENT_LACK_OF_PREPAID = 235;
michael@0 68
michael@0 69 // X-Mms-Retrieve-Status values
michael@0 70 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.50
michael@0 71 // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 31
michael@0 72 this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 193;
michael@0 73 this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_NETWORK_PROBLEM = 194;
michael@0 74 this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_SERVICE_DENIED = 225;
michael@0 75 this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 226;
michael@0 76 this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227;
michael@0 77
michael@0 78 // X-Mms-Store-Status values
michael@0 79 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.58
michael@0 80 // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 35
michael@0 81 this.MMS_PDU_STORE_ERROR_TRANSIENT_NETWORK_PROBLEM = 193;
michael@0 82 this.MMS_PDU_STORE_ERROR_PERMANENT_SERVICE_DENIED = 225;
michael@0 83 this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226;
michael@0 84 this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 227;
michael@0 85 this.MMS_PDU_STORE_ERROR_PERMANENT_MMBOX_FULL = 228;
michael@0 86
michael@0 87 // X-Mms-Status values
michael@0 88 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.54
michael@0 89 this.MMS_PDU_STATUS_EXPIRED = 128;
michael@0 90 this.MMS_PDU_STATUS_RETRIEVED = 129;
michael@0 91 this.MMS_PDU_STATUS_REJECTED = 130;
michael@0 92 this.MMS_PDU_STATUS_DEFERRED = 131;
michael@0 93 this.MMS_PDU_STATUS_UNRECOGNISED = 132;
michael@0 94 this.MMS_PDU_STATUS_INDETERMINATE = 133;
michael@0 95 this.MMS_PDU_STATUS_FORWARDED = 134;
michael@0 96 this.MMS_PDU_STATUS_UNREACHABLE = 135;
michael@0 97
michael@0 98 // X-Mms-Cancel-Status values
michael@0 99 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.7
michael@0 100 this.MMS_PDU_CANCEL_STATUS_RECEIVED = 128;
michael@0 101 this.MMS_PDU_CANCEL_STATUS_CORRUPTED = 129;
michael@0 102
michael@0 103 // X-Mms-Sender-Visibility
michael@0 104 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.52
michael@0 105 this.MMS_PDU_SENDER_VISIBILITY_HIDE = 128;
michael@0 106 this.MMS_PDU_SENDER_VISIBILITY_SHOW = 129;
michael@0 107
michael@0 108 // X-Mms-Read-Status
michael@0 109 // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.38
michael@0 110 this.MMS_PDU_READ_STATUS_READ = 128;
michael@0 111 this.MMS_PDU_READ_STATUS_DELETED_UNREAD = 129;
michael@0 112
michael@0 113 // Maximum Values of MMS Parameters
michael@0 114 // @see OMA-TS-MMS_CONF-V1_3-20110511-C 10.2.5
michael@0 115 this.MMS_MAX_LENGTH_SUBJECT = 40;
michael@0 116 this.MMS_MAX_LENGTH_RECIPIENT = 312;
michael@0 117 this.MMS_MAX_TOTAL_RECIPIENTS = 20;
michael@0 118 this.MMS_MAX_LENGTH_NAME_CONTENT_TYPE = 40;
michael@0 119 this.MMS_MAX_LENGTH_MAILBOX_PORTION = 256;
michael@0 120
michael@0 121 this.DOM_READ_STATUS_NOT_APPLICABLE = "not-applicable";
michael@0 122 this.DOM_READ_STATUS_SUCCESS = "success";
michael@0 123 this.DOM_READ_STATUS_PENDING = "pending";
michael@0 124 this.DOM_READ_STATUS_ERROR = "error";
michael@0 125
michael@0 126 this.ALL_CONST_SYMBOLS = undefined; // We want ALL_CONST_SYMBOLS to be exported.
michael@0 127 this.ALL_CONST_SYMBOLS = Object.keys(this);
michael@0 128
michael@0 129 // Allow this file to be imported via Components.utils.import().
michael@0 130 this.EXPORTED_SYMBOLS = ALL_CONST_SYMBOLS;
michael@0 131

mercurial