2012-06-03 22:04:44 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
// Encoded X-Mms-Message-Type values
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.30
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_PDU_TYPE_SEND_REQ = 128;
|
|
|
|
const MMS_PDU_TYPE_SEND_CONF = 129;
|
|
|
|
const MMS_PDU_TYPE_NOTIFICATION_IND = 130;
|
|
|
|
const MMS_PDU_TYPE_NOTIFYRESP_IND = 131;
|
|
|
|
const MMS_PDU_TYPE_RETRIEVE_CONF = 132;
|
|
|
|
const MMS_PDU_TYPE_ACKNOWLEDGE_IND = 133;
|
|
|
|
const MMS_PDU_TYPE_DELIVERY_IND = 134;
|
|
|
|
const MMS_PDU_TYPE_READ_REC_IND = 135;
|
|
|
|
const MMS_PDU_TYPE_READ_ORIG_IND = 136;
|
|
|
|
const MMS_PDU_TYPE_FORWARD_REQ = 137;
|
|
|
|
const MMS_PDU_TYPE_FORWARD_CONF = 138;
|
|
|
|
const MMS_PDU_TYPE_MBOX_STORE_REQ = 139;
|
|
|
|
const MMS_PDU_TYPE_MBOX_STORE_CONF = 140;
|
|
|
|
const MMS_PDU_TYPE_MBOX_VIEW_REQ = 141;
|
|
|
|
const MMS_PDU_TYPE_MBOX_VIEW_CONF = 142;
|
|
|
|
const MMS_PDU_TYPE_MBOX_UPLOAD_REQ = 143;
|
|
|
|
const MMS_PDU_TYPE_MBOX_UPLOAD_CONF = 144;
|
|
|
|
const MMS_PDU_TYPE_MBOX_DELETE_REQ = 145;
|
|
|
|
const MMS_PDU_TYPE_MBOX_DELETE_CONF = 146;
|
|
|
|
const MMS_PDU_TYPE_MBOX_DESCR = 147;
|
|
|
|
const MMS_PDU_TYPE_DELETE_REQ = 148;
|
|
|
|
const MMS_PDU_TYPE_DELETE_CONF = 149;
|
|
|
|
const MMS_PDU_TYPE_CANCEL_REQ = 150;
|
|
|
|
const MMS_PDU_TYPE_CANCEL_CONF = 151;
|
2012-06-03 22:04:44 -07:00
|
|
|
|
2012-06-03 22:05:08 -07:00
|
|
|
// MMS version 1.3
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.34
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_VERSION = (0x01 << 4) | 0x03;
|
2012-06-03 22:05:08 -07:00
|
|
|
|
2012-07-22 19:20:45 -07:00
|
|
|
// Common Status Values
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_PDU_ERROR_OK = 128;
|
|
|
|
const MMS_PDU_ERROR_TRANSIENT_FAILURE = 192;
|
|
|
|
const MMS_PDU_ERROR_PERMANENT_FAILURE = 224;
|
2012-07-22 19:20:45 -07:00
|
|
|
|
2012-07-25 21:11:40 -07:00
|
|
|
// X-Mms-Response-Status values
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.48
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 28, 29, 30
|
2012-10-31 01:35:11 -07:00
|
|
|
//const MMS_PDU_RESPONSE_ERROR_UNSPECIFIED = 129; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_SERVICE_DENIED = 130; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_MESSAGE_FORMAT_CORRUPT = 131; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_SENDING_ADDRESS_UNRESOLVED = 132; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_MESSAGE_NOT_FOUND = 133; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_NETWORK_PROBLEM = 134; (obsolete)
|
|
|
|
//const MMS_PDU_RESPONSE_ERROR_CONTENT_NOT_ACCEPTED = 135; (obsolete)
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_UNSUPPORTED_MESSAGE = 136;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_TRANSIENT_SENDING_ADDRESS_UNRESOLVED = 193;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 194;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_TRANSIENT_NETWORK_PROBLEM = 195;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_TRANSIENT_PARTIAL_SUCCESS = 196;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_SERVICE_DENIED = 225;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_SENDING_ADDRESS_UNRESOLVED = 227;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 228;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_CONTENT_NOT_ACCEPTED = 229;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_LIMITATIONS_NOT_MET = 230;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_REQUEST_NOT_ACCEPTED = 231;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_FORWARDING_DENIED = 232;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_REPLY_CHARGING_NOT_SUPPORTED = 233;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_ADDRESS_HIDING_NOT_SUPPORTED = 234;
|
|
|
|
const MMS_PDU_RESPONSE_ERROR_PERMANENT_LACK_OF_PREPAID = 235;
|
2012-07-25 21:11:40 -07:00
|
|
|
|
2012-06-03 22:04:44 -07:00
|
|
|
// X-Mms-Retrieve-Status values
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.50
|
2012-07-25 21:11:40 -07:00
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 31
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_PDU_RETRIEVE_ERROR_TRANSIENT_MESSAGE_NOT_FOUND = 193;
|
|
|
|
const MMS_PDU_RETRIEVE_ERROR_TRANSIENT_NETWORK_PROBLEM = 194;
|
|
|
|
const MMS_PDU_RETRIEVE_ERROR_PERMANENT_SERVICE_DENIED = 225;
|
|
|
|
const MMS_PDU_RETRIEVE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 226;
|
|
|
|
const MMS_PDU_RETRIEVE_ERROR_PERMANENT_CONTENT_UNSUPPORTED = 227;
|
2012-06-03 22:04:44 -07:00
|
|
|
|
2012-07-25 21:11:40 -07:00
|
|
|
// X-Mms-Store-Status values
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.58
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A Table 35
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_PDU_STORE_ERROR_TRANSIENT_NETWORK_PROBLEM = 193;
|
|
|
|
const MMS_PDU_STORE_ERROR_PERMANENT_SERVICE_DENIED = 225;
|
|
|
|
const MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_FORMAT_CORRUPT = 226;
|
|
|
|
const MMS_PDU_STORE_ERROR_PERMANENT_MESSAGE_NOT_FOUND = 227;
|
|
|
|
const MMS_PDU_STORE_ERROR_PERMANENT_MMBOX_FULL = 228;
|
2012-07-25 21:11:40 -07:00
|
|
|
|
2012-06-03 22:04:53 -07:00
|
|
|
// X-Mms-Status values
|
|
|
|
// @see OMA-TS-MMS_ENC-V1_3-20110913-A clause 7.3.54
|
2012-10-31 01:35:11 -07:00
|
|
|
const MMS_PDU_STATUS_EXPIRED = 128;
|
|
|
|
const MMS_PDU_STATUS_RETRIEVED = 129;
|
|
|
|
const MMS_PDU_STATUS_REJECTED = 130;
|
|
|
|
const MMS_PDU_STATUS_DEFERRED = 131;
|
|
|
|
const MMS_PDU_STATUS_UNRECOGNISED = 132;
|
|
|
|
const MMS_PDU_STATUS_INDETERMINATE = 133;
|
|
|
|
const MMS_PDU_STATUS_FORWARDED = 134;
|
|
|
|
const MMS_PDU_STATUS_UNREACHABLE = 135;
|
2012-06-03 22:04:53 -07:00
|
|
|
|
2012-10-31 01:35:11 -07:00
|
|
|
const ALL_CONST_SYMBOLS = Object.keys(this);
|
2012-06-03 22:04:44 -07:00
|
|
|
|
|
|
|
// Allow this file to be imported via Components.utils.import().
|
2012-10-31 01:35:11 -07:00
|
|
|
const EXPORTED_SYMBOLS = ALL_CONST_SYMBOLS;
|
2012-06-03 22:04:44 -07:00
|
|
|
|