dom/mobilemessage/interfaces/nsIDOMMozSmsMessage.idl

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f0fa66949a60
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/. */
4
5 #include "domstubs.idl"
6 #include "nsISupports.idl"
7
8 [scriptable, builtinclass, uuid(fc8153d2-0026-11e3-bf31-8b0c1d5e7638)]
9 interface nsIDOMMozSmsMessage : nsISupports
10 {
11 /**
12 * |type| is always "sms".
13 */
14 readonly attribute DOMString type;
15
16 readonly attribute long id;
17
18 readonly attribute unsigned long long threadId;
19
20 /**
21 * Integrated Circuit Card Identifier.
22 *
23 * Will be null if ICC is not available.
24 */
25 readonly attribute DOMString iccId;
26
27 /**
28 * Should be "received", "sending", "sent" or "error".
29 */
30 readonly attribute DOMString delivery;
31
32 /**
33 * Possible delivery status values for above delivery states are:
34 *
35 * "received": "success"
36 * "sending" : "pending", or "not-applicable" if the message was sent without
37 * status report requisition.
38 * "sent" : "pending", "success", "error", or "not-applicable"
39 * if the message was sent without status report requisition.
40 * "error" : "error"
41 */
42 readonly attribute DOMString deliveryStatus;
43
44 readonly attribute DOMString sender;
45 readonly attribute DOMString receiver;
46 readonly attribute DOMString body;
47
48 /**
49 * Should be "normal", "class-0", "class-1", "class-2" or "class-3".
50 */
51 readonly attribute DOMString messageClass;
52
53 readonly attribute DOMTimeStamp timestamp;
54
55 readonly attribute DOMTimeStamp sentTimestamp;
56 // 0 if not available (e.g., |delivery| =
57 // "sending").
58
59 readonly attribute DOMTimeStamp deliveryTimestamp;
60 // 0 if not available (e.g., |delivery| =
61 // "received" or not yet delivered).
62
63 readonly attribute boolean read;
64 };

mercurial