author Gregory Szorc <>
Wed, 05 Dec 2012 22:46:01 -0800
changeset 115100 051613fd8775ca08852db74e244aff2324ae2146
parent 113270 508ecb4a6cb3e37deb403947aa6b31467533fb9b
child 115607 a845afe5f4c68c82687f0e019ea64c400f5a5f3d
permissions -rw-r--r--
Bug 803400 - Add clobber mach command; r=glandium DONTBUILD (NPOTB)

/* 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 */

#include "nsIDOMEventTarget.idl"

interface nsIDOMEventListener;
interface nsIDOMMozSmsRequest;
interface nsIDOMMozSmsFilter;

[scriptable, builtinclass, uuid(caaf5c38-a730-4dbb-a0f0-12384bfac8e3)]
interface nsIDOMMozSmsManager : nsIDOMEventTarget
  unsigned short getNumberOfMessagesForText(in DOMString text);

  // 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);

  nsIDOMMozSmsRequest getMessage(in long id);

  // The parameter can be either a message id or a SmsMessage.
  nsIDOMMozSmsRequest delete(in jsval param);

  nsIDOMMozSmsRequest getMessages(in nsIDOMMozSmsFilter filter, in boolean reverse);

  nsIDOMMozSmsRequest markMessageRead(in long id, in boolean aValue);

  nsIDOMMozSmsRequest getThreadList();

  [implicit_jscontext] attribute jsval onreceived;
  [implicit_jscontext] attribute jsval onsent;
  [implicit_jscontext] attribute jsval ondeliverysuccess;
  [implicit_jscontext] attribute jsval ondeliveryerror;