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