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
|
|
|
|
2013-04-08 19:21:25 -07:00
|
|
|
interface nsIDOMDOMCursor;
|
2013-04-08 19:22:15 -07:00
|
|
|
interface nsIDOMDOMRequest;
|
2011-11-24 16:48:57 -08:00
|
|
|
interface nsIDOMEventListener;
|
2012-01-17 10:42:05 -08:00
|
|
|
interface nsIDOMMozSmsFilter;
|
2013-01-03 22:26:17 -08:00
|
|
|
interface nsIDOMMozSmsSegmentInfo;
|
2011-11-24 16:48:57 -08:00
|
|
|
|
2013-04-08 19:22:15 -07:00
|
|
|
[scriptable, builtinclass, uuid(8ce00d77-71b4-43f6-92a1-2eae7c9581b9)]
|
2011-11-24 16:48:57 -08:00
|
|
|
interface nsIDOMMozSmsManager : nsIDOMEventTarget
|
2011-11-20 13:08:33 -08:00
|
|
|
{
|
2013-01-03 22:26:17 -08:00
|
|
|
nsIDOMMozSmsSegmentInfo getSegmentInfoForText(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.
|
2013-04-08 19:22:15 -07:00
|
|
|
// The method returns a DOMRequest object if one number has been passed.
|
|
|
|
// An array of DOMRequest objects otherwise.
|
2011-12-20 06:30:16 -08:00
|
|
|
jsval send(in jsval number, in DOMString message);
|
2011-11-24 16:48:57 -08:00
|
|
|
|
2012-11-06 13:29:30 -08:00
|
|
|
[binaryname(GetMessageMoz)]
|
2013-04-08 19:22:15 -07:00
|
|
|
nsIDOMDOMRequest getMessage(in long id);
|
2011-12-20 08:16:20 -08:00
|
|
|
|
|
|
|
// The parameter can be either a message id or a SmsMessage.
|
2013-04-08 19:22:15 -07:00
|
|
|
nsIDOMDOMRequest delete(in jsval param);
|
2011-12-20 07:58:58 -08:00
|
|
|
|
2013-04-08 19:21:50 -07:00
|
|
|
// Iterates through nsIDOMMozSmsMessage.
|
2013-04-08 19:21:25 -07:00
|
|
|
nsIDOMDOMCursor getMessages(in nsIDOMMozSmsFilter filter, in boolean reverse);
|
2012-01-17 10:42:05 -08:00
|
|
|
|
2013-04-08 19:22:15 -07:00
|
|
|
nsIDOMDOMRequest markMessageRead(in long id, in boolean aValue);
|
2012-05-17 12:42:38 -07:00
|
|
|
|
2013-04-08 19:21:50 -07:00
|
|
|
// Iterates through nsIDOMMozMobileMessageThread.
|
|
|
|
nsIDOMDOMCursor getThreads();
|
2012-11-14 11:49:56 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onreceived;
|
2012-12-11 01:09:39 -08:00
|
|
|
[implicit_jscontext] attribute jsval onsending;
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onsent;
|
2012-12-11 01:09:39 -08:00
|
|
|
[implicit_jscontext] attribute jsval onfailed;
|
2012-10-30 03:53:20 -07:00
|
|
|
[implicit_jscontext] attribute jsval ondeliverysuccess;
|
|
|
|
[implicit_jscontext] attribute jsval ondeliveryerror;
|
2011-11-20 13:08:33 -08:00
|
|
|
};
|