dom/system/gonk/nsIRadioInterfaceLayer.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.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "nsISupports.idl"
     6 #include "nsINetworkManager.idl"
     8 interface nsIDOMMozIccInfo;
     9 interface nsIDOMMozMobileConnectionInfo;
    10 interface nsIMobileMessageCallback;
    12 [scriptable, uuid(6e0f45b8-410e-11e3-8c8e-b715b2cd0128)]
    13 interface nsIRilNetworkInterface : nsINetworkInterface
    14 {
    15   readonly attribute unsigned long serviceId;
    16   readonly attribute DOMString iccId;
    18   /* The following attributes are for MMS proxy settings. */
    19   readonly attribute DOMString mmsc;     // Empty string if not set.
    20   readonly attribute DOMString mmsProxy; // Empty string if not set.
    21   readonly attribute long      mmsPort;  // -1 if not set.
    22 };
    24 [scriptable, uuid(c0c5cb9f-6372-4b5a-b74c-baacc2da5e4f)]
    25 interface nsIVoicemailInfo : nsISupports
    26 {
    27   readonly attribute DOMString number;
    29   readonly attribute DOMString displayName;
    30 };
    32 [scriptable, uuid(95e1be50-c912-11e2-8b8b-0800200c9a66)]
    33 interface nsIRilContext : nsISupports
    34 {
    35   readonly attribute DOMString radioState;
    37   readonly attribute DOMString cardState;
    39   readonly attribute long retryCount;
    41   readonly attribute DOMString imsi;
    43   readonly attribute DOMString networkSelectionMode;
    45   readonly attribute nsIDOMMozIccInfo iccInfo;
    47   readonly attribute nsIDOMMozMobileConnectionInfo voice;
    49   readonly attribute nsIDOMMozMobileConnectionInfo data;
    50 };
    52 [scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
    53 interface nsIRilSendWorkerMessageCallback : nsISupports
    54 {
    55   boolean handleResponse(in jsval response);
    56 };
    58 [scriptable, uuid(181d460e-220e-4274-8ba4-43f122eb518d)]
    59 interface nsIRadioInterface : nsISupports
    60 {
    61   readonly attribute nsIRilContext rilContext;
    63   /**
    64    * PDP APIs
    65    */
    66   void setupDataCallByType(in DOMString apntype);
    67   void deactivateDataCallByType(in DOMString apntype);
    68   long getDataCallStateByType(in DOMString apntype);
    70   void updateRILNetworkInterface();
    72   /**
    73    * SMS-related functionality.
    74    */
    75   void getSegmentInfoForText(in DOMString text,
    76                              in nsIMobileMessageCallback request);
    78   void sendSMS(in DOMString number,
    79                in DOMString message,
    80                in boolean silent,
    81                in nsIMobileMessageCallback request);
    83   void sendWorkerMessage(in DOMString type,
    84               [optional] in jsval message,
    85               [optional] in nsIRilSendWorkerMessageCallback callback);
    87   void getSmscAddress(in nsIMobileMessageCallback request);
    88 };
    90 [scriptable, uuid(d035c32e-b491-11e3-9f9d-c716fab88bd6)]
    91 interface nsIRadioInterfaceLayer : nsISupports
    92 {
    93   readonly attribute unsigned long numRadioInterfaces;
    95   nsIRadioInterface getRadioInterface(in unsigned long clientId);
    97   void setMicrophoneMuted(in boolean muted);
    98 };

mercurial