1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/interfaces/nsIDOMMozSmsMessage.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,64 @@ 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 +[scriptable, builtinclass, uuid(fc8153d2-0026-11e3-bf31-8b0c1d5e7638)] 1.12 +interface nsIDOMMozSmsMessage : nsISupports 1.13 +{ 1.14 + /** 1.15 + * |type| is always "sms". 1.16 + */ 1.17 + readonly attribute DOMString type; 1.18 + 1.19 + readonly attribute long id; 1.20 + 1.21 + readonly attribute unsigned long long threadId; 1.22 + 1.23 + /** 1.24 + * Integrated Circuit Card Identifier. 1.25 + * 1.26 + * Will be null if ICC is not available. 1.27 + */ 1.28 + readonly attribute DOMString iccId; 1.29 + 1.30 + /** 1.31 + * Should be "received", "sending", "sent" or "error". 1.32 + */ 1.33 + readonly attribute DOMString delivery; 1.34 + 1.35 + /** 1.36 + * Possible delivery status values for above delivery states are: 1.37 + * 1.38 + * "received": "success" 1.39 + * "sending" : "pending", or "not-applicable" if the message was sent without 1.40 + * status report requisition. 1.41 + * "sent" : "pending", "success", "error", or "not-applicable" 1.42 + * if the message was sent without status report requisition. 1.43 + * "error" : "error" 1.44 + */ 1.45 + readonly attribute DOMString deliveryStatus; 1.46 + 1.47 + readonly attribute DOMString sender; 1.48 + readonly attribute DOMString receiver; 1.49 + readonly attribute DOMString body; 1.50 + 1.51 + /** 1.52 + * Should be "normal", "class-0", "class-1", "class-2" or "class-3". 1.53 + */ 1.54 + readonly attribute DOMString messageClass; 1.55 + 1.56 + readonly attribute DOMTimeStamp timestamp; 1.57 + 1.58 + readonly attribute DOMTimeStamp sentTimestamp; 1.59 + // 0 if not available (e.g., |delivery| = 1.60 + // "sending"). 1.61 + 1.62 + readonly attribute DOMTimeStamp deliveryTimestamp; 1.63 + // 0 if not available (e.g., |delivery| = 1.64 + // "received" or not yet delivered). 1.65 + 1.66 + readonly attribute boolean read; 1.67 +};