Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "domstubs.idl" |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, builtinclass, uuid(fc8153d2-0026-11e3-bf31-8b0c1d5e7638)] |
michael@0 | 9 | interface nsIDOMMozSmsMessage : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | /** |
michael@0 | 12 | * |type| is always "sms". |
michael@0 | 13 | */ |
michael@0 | 14 | readonly attribute DOMString type; |
michael@0 | 15 | |
michael@0 | 16 | readonly attribute long id; |
michael@0 | 17 | |
michael@0 | 18 | readonly attribute unsigned long long threadId; |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * Integrated Circuit Card Identifier. |
michael@0 | 22 | * |
michael@0 | 23 | * Will be null if ICC is not available. |
michael@0 | 24 | */ |
michael@0 | 25 | readonly attribute DOMString iccId; |
michael@0 | 26 | |
michael@0 | 27 | /** |
michael@0 | 28 | * Should be "received", "sending", "sent" or "error". |
michael@0 | 29 | */ |
michael@0 | 30 | readonly attribute DOMString delivery; |
michael@0 | 31 | |
michael@0 | 32 | /** |
michael@0 | 33 | * Possible delivery status values for above delivery states are: |
michael@0 | 34 | * |
michael@0 | 35 | * "received": "success" |
michael@0 | 36 | * "sending" : "pending", or "not-applicable" if the message was sent without |
michael@0 | 37 | * status report requisition. |
michael@0 | 38 | * "sent" : "pending", "success", "error", or "not-applicable" |
michael@0 | 39 | * if the message was sent without status report requisition. |
michael@0 | 40 | * "error" : "error" |
michael@0 | 41 | */ |
michael@0 | 42 | readonly attribute DOMString deliveryStatus; |
michael@0 | 43 | |
michael@0 | 44 | readonly attribute DOMString sender; |
michael@0 | 45 | readonly attribute DOMString receiver; |
michael@0 | 46 | readonly attribute DOMString body; |
michael@0 | 47 | |
michael@0 | 48 | /** |
michael@0 | 49 | * Should be "normal", "class-0", "class-1", "class-2" or "class-3". |
michael@0 | 50 | */ |
michael@0 | 51 | readonly attribute DOMString messageClass; |
michael@0 | 52 | |
michael@0 | 53 | readonly attribute DOMTimeStamp timestamp; |
michael@0 | 54 | |
michael@0 | 55 | readonly attribute DOMTimeStamp sentTimestamp; |
michael@0 | 56 | // 0 if not available (e.g., |delivery| = |
michael@0 | 57 | // "sending"). |
michael@0 | 58 | |
michael@0 | 59 | readonly attribute DOMTimeStamp deliveryTimestamp; |
michael@0 | 60 | // 0 if not available (e.g., |delivery| = |
michael@0 | 61 | // "received" or not yet delivered). |
michael@0 | 62 | |
michael@0 | 63 | readonly attribute boolean read; |
michael@0 | 64 | }; |