2013-03-08 23:21:55 -08: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/. */
|
|
|
|
|
2013-11-30 03:14:41 -08:00
|
|
|
#include "domstubs.idl"
|
2013-03-08 23:21:55 -08:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIDOMBlob;
|
|
|
|
|
2013-05-17 18:48:25 -07:00
|
|
|
// If this is changed, change the WebIDL dictionary as well.
|
2013-03-08 23:21:55 -08:00
|
|
|
dictionary MmsAttachment
|
|
|
|
{
|
|
|
|
DOMString? id;
|
|
|
|
DOMString? location;
|
2013-06-18 01:28:55 -07:00
|
|
|
nsIDOMBlob content; // If the content blob is a text/plain type, the encoding
|
|
|
|
// for text should always be "utf-8".
|
2013-03-08 23:21:55 -08:00
|
|
|
};
|
|
|
|
|
2013-10-22 01:57:25 -07:00
|
|
|
dictionary MmsDeliveryInfo
|
|
|
|
{
|
|
|
|
DOMString? receiver;
|
|
|
|
DOMString? deliveryStatus;
|
2013-11-30 03:14:41 -08:00
|
|
|
DOMTimeStamp deliveryTimestamp; // 0 if not available (e.g.,
|
|
|
|
// |delivery| = "received" or not yet delivered).
|
2013-11-25 02:54:58 -08:00
|
|
|
DOMString? readStatus;
|
2013-11-30 03:14:41 -08:00
|
|
|
DOMTimeStamp readTimestamp; // 0 if not available (e.g.,
|
|
|
|
// |delivery| = "received" or not yet read).
|
2013-10-22 01:57:25 -07:00
|
|
|
};
|
|
|
|
|
2013-11-30 03:14:41 -08:00
|
|
|
[scriptable, builtinclass, uuid(4ca3a456-0e25-4331-974a-a8f11a5efb4b)]
|
2013-03-08 23:21:55 -08:00
|
|
|
interface nsIDOMMozMmsMessage : nsISupports
|
|
|
|
{
|
2013-03-07 19:46:16 -08:00
|
|
|
/**
|
|
|
|
* |type| is always "mms".
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString type;
|
|
|
|
|
2013-03-08 23:21:55 -08:00
|
|
|
readonly attribute long id;
|
|
|
|
|
2013-04-05 05:15:44 -07:00
|
|
|
readonly attribute unsigned long long threadId;
|
|
|
|
|
2013-11-02 03:16:59 -07:00
|
|
|
/**
|
|
|
|
* Integrated Circuit Card Identifier.
|
|
|
|
*
|
|
|
|
* Will be null if ICC is not available.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString iccId;
|
|
|
|
|
2013-03-08 23:21:55 -08:00
|
|
|
/**
|
|
|
|
* Should be "not-downloaded", "received", "sending", "sent" or "error".
|
|
|
|
*/
|
2013-03-20 03:24:48 -07:00
|
|
|
readonly attribute DOMString delivery;
|
2013-03-08 23:21:55 -08:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
2013-10-22 01:57:25 -07:00
|
|
|
readonly attribute jsval deliveryInfo; // MmsDeliveryInfo[]
|
2013-03-08 23:21:55 -08:00
|
|
|
|
|
|
|
readonly attribute DOMString sender;
|
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute jsval receivers; // DOMString[]
|
|
|
|
|
2013-11-30 03:14:41 -08:00
|
|
|
readonly attribute DOMTimeStamp timestamp;
|
2013-03-08 23:21:55 -08:00
|
|
|
|
|
|
|
readonly attribute boolean read;
|
|
|
|
readonly attribute DOMString subject;
|
|
|
|
readonly attribute DOMString smil;
|
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute jsval attachments; // MmsAttachment[]
|
2013-04-30 15:59:03 -07:00
|
|
|
|
2013-11-30 03:14:41 -08:00
|
|
|
readonly attribute DOMTimeStamp expiryDate; // Expiry date for an MMS to be
|
2013-05-08 03:41:00 -07:00
|
|
|
// manually downloaded.
|
2013-11-03 19:36:00 -08:00
|
|
|
|
|
|
|
// Request read report from sender or not.
|
2013-11-21 23:12:07 -08:00
|
|
|
readonly attribute boolean readReportRequested;
|
2013-04-05 05:15:44 -07:00
|
|
|
};
|