summaryrefslogtreecommitdiffstats
path: root/dom/system/gonk/nsIRadioInterfaceLayer.idl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/system/gonk/nsIRadioInterfaceLayer.idl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/system/gonk/nsIRadioInterfaceLayer.idl')
-rw-r--r--dom/system/gonk/nsIRadioInterfaceLayer.idl53
1 files changed, 53 insertions, 0 deletions
diff --git a/dom/system/gonk/nsIRadioInterfaceLayer.idl b/dom/system/gonk/nsIRadioInterfaceLayer.idl
new file mode 100644
index 000000000..168fe3894
--- /dev/null
+++ b/dom/system/gonk/nsIRadioInterfaceLayer.idl
@@ -0,0 +1,53 @@
+/* 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 nsIIccInfo;
+interface nsIMobileConnectionInfo;
+interface nsIMobileMessageCallback;
+
+[scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
+interface nsIRilSendWorkerMessageCallback : nsISupports
+{
+ boolean handleResponse(in jsval response);
+};
+
+[scriptable, uuid(1a3ef88a-e4d1-11e4-8512-176220f2b32b)]
+interface nsIRadioInterface : nsISupports
+{
+ /**
+ * PDP APIs
+ *
+ * @param networkType
+ * Mobile network type, that is, nsINetworkInterface.NETWORK_TYPE_MOBILE
+ * or one of the nsINetworkInterface.NETWORK_TYPE_MOBILE_* values.
+ */
+ void setupDataCallByType(in long networkType);
+ void deactivateDataCallByType(in long networkType);
+ long getDataCallStateByType(in long networkType);
+
+ void updateRILNetworkInterface();
+
+ void sendWorkerMessage(in DOMString type,
+ [optional] in jsval message,
+ [optional] in nsIRilSendWorkerMessageCallback callback);
+};
+
+%{C++
+#define NS_RADIOINTERFACELAYER_CID \
+ { 0x2d831c8d, 0x6017, 0x435b, \
+ { 0xa8, 0x0c, 0xe5, 0xd4, 0x22, 0x81, 0x0c, 0xea } }
+#define NS_RADIOINTERFACELAYER_CONTRACTID "@mozilla.org/ril;1"
+%}
+
+[scriptable, uuid(09730e0d-75bb-4f21-8540-062a2eadc8ff)]
+interface nsIRadioInterfaceLayer : nsISupports
+{
+ readonly attribute unsigned long numRadioInterfaces;
+
+ nsIRadioInterface getRadioInterface(in unsigned long clientId);
+
+ void setMicrophoneMuted(in boolean muted);
+};