1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/interfaces/nsIDOMMozMmsMessage.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "domstubs.idl" 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIDOMBlob; 1.12 + 1.13 +[scriptable, builtinclass, uuid(f41d7400-0026-11e3-829d-eb7459c03810)] 1.14 +interface nsIDOMMozMmsMessage : nsISupports 1.15 +{ 1.16 + /** 1.17 + * |type| is always "mms". 1.18 + */ 1.19 + readonly attribute DOMString type; 1.20 + 1.21 + readonly attribute long id; 1.22 + 1.23 + readonly attribute unsigned long long threadId; 1.24 + 1.25 + /** 1.26 + * Integrated Circuit Card Identifier. 1.27 + * 1.28 + * Will be null if ICC is not available. 1.29 + */ 1.30 + readonly attribute DOMString iccId; 1.31 + 1.32 + /** 1.33 + * Should be "not-downloaded", "received", "sending", "sent" or "error". 1.34 + */ 1.35 + readonly attribute DOMString delivery; 1.36 + 1.37 + [implicit_jscontext] 1.38 + readonly attribute jsval deliveryInfo; // MmsDeliveryInfo[] 1.39 + 1.40 + readonly attribute DOMString sender; 1.41 + 1.42 + [implicit_jscontext] 1.43 + readonly attribute jsval receivers; // DOMString[] 1.44 + 1.45 + readonly attribute DOMTimeStamp timestamp; 1.46 + 1.47 + readonly attribute DOMTimeStamp sentTimestamp; 1.48 + // 0 if not available (e.g., |delivery| = 1.49 + // "sending"). 1.50 + 1.51 + readonly attribute boolean read; 1.52 + readonly attribute DOMString subject; 1.53 + readonly attribute DOMString smil; 1.54 + 1.55 + [implicit_jscontext] 1.56 + readonly attribute jsval attachments; // MmsAttachment[] 1.57 + 1.58 + readonly attribute DOMTimeStamp expiryDate; // Expiry date for an MMS to be 1.59 + // manually downloaded. 1.60 + 1.61 + // Request read report from sender or not. 1.62 + readonly attribute boolean readReportRequested; 1.63 +};