2012-05-17 12:42:38 -07:00
|
|
|
/* 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/. */
|
2011-11-20 14:30:04 -08:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2011-12-23 21:02:52 -08:00
|
|
|
interface nsIDOMMozSmsMessage;
|
2013-01-03 22:26:20 -08:00
|
|
|
interface nsIDOMMozSmsSegmentInfo;
|
2013-03-08 23:22:02 -08:00
|
|
|
interface nsIMobileMessageCallback;
|
2011-12-23 21:02:52 -08:00
|
|
|
|
2011-11-20 14:30:04 -08:00
|
|
|
%{C++
|
2012-01-10 11:19:56 -08:00
|
|
|
#define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
|
|
|
|
#define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
|
2011-11-20 14:30:04 -08:00
|
|
|
%}
|
|
|
|
|
2013-07-29 15:50:21 -07:00
|
|
|
[scriptable, builtinclass, uuid(f0d5d11b-0326-4cb1-bb76-a3f912212287)]
|
2011-11-20 14:30:04 -08:00
|
|
|
interface nsISmsService : nsISupports
|
|
|
|
{
|
2012-11-06 13:29:30 -08:00
|
|
|
boolean hasSupport();
|
2013-01-03 22:26:20 -08:00
|
|
|
|
|
|
|
nsIDOMMozSmsSegmentInfo getSegmentInfoForText(in DOMString text);
|
|
|
|
|
2012-11-06 13:29:30 -08:00
|
|
|
void send(in DOMString number,
|
|
|
|
in DOMString message,
|
2013-07-29 15:50:21 -07:00
|
|
|
in boolean silent,
|
2013-03-08 23:22:02 -08:00
|
|
|
in nsIMobileMessageCallback request);
|
2013-07-29 15:50:21 -07:00
|
|
|
|
|
|
|
boolean isSilentNumber(in DOMString number);
|
|
|
|
void addSilentNumber(in DOMString number);
|
|
|
|
void removeSilentNumber(in DOMString number);
|
2011-11-20 14:30:04 -08:00
|
|
|
};
|