dom/mobilemessage/interfaces/nsISmsService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/mobilemessage/interfaces/nsISmsService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +interface nsIDOMMozSmsMessage;
    1.11 +interface nsIDOMMozSmsSegmentInfo;
    1.12 +interface nsIMobileMessageCallback;
    1.13 +
    1.14 +%{C++
    1.15 +#define SMS_SERVICE_CID { 0xbada3cb8, 0xa568, 0x4dff, { 0xb5, 0x43, 0x52, 0xbb, 0xb3, 0x14, 0x31, 0x21 } }
    1.16 +#define SMS_SERVICE_CONTRACTID "@mozilla.org/sms/smsservice;1"
    1.17 +%}
    1.18 +
    1.19 +[scriptable, builtinclass, uuid(cb7d7b60-01f1-4241-a0ae-2ff035c3fbe5)]
    1.20 +interface nsISmsService : nsISupports
    1.21 +{
    1.22 +  readonly attribute unsigned long smsDefaultServiceId;
    1.23 +
    1.24 +  void getSegmentInfoForText(in DOMString text,
    1.25 +                             in nsIMobileMessageCallback request);
    1.26 +
    1.27 +  void send(in unsigned long serviceId,
    1.28 +            in DOMString number,
    1.29 +            in DOMString message,
    1.30 +            in boolean silent,
    1.31 +            in nsIMobileMessageCallback request);
    1.32 +
    1.33 +  boolean isSilentNumber(in DOMString number);
    1.34 +  void addSilentNumber(in DOMString number);
    1.35 +  void removeSilentNumber(in DOMString number);
    1.36 +
    1.37 +  void getSmscAddress(in unsigned long serviceId,
    1.38 +                      in nsIMobileMessageCallback request);
    1.39 +};

mercurial