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;
|
2012-11-06 13:29:30 -08:00
|
|
|
interface nsISmsRequest;
|
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-01-03 22:26:20 -08:00
|
|
|
[scriptable, builtinclass, uuid(4310bdb5-eefa-4f70-965a-74041228ab26)]
|
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,
|
|
|
|
in nsISmsRequest request);
|
2011-12-23 21:02:52 -08:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
nsIDOMMozSmsMessage createSmsMessage(in long id,
|
|
|
|
in DOMString delivery,
|
2012-10-30 03:53:24 -07:00
|
|
|
in DOMString deliveryStatus,
|
2011-12-23 21:02:52 -08:00
|
|
|
in DOMString sender,
|
|
|
|
in DOMString receiver,
|
|
|
|
in DOMString body,
|
2012-10-31 02:10:44 -07:00
|
|
|
in DOMString messageClass,
|
2012-05-17 12:42:38 -07:00
|
|
|
in jsval timestamp,
|
|
|
|
in bool read);
|
2013-01-03 22:26:20 -08:00
|
|
|
|
|
|
|
nsIDOMMozSmsSegmentInfo createSmsSegmentInfo(in long segments,
|
|
|
|
in long charsPerSegment,
|
|
|
|
in long charsAvailableInLastSegment);
|
2011-11-20 14:30:04 -08:00
|
|
|
};
|