Bug 787421 - nsINetworkManager.idl changes. r=philikon
authorVincent Chang <vchang@mozilla.com>
Thu, 13 Sep 2012 15:18:48 +0800
changeset 107964 c614f656bc13045bbbea3ba9298e067dc693b3e9
parent 107963 1bf9b829548cba0a05f6d749d0c54b71ada3346d
child 107965 baf1182b6924c30251c909316712e3707402af97
push id15298
push userryanvm@gmail.com
push dateTue, 25 Sep 2012 01:50:21 +0000
treeherdermozilla-inbound@3b1d2d4be337 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs787421
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 787421 - nsINetworkManager.idl changes. r=philikon
dom/system/gonk/nsINetworkManager.idl
--- a/dom/system/gonk/nsINetworkManager.idl
+++ b/dom/system/gonk/nsINetworkManager.idl
@@ -81,20 +81,33 @@ interface nsINetworkInterface : nsISuppo
 
   /*
    * The port number of the http proxy server. 
    */
   readonly attribute long httpProxyPort;
 
 };
 
+[scriptable, function, uuid(91824160-fb25-11e1-a21f-0800200c9a66)]
+interface nsIWifiTetheringCallback : nsISupports
+{
+  /**
+   * Callback function used to report status to WifiManager.
+   *
+   * @param error
+   *        An error message if the operation wasn't successful,
+   *        or `null` if it was.
+   */
+  void wifiTetheringEnabledChange(in jsval error);
+};
+
 /**
  * Manage network interfaces.
  */
-[scriptable, uuid(3bc29392-2fba-11e1-80fd-0010183a41af)]
+[scriptable, uuid(a02de6b0-fb25-11e1-a21f-0800200c9a66)]
 interface nsINetworkManager : nsISupports
 {
   /**
    * Register the given network interface with the network manager.
    *
    * Consumers will be notified with the 'network-interface-registered'
    * observer notification.
    *
@@ -152,9 +165,27 @@ interface nsINetworkManager : nsISupport
    * the 'network-active-changed' observer notification.
    *
    * @param network
    *        Network to route all network traffic to. If this is null,
    *        a previous override is canceled.
    */
   long overrideActive(in nsINetworkInterface network);
 
+  /**
+   * Returns whether or not wifi tethering is currently enabled.
+   */
+  readonly attribute boolean wifiTetheringEnabled;
+
+  /**
+   * Enable or disable Wifi Tethering
+   *
+   * @param enabled
+   *        Boolean that indicates whether tethering should be enabled (true) or disabled (false).
+   * @param network
+   *        The Wifi network interface with at least name of network interface.
+   * @param callback
+   *        Callback function used to report status to WifiManager.
+   */
+  void setWifiTethering(in boolean enabled,
+                        in nsINetworkInterface networkInterface,
+                        in nsIWifiTetheringCallback callback);
 };