michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, builtinclass, uuid(fc8153d2-0026-11e3-bf31-8b0c1d5e7638)] michael@0: interface nsIDOMMozSmsMessage : nsISupports michael@0: { michael@0: /** michael@0: * |type| is always "sms". michael@0: */ michael@0: readonly attribute DOMString type; michael@0: michael@0: readonly attribute long id; michael@0: michael@0: readonly attribute unsigned long long threadId; michael@0: michael@0: /** michael@0: * Integrated Circuit Card Identifier. michael@0: * michael@0: * Will be null if ICC is not available. michael@0: */ michael@0: readonly attribute DOMString iccId; michael@0: michael@0: /** michael@0: * Should be "received", "sending", "sent" or "error". michael@0: */ michael@0: readonly attribute DOMString delivery; michael@0: michael@0: /** michael@0: * Possible delivery status values for above delivery states are: michael@0: * michael@0: * "received": "success" michael@0: * "sending" : "pending", or "not-applicable" if the message was sent without michael@0: * status report requisition. michael@0: * "sent" : "pending", "success", "error", or "not-applicable" michael@0: * if the message was sent without status report requisition. michael@0: * "error" : "error" michael@0: */ michael@0: readonly attribute DOMString deliveryStatus; michael@0: michael@0: readonly attribute DOMString sender; michael@0: readonly attribute DOMString receiver; michael@0: readonly attribute DOMString body; michael@0: michael@0: /** michael@0: * Should be "normal", "class-0", "class-1", "class-2" or "class-3". michael@0: */ michael@0: readonly attribute DOMString messageClass; michael@0: michael@0: readonly attribute DOMTimeStamp timestamp; michael@0: michael@0: readonly attribute DOMTimeStamp sentTimestamp; michael@0: // 0 if not available (e.g., |delivery| = michael@0: // "sending"). michael@0: michael@0: readonly attribute DOMTimeStamp deliveryTimestamp; michael@0: // 0 if not available (e.g., |delivery| = michael@0: // "received" or not yet delivered). michael@0: michael@0: readonly attribute boolean read; michael@0: };