Bug 814629 - Part 2: nsIDOMMobileConnection changes (idl). f=edgar r=hsinyi
authorJessica Jong <jjong@mozilla.com>
Wed, 13 Nov 2013 16:50:46 +0800
changeset 154644 54d9f3f445d1c917c228bc8fca69cc1efdf8638f
parent 154643 eb0765ea6e45ccf0f9e97610312a9bddb8aa2dbe
child 154645 3bca3d180cff417a45eea5fe69e593b0ae48dfdb
push id2373
push userhtsai@mozilla.com
push dateWed, 13 Nov 2013 08:53:00 +0000
treeherderb2g-inbound@5b2f8a5fcd7f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs814629
milestone28.0a1
Bug 814629 - Part 2: nsIDOMMobileConnection changes (idl). f=edgar r=hsinyi
dom/network/interfaces/nsIDOMMobileConnection.idl
--- a/dom/network/interfaces/nsIDOMMobileConnection.idl
+++ b/dom/network/interfaces/nsIDOMMobileConnection.idl
@@ -6,17 +6,17 @@
 
 interface nsIDOMEventListener;
 interface nsIDOMDOMRequest;
 interface nsIDOMMozMobileConnectionInfo;
 interface nsIDOMMozMobileNetworkInfo;
 interface nsIDOMMozMobileCellInfo;
 interface nsIDOMMozMobileCFInfo;
 
-[scriptable, builtinclass, uuid(095b3720-058c-11e3-8ffd-0800200c9a66)]
+[scriptable, builtinclass, uuid(052550e3-7466-4941-80d7-405c169652f9)]
 interface nsIDOMMozMobileConnection : nsIDOMEventTarget
 {
   const long ICC_SERVICE_CLASS_VOICE = (1 << 0);
   const long ICC_SERVICE_CLASS_DATA = (1 << 1);
   const long ICC_SERVICE_CLASS_FAX = (1 << 2);
   const long ICC_SERVICE_CLASS_SMS = (1 << 3);
   const long ICC_SERVICE_CLASS_DATA_SYNC = (1 << 4);
   const long ICC_SERVICE_CLASS_DATA_ASYNC = (1 << 5);
@@ -65,16 +65,22 @@ interface nsIDOMMozMobileConnection : ns
   readonly attribute nsIDOMMozMobileConnectionInfo voice;
 
   /**
    * Information about the data connection.
    */
   readonly attribute nsIDOMMozMobileConnectionInfo data;
 
   /**
+   * Integrated Circuit Card Identifier of the SIM this
+   * mobile connection corresponds to.
+   */
+  readonly attribute DOMString iccId;
+
+  /**
    * The selection mode of the voice and data networks.
    *
    * Possible values: null (unknown), 'automatic', 'manual'
    */
   readonly attribute DOMString networkSelectionMode;
 
   /**
    * Search for available networks.
@@ -378,16 +384,22 @@ interface nsIDOMMozMobileConnection : ns
    */
   [implicit_jscontext] attribute jsval onemergencycbmodechange;
 
   /**
    * The 'onotastatuschange' event is notified whenever the ota provision status
    * changes.
    */
   [implicit_jscontext] attribute jsval onotastatuschange;
+
+  /**
+   * The 'oniccchange' event is notified whenever the iccid value
+   * changes.
+   */
+  [implicit_jscontext] attribute jsval oniccchange;
 };
 
 [scriptable, uuid(49706beb-a160-40b7-b745-50f62e389a2c)]
 interface nsIDOMMozMobileConnectionInfo : nsISupports
 {
   /**
    * State of the connection.
    *