michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // Encoded X-Mms-Message-Type values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.30 michael@0: this.MMS_PDU_TYPE_SEND_REQ = 128; michael@0: this.MMS_PDU_TYPE_SEND_CONF = 129; michael@0: this.MMS_PDU_TYPE_NOTIFICATION_IND = 130; michael@0: this.MMS_PDU_TYPE_NOTIFYRESP_IND = 131; michael@0: this.MMS_PDU_TYPE_RETRIEVE_CONF = 132; michael@0: this.MMS_PDU_TYPE_ACKNOWLEDGE_IND = 133; michael@0: this.MMS_PDU_TYPE_DELIVERY_IND = 134; michael@0: this.MMS_PDU_TYPE_READ_REC_IND = 135; michael@0: this.MMS_PDU_TYPE_READ_ORIG_IND = 136; michael@0: this.MMS_PDU_TYPE_FORWARD_REQ = 137; michael@0: this.MMS_PDU_TYPE_FORWARD_CONF = 138; michael@0: this.MMS_PDU_TYPE_MBOX_STORE_REQ = 139; michael@0: this.MMS_PDU_TYPE_MBOX_STORE_CONF = 140; michael@0: this.MMS_PDU_TYPE_MBOX_VIEW_REQ = 141; michael@0: this.MMS_PDU_TYPE_MBOX_VIEW_CONF = 142; michael@0: this.MMS_PDU_TYPE_MBOX_UPLOAD_REQ = 143; michael@0: this.MMS_PDU_TYPE_MBOX_UPLOAD_CONF = 144; michael@0: this.MMS_PDU_TYPE_MBOX_DELETE_REQ = 145; michael@0: this.MMS_PDU_TYPE_MBOX_DELETE_CONF = 146; michael@0: this.MMS_PDU_TYPE_MBOX_DESCR = 147; michael@0: this.MMS_PDU_TYPE_DELETE_REQ = 148; michael@0: this.MMS_PDU_TYPE_DELETE_CONF = 149; michael@0: this.MMS_PDU_TYPE_CANCEL_REQ = 150; michael@0: this.MMS_PDU_TYPE_CANCEL_CONF = 151; michael@0: michael@0: // MMS version michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.34 michael@0: this.MMS_VERSION_1_1 = (0x01 << 4) | 0x01; michael@0: this.MMS_VERSION_1_3 = (0x01 << 4) | 0x03; michael@0: michael@0: // Common Status Values michael@0: this.MMS_PDU_ERROR_OK = 128; michael@0: this.MMS_PDU_ERROR_TRANSIENT_FAILURE = 192; michael@0: this.MMS_PDU_ERROR_PERMANENT_FAILURE = 224; michael@0: michael@0: // X-Mms-Response-Status values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.48 michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 28, 29, 30 michael@0: //this.MMS_PDU_RESPONSE_ERROR_UNSPECIFIED = 129; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_SERVICE_DENIED = 130; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_MESSAGE_FORMAT_CORRUPT = 131; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_SENDING_ADDRESS_UNRESOLVED = 132; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_MESSAGE_NOT_FOUND = 133; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_NETWORK_PROBLEM = 134; (obsolete) michael@0: //this.MMS_PDU_RESPONSE_ERROR_CONTENT_NOT_ACCEPTED = 135; (obsolete) michael@0: this.MMS_PDU_RESPONSE_ERROR_UNSUPPORTED_MESSAGE = 136; michael@0: this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED = 193; michael@0: this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 194; michael@0: this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_NETWORK_PROBLEM = 195; michael@0: this.MMS_PDU_RESPONSE_ERROR_TRANSIENT_PARTIAL_SUCCESS = 196; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SERVICE_DENIED = 225; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED = 227; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 228; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED = 229; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET = 230; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED = 232; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED = 233; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED = 234; michael@0: this.MMS_PDU_RESPONSE_ERROR_PERMANENT_LACK_OF_PREPAID = 235; michael@0: michael@0: // X-Mms-Retrieve-Status values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.50 michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 31 michael@0: this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 193; michael@0: this.MMS_PDU_RETRIEVE_ERROR_TRANSIENT_NETWORK_PROBLEM = 194; michael@0: this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_SERVICE_DENIED = 225; michael@0: this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 226; michael@0: this.MMS_PDU_RETRIEVE_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227; michael@0: michael@0: // X-Mms-Store-Status values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.58 michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 35 michael@0: this.MMS_PDU_STORE_ERROR_TRANSIENT_NETWORK_PROBLEM = 193; michael@0: this.MMS_PDU_STORE_ERROR_PERMANENT_SERVICE_DENIED = 225; michael@0: this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226; michael@0: this.MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 227; michael@0: this.MMS_PDU_STORE_ERROR_PERMANENT_MMBOX_FULL = 228; michael@0: michael@0: // X-Mms-Status values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.54 michael@0: this.MMS_PDU_STATUS_EXPIRED = 128; michael@0: this.MMS_PDU_STATUS_RETRIEVED = 129; michael@0: this.MMS_PDU_STATUS_REJECTED = 130; michael@0: this.MMS_PDU_STATUS_DEFERRED = 131; michael@0: this.MMS_PDU_STATUS_UNRECOGNISED = 132; michael@0: this.MMS_PDU_STATUS_INDETERMINATE = 133; michael@0: this.MMS_PDU_STATUS_FORWARDED = 134; michael@0: this.MMS_PDU_STATUS_UNREACHABLE = 135; michael@0: michael@0: // X-Mms-Cancel-Status values michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.7 michael@0: this.MMS_PDU_CANCEL_STATUS_RECEIVED = 128; michael@0: this.MMS_PDU_CANCEL_STATUS_CORRUPTED = 129; michael@0: michael@0: // X-Mms-Sender-Visibility michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.52 michael@0: this.MMS_PDU_SENDER_VISIBILITY_HIDE = 128; michael@0: this.MMS_PDU_SENDER_VISIBILITY_SHOW = 129; michael@0: michael@0: // X-Mms-Read-Status michael@0: // @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.38 michael@0: this.MMS_PDU_READ_STATUS_READ = 128; michael@0: this.MMS_PDU_READ_STATUS_DELETED_UNREAD = 129; michael@0: michael@0: // Maximum Values of MMS Parameters michael@0: // @see OMA-TS-MMS_CONF-V1_3-20110511-C 10.2.5 michael@0: this.MMS_MAX_LENGTH_SUBJECT = 40; michael@0: this.MMS_MAX_LENGTH_RECIPIENT = 312; michael@0: this.MMS_MAX_TOTAL_RECIPIENTS = 20; michael@0: this.MMS_MAX_LENGTH_NAME_CONTENT_TYPE = 40; michael@0: this.MMS_MAX_LENGTH_MAILBOX_PORTION = 256; michael@0: michael@0: this.DOM_READ_STATUS_NOT_APPLICABLE = "not-applicable"; michael@0: this.DOM_READ_STATUS_SUCCESS = "success"; michael@0: this.DOM_READ_STATUS_PENDING = "pending"; michael@0: this.DOM_READ_STATUS_ERROR = "error"; michael@0: michael@0: this.ALL_CONST_SYMBOLS = undefined; // We want ALL_CONST_SYMBOLS to be exported. michael@0: this.ALL_CONST_SYMBOLS = Object.keys(this); michael@0: michael@0: // Allow this file to be imported via Components.utils.import(). michael@0: this.EXPORTED_SYMBOLS = ALL_CONST_SYMBOLS; michael@0: