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 #include
"domstubs.idl"
6 #include
"nsISupports.idl"
10 // If this is changed, change the WebIDL dictionary as well.
11 dictionary MmsAttachment
15 nsIDOMBlob content
; // If the content blob is a text/plain type, the encoding
16 // for text should always be "utf-8".
19 dictionary MmsDeliveryInfo
22 DOMString? deliveryStatus
;
23 DOMTimeStamp deliveryTimestamp
; // 0 if not available (e.g.,
24 // |delivery| = "received" or not yet delivered).
25 DOMString? readStatus
;
26 DOMTimeStamp readTimestamp
; // 0 if not available (e.g.,
27 // |delivery| = "received" or not yet read).
30 [scriptable
, builtinclass
, uuid(f41d7400
-0026-11e3
-829d
-eb7459c03810
)]
31 interface nsIDOMMozMmsMessage
: nsISupports
34 * |type| is always "mms".
36 readonly attribute DOMString type
;
38 readonly attribute
long id;
40 readonly attribute
unsigned long long threadId
;
43 * Integrated Circuit Card Identifier.
45 * Will be null if ICC is not available.
47 readonly attribute DOMString iccId
;
50 * Should be "not-downloaded", "received", "sending", "sent" or "error".
52 readonly attribute DOMString delivery
;
55 readonly attribute jsval deliveryInfo
; // MmsDeliveryInfo[]
57 readonly attribute DOMString sender
;
60 readonly attribute jsval receivers
; // DOMString[]
62 readonly attribute DOMTimeStamp timestamp
;
64 readonly attribute DOMTimeStamp sentTimestamp
;
65 // 0 if not available (e.g., |delivery| =
68 readonly attribute
boolean read
;
69 readonly attribute DOMString subject
;
70 readonly attribute DOMString smil
;
73 readonly attribute jsval attachments
; // MmsAttachment[]
75 readonly attribute DOMTimeStamp expiryDate
; // Expiry date for an MMS to be
76 // manually downloaded.
78 // Request read report from sender or not.
79 readonly attribute
boolean readReportRequested
;