dom/mobilemessage/interfaces/nsISmsService.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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 "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIDOMMozSmsMessage;
michael@0 8 interface nsIDOMMozSmsSegmentInfo;
michael@0 9 interface nsIMobileMessageCallback;
michael@0 10
michael@0 11 %{C++
michael@0 12 #define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
michael@0 13 #define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
michael@0 14 %}
michael@0 15
michael@0 16 [scriptable, builtinclass, uuid(cb7d7b60-01f1-4241-a0ae-2ff035c3fbe5)]
michael@0 17 interface nsISmsService : nsISupports
michael@0 18 {
michael@0 19 readonly attribute unsigned long smsDefaultServiceId;
michael@0 20
michael@0 21 void getSegmentInfoForText(in DOMString text,
michael@0 22 in nsIMobileMessageCallback request);
michael@0 23
michael@0 24 void send(in unsigned long serviceId,
michael@0 25 in DOMString number,
michael@0 26 in DOMString message,
michael@0 27 in boolean silent,
michael@0 28 in nsIMobileMessageCallback request);
michael@0 29
michael@0 30 boolean isSilentNumber(in DOMString number);
michael@0 31 void addSilentNumber(in DOMString number);
michael@0 32 void removeSilentNumber(in DOMString number);
michael@0 33
michael@0 34 void getSmscAddress(in unsigned long serviceId,
michael@0 35 in nsIMobileMessageCallback request);
michael@0 36 };

mercurial