Bug 961571 - Part 1: IDL changes for adding ims apn type. r=hsinyi
authorEdgar Chen <echen@mozilla.com>
Wed, 26 Feb 2014 00:07:00 +0800
changeset 171409 1f4d436f213a5e634670fbfb07887b61cfa2312c
parent 171408 6d26d6f080f67e7c6e11c404619542288dc75c7c
child 171410 d57fbc7bdd37f9e944244dbfb2c94288820481ce
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewershsinyi
bugs961571
milestone30.0a1
Bug 961571 - Part 1: IDL changes for adding ims apn type. r=hsinyi
dom/system/gonk/nsINetworkInterfaceListService.idl
dom/system/gonk/nsINetworkManager.idl
--- a/dom/system/gonk/nsINetworkInterfaceListService.idl
+++ b/dom/system/gonk/nsINetworkInterfaceListService.idl
@@ -15,21 +15,22 @@ interface nsINetworkInterfaceList : nsIS
 
   /**
    * Get the i-th interface from the list.
    * @param interfaceIndex index of interface, from 0 to number of interface - 1.
    */
   nsINetworkInterface getInterface(in long interfaceIndex);
 };
 
-[scriptable, uuid(5be50bcb-bfe9-4742-b7e6-3e9bb4835369)]
+[scriptable, uuid(e3cf9355-086e-46e3-bb3d-378bd58d578b)]
 interface nsINetworkInterfaceListService : nsISupports
 {
-  const long LIST_NOT_INCLUDE_MMS_INTERFACES = 1;
-  const long LIST_NOT_INCLUDE_SUPL_INTERFACES = 2;
+  const long LIST_NOT_INCLUDE_MMS_INTERFACES  = (1 << 0);
+  const long LIST_NOT_INCLUDE_SUPL_INTERFACES = (1 << 1);
+  const long LIST_NOT_INCLUDE_IMS_INTERFACES  = (1 << 2);
 
   /**
    * Obtain a list of network interfaces that satisfy the specified condition.
    * @param condition flags that specify the interfaces to be returned. This
    *        can be OR combination of LIST_* flags, or zero to make all available
    *        interfaces returned.
    */
   nsINetworkInterfaceList getDataInterfaceList(in long condition);
--- a/dom/system/gonk/nsINetworkManager.idl
+++ b/dom/system/gonk/nsINetworkManager.idl
@@ -4,17 +4,17 @@
 
 #include "nsISupports.idl"
 
 interface nsIWifiTetheringCallback;
 
 /**
  * Information about networks that is exposed to network manager API consumers.
  */
-[scriptable, uuid(6ff0c978-24e6-4560-b470-143eca6e39b7)]
+[scriptable, uuid(4d738144-ac69-48ef-b97e-49cc627fae67)]
 interface nsINetworkInterface : nsISupports
 {
   const long NETWORK_STATE_UNKNOWN = -1;
   const long NETWORK_STATE_CONNECTING = 0;
   const long NETWORK_STATE_CONNECTED = 1;
   const long NETWORK_STATE_DISCONNECTING = 2;
   const long NETWORK_STATE_DISCONNECTED = 3;
 
@@ -27,16 +27,17 @@ interface nsINetworkInterface : nsISuppo
   readonly attribute long state;
 
   const long NETWORK_TYPE_UNKNOWN     = -1;
   const long NETWORK_TYPE_WIFI        = 0;
   const long NETWORK_TYPE_MOBILE      = 1;
   const long NETWORK_TYPE_MOBILE_MMS  = 2;
   const long NETWORK_TYPE_MOBILE_SUPL = 3;
   const long NETWORK_TYPE_WIFI_P2P    = 4;
+  const long NETWORK_TYPE_MOBILE_IMS  = 5;
 
   /**
    * Network type. One of the NETWORK_TYPE_* constants.
    */
   readonly attribute long type;
 
   /**
    * Name of the network interface. This identifier is unique.