mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
/* 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/. */
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
|
|
|
interface nsIDOMEventListener;
|
|
interface nsIDOMMozSmsFilter;
|
|
interface nsIDOMMozSmsSegmentInfo;
|
|
interface nsIDOMDOMCursor;
|
|
interface nsIDOMDOMRequest;
|
|
interface nsIDOMBlob;
|
|
|
|
[scriptable, builtinclass, uuid(3f81dcbc-00cf-11e3-ae66-538115636543)]
|
|
interface nsIDOMMozMobileMessageManager : nsIDOMEventTarget
|
|
{
|
|
nsIDOMDOMRequest getSegmentInfoForText(in DOMString text);
|
|
|
|
// The first parameter can be either a DOMString (only one number) or an array
|
|
// of DOMStrings.
|
|
// The method returns a DOMRequest object if one number has been passed.
|
|
// An array of DOMRequest objects otherwise.
|
|
jsval send(in jsval number, in DOMString message);
|
|
|
|
nsIDOMDOMRequest sendMMS(in jsval parameters /* MmsParameters */);
|
|
|
|
[binaryname(GetMessageMoz)]
|
|
nsIDOMDOMRequest getMessage(in long id);
|
|
|
|
// The parameter can be either a message id or a nsIDOMMoz{Mms,Sms}Message.
|
|
nsIDOMDOMRequest delete(in jsval param);
|
|
|
|
// Iterates through nsIDOMMoz{Mms,Sms}Message.
|
|
nsIDOMDOMCursor getMessages(in nsIDOMMozSmsFilter filter, in boolean reverse);
|
|
|
|
nsIDOMDOMRequest markMessageRead(in long id, in boolean aValue);
|
|
|
|
// Iterates through nsIDOMMozMobileMessageThread.
|
|
nsIDOMDOMCursor getThreads();
|
|
|
|
nsIDOMDOMRequest retrieveMMS(in long id);
|
|
|
|
[implicit_jscontext] attribute jsval onreceived;
|
|
[implicit_jscontext] attribute jsval onretrieving;
|
|
[implicit_jscontext] attribute jsval onsending;
|
|
[implicit_jscontext] attribute jsval onsent;
|
|
[implicit_jscontext] attribute jsval onfailed;
|
|
[implicit_jscontext] attribute jsval ondeliverysuccess;
|
|
[implicit_jscontext] attribute jsval ondeliveryerror;
|
|
};
|