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-20 13:08:33 -08:00
|
|
|
|
2011-11-24 16:48:57 -08:00
|
|
|
#include "nsIDOMEventTarget.idl"
|
2011-11-20 13:08:33 -08:00
|
|
|
|
2011-11-24 16:48:57 -08:00
|
|
|
interface nsIDOMEventListener;
|
2011-12-20 07:58:58 -08:00
|
|
|
interface nsIDOMMozSmsRequest;
|
2012-01-17 10:42:05 -08:00
|
|
|
interface nsIDOMMozSmsFilter;
|
2011-11-24 16:48:57 -08:00
|
|
|
|
2012-06-06 09:30:58 -07:00
|
|
|
[scriptable, builtinclass, uuid(6363c0ff-b58f-4fb3-9707-0ba27f120b2c)]
|
2011-11-24 16:48:57 -08:00
|
|
|
interface nsIDOMMozSmsManager : nsIDOMEventTarget
|
2011-11-20 13:08:33 -08:00
|
|
|
{
|
2012-01-13 05:26:50 -08:00
|
|
|
unsigned short getNumberOfMessagesForText(in DOMString text);
|
2011-12-20 06:30:16 -08:00
|
|
|
|
|
|
|
// The first parameter can be either a DOMString (only one number) or an array
|
|
|
|
// of DOMStrings.
|
|
|
|
// The method returns a SmsRequest object if one number has been passed.
|
|
|
|
// An array of SmsRequest objects otherwise.
|
|
|
|
jsval send(in jsval number, in DOMString message);
|
2011-11-24 16:48:57 -08:00
|
|
|
|
2011-12-20 07:58:58 -08:00
|
|
|
[binaryname(GetMessageMoz)] nsIDOMMozSmsRequest getMessage(in long id);
|
2011-12-20 08:16:20 -08:00
|
|
|
|
|
|
|
// The parameter can be either a message id or a SmsMessage.
|
|
|
|
nsIDOMMozSmsRequest delete(in jsval param);
|
2011-12-20 07:58:58 -08:00
|
|
|
|
2012-01-17 10:42:05 -08:00
|
|
|
nsIDOMMozSmsRequest getMessages(in nsIDOMMozSmsFilter filter, in boolean reverse);
|
|
|
|
|
2012-05-17 12:42:38 -07:00
|
|
|
nsIDOMMozSmsRequest markMessageRead(in long id, in boolean aValue);
|
|
|
|
|
2011-11-24 16:48:57 -08:00
|
|
|
attribute nsIDOMEventListener onreceived;
|
2012-01-10 11:34:50 -08:00
|
|
|
attribute nsIDOMEventListener onsent;
|
2012-01-10 11:36:25 -08:00
|
|
|
attribute nsIDOMEventListener ondelivered;
|
2011-11-20 13:08:33 -08:00
|
|
|
};
|