Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsIDOMEventTarget.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIDOMEventListener; |
michael@0 | 8 | interface nsIDOMMozSmsFilter; |
michael@0 | 9 | interface nsIDOMMozSmsSegmentInfo; |
michael@0 | 10 | interface nsIDOMDOMCursor; |
michael@0 | 11 | interface nsIDOMDOMRequest; |
michael@0 | 12 | interface nsIDOMBlob; |
michael@0 | 13 | |
michael@0 | 14 | [scriptable, builtinclass, uuid(8ec8247d-3f5f-41af-9c72-9dc857e3be81)] |
michael@0 | 15 | interface nsIDOMMozMobileMessageManager : nsIDOMEventTarget |
michael@0 | 16 | { |
michael@0 | 17 | nsIDOMDOMRequest getSegmentInfoForText(in DOMString text); |
michael@0 | 18 | |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * Function to send SMS. |
michael@0 | 22 | * |
michael@0 | 23 | * @param number |
michael@0 | 24 | * Either a DOMString (only one number) or an array of numbers. |
michael@0 | 25 | * @param message |
michael@0 | 26 | * The text message to be sent. |
michael@0 | 27 | * @param sendParameters |
michael@0 | 28 | * An SmsSendParameters object. |
michael@0 | 29 | * @param return |
michael@0 | 30 | * A DOMRequest object indicating the sending result if one number |
michael@0 | 31 | * has been passed; an array of DOMRequest objects otherwise. |
michael@0 | 32 | */ |
michael@0 | 33 | [implicit_jscontext, optional_argc] |
michael@0 | 34 | jsval send(in jsval number, in DOMString message, |
michael@0 | 35 | [optional] in jsval sendParameters); |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * Function to send MMS. |
michael@0 | 39 | * |
michael@0 | 40 | * @param parameters |
michael@0 | 41 | * An MmsParameters object. |
michael@0 | 42 | * @param sendParameters |
michael@0 | 43 | * An MmsSendParameters object. |
michael@0 | 44 | * @param return |
michael@0 | 45 | * A DOMRequest object indicating the sending result. |
michael@0 | 46 | */ |
michael@0 | 47 | [implicit_jscontext, optional_argc] |
michael@0 | 48 | nsIDOMDOMRequest sendMMS(in jsval parameters, |
michael@0 | 49 | [optional] in jsval sendParameters); |
michael@0 | 50 | |
michael@0 | 51 | [binaryname(GetMessageMoz)] |
michael@0 | 52 | nsIDOMDOMRequest getMessage(in long id); |
michael@0 | 53 | |
michael@0 | 54 | // The parameter can be either a message id or a nsIDOMMoz{Mms,Sms}Message. |
michael@0 | 55 | [implicit_jscontext] |
michael@0 | 56 | nsIDOMDOMRequest delete(in jsval param); |
michael@0 | 57 | |
michael@0 | 58 | // Iterates through nsIDOMMoz{Mms,Sms}Message. |
michael@0 | 59 | nsIDOMDOMCursor getMessages(in nsIDOMMozSmsFilter filter, in boolean reverse); |
michael@0 | 60 | |
michael@0 | 61 | nsIDOMDOMRequest markMessageRead(in long id, in boolean value, |
michael@0 | 62 | [optional] in boolean aSendReadReport); |
michael@0 | 63 | |
michael@0 | 64 | // Iterates through nsIDOMMozMobileMessageThread. |
michael@0 | 65 | nsIDOMDOMCursor getThreads(); |
michael@0 | 66 | |
michael@0 | 67 | nsIDOMDOMRequest retrieveMMS(in long id); |
michael@0 | 68 | |
michael@0 | 69 | [optional_argc] |
michael@0 | 70 | nsIDOMDOMRequest getSmscAddress([optional] in unsigned long serviceId); |
michael@0 | 71 | |
michael@0 | 72 | [implicit_jscontext] attribute jsval onreceived; |
michael@0 | 73 | [implicit_jscontext] attribute jsval onretrieving; |
michael@0 | 74 | [implicit_jscontext] attribute jsval onsending; |
michael@0 | 75 | [implicit_jscontext] attribute jsval onsent; |
michael@0 | 76 | [implicit_jscontext] attribute jsval onfailed; |
michael@0 | 77 | [implicit_jscontext] attribute jsval ondeliverysuccess; |
michael@0 | 78 | [implicit_jscontext] attribute jsval ondeliveryerror; |
michael@0 | 79 | [implicit_jscontext] attribute jsval onreadsuccess; |
michael@0 | 80 | [implicit_jscontext] attribute jsval onreaderror; |
michael@0 | 81 | }; |