2012-05-17 12:42:38 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-11-22 01:34:21 -08:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-10-31 02:10:41 -07:00
|
|
|
[scriptable, builtinclass, uuid(a82f9998-02a2-4db2-a0d1-f8353933d7b0)]
|
2011-11-22 01:34:21 -08:00
|
|
|
interface nsIDOMMozSmsMessage : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute long id;
|
2012-12-11 01:09:39 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be "received", "sending", "sent" or "error".
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString delivery;
|
|
|
|
|
2012-10-30 03:53:20 -07:00
|
|
|
/**
|
2012-12-11 01:09:39 -08:00
|
|
|
* Possible delivery status values for above delivery states are:
|
|
|
|
*
|
|
|
|
* "received": "success"
|
|
|
|
* "sending" : "pending", or "not-applicable" if the message was sent without
|
|
|
|
* status report requisition.
|
|
|
|
* "sent" : "pending", "success", "error", or "not-applicable"
|
|
|
|
* if the message was sent without status report requisition.
|
|
|
|
* "error" : "error"
|
2012-10-30 03:53:20 -07:00
|
|
|
*/
|
|
|
|
readonly attribute DOMString deliveryStatus;
|
2012-12-11 01:09:39 -08:00
|
|
|
|
2011-11-22 01:34:21 -08:00
|
|
|
readonly attribute DOMString sender;
|
|
|
|
readonly attribute DOMString receiver;
|
|
|
|
readonly attribute DOMString body;
|
2012-10-31 02:10:41 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Should be "normal", "class-0", "class-1", "class-2" or "class-3".
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString messageClass;
|
|
|
|
|
2011-11-22 01:34:21 -08:00
|
|
|
[implicit_jscontext]
|
|
|
|
readonly attribute jsval timestamp; // jsval is for Date.
|
2012-05-17 12:42:38 -07:00
|
|
|
readonly attribute boolean read;
|
2011-11-22 01:34:21 -08:00
|
|
|
};
|