mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
3b1087b464
Backed out changeset 001a849303de (bug 873351) Backed out changeset 8020b3013618 (bug 907585) Backed out changeset 9039460e09c5 (bug 907585) Backed out changeset 9464e393a501 (bug 907585) Backed out changeset d6920653de69 (bug 864485) Backed out changeset 20ef446b27cd (bug 864485) Backed out changeset e27c780e1ef5 (bug 864485)
33 lines
1.0 KiB
Plaintext
33 lines
1.0 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 "nsISupports.idl"
|
|
|
|
interface nsIDOMMozSmsMessage;
|
|
interface nsIDOMMozSmsSegmentInfo;
|
|
interface nsIMobileMessageCallback;
|
|
|
|
%{C++
|
|
#define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
|
|
#define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
|
|
%}
|
|
|
|
[scriptable, builtinclass, uuid(0f3f75ec-00dd-11e3-87ac-0b1d5c79afdf)]
|
|
interface nsISmsService : nsISupports
|
|
{
|
|
boolean hasSupport();
|
|
|
|
void getSegmentInfoForText(in DOMString text,
|
|
in nsIMobileMessageCallback request);
|
|
|
|
void send(in DOMString number,
|
|
in DOMString message,
|
|
in boolean silent,
|
|
in nsIMobileMessageCallback request);
|
|
|
|
boolean isSilentNumber(in DOMString number);
|
|
void addSilentNumber(in DOMString number);
|
|
void removeSilentNumber(in DOMString number);
|
|
};
|