Bug 762760 - Part 1: IDL. r=philikon
authorYoshi Huang <yhuang@mozilla.com>
Mon, 11 Jun 2012 14:50:13 +0800
changeset 101787 ddf9d7173d720d721705a05a7062a85bebebcfa5
parent 101786 8a7588128430bca0346f89481e3428b3bccd37b7
child 101788 421ed10b0e817c04dd6aef4611fc4027b15b5aa0
push id1316
push userakeybl@mozilla.com
push dateMon, 27 Aug 2012 22:37:00 +0000
treeherdermozilla-beta@db4b09302ee2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs762760
milestone16.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 762760 - Part 1: IDL. r=philikon
dom/system/gonk/nsIRadioInterfaceLayer.idl
--- a/dom/system/gonk/nsIRadioInterfaceLayer.idl
+++ b/dom/system/gonk/nsIRadioInterfaceLayer.idl
@@ -143,17 +143,91 @@ interface nsIRILContentHelper : nsIMobil
   void rejectCall(in unsigned long callIndex);
   void holdCall(in unsigned long callIndex);
   void resumeCall(in unsigned long callIndex);
 
   attribute bool microphoneMuted;
   attribute bool speakerEnabled;
 };
 
-[scriptable, uuid(fa923335-4cbd-40d7-8d4a-5689a6db2b6d)]
+[scriptable, uuid(fd9e8b38-b839-4d56-8482-3bf1f5c8f2ee)]
+interface nsIICCRecords : nsISupports
+{
+  /**
+   * Mobile Subscriber ISDN Number
+   */
+  readonly attribute DOMString msisdn;
+
+  /**
+   * Administrative Data
+   */
+  readonly attribute jsval ad;
+
+  /**
+   * International Mobile Subscriber Identity
+   */
+  readonly attribute DOMString imsi;
+
+  /**
+   * Mobile Country Code
+   */
+  readonly attribute unsigned short mcc;
+
+  /**
+   * Mobile Network Code
+   */
+  readonly attribute unsigned short mnc;
+
+  /**
+   * USIM Service Table
+   */
+  readonly attribute jsval ust;
+
+  /**
+   * Abbreviated dialling numbers
+   */
+  readonly attribute jsval adn;
+
+  /**
+   * Fixed Dialling Numbers
+   */
+  readonly attribute jsval fdn;
+};
+
+[scriptable, uuid(1b47459d-d0bc-4e91-8509-cc106054b9ee)]
+interface nsICellLocation : nsISupports
+{
+  /**
+   * Location Area Code
+   */
+  readonly attribute unsigned short lac;
+
+  /**
+   * Cell Identity
+   */
+  readonly attribute unsigned long cid;
+};
+
+[scriptable, uuid(a6f6977e-f4ee-42b4-ae79-798c8c47c360)]
+interface nsIRilContext : nsISupports
+{
+  readonly attribute DOMString radioState;
+
+  readonly attribute DOMString cardState;
+
+  readonly attribute nsIICCRecords icc;
+
+  readonly attribute nsICellLocation cell;
+
+  readonly attribute nsIDOMMozMobileConnectionInfo voice;
+
+  readonly attribute nsIDOMMozMobileConnectionInfo data;
+};
+
+[scriptable, uuid(92bea0af-8d75-4592-87d0-1cab88e36904)]
 interface nsIRadioInterfaceLayer : nsISupports
 {
   const unsigned short CALL_STATE_UNKNOWN = 0;
   const unsigned short CALL_STATE_DIALING = 1;
   const unsigned short CALL_STATE_ALERTING = 2;
   const unsigned short CALL_STATE_BUSY = 3;
   const unsigned short CALL_STATE_CONNECTING = 4;
   const unsigned short CALL_STATE_CONNECTED = 5;
@@ -171,17 +245,17 @@ interface nsIRadioInterfaceLayer : nsISu
   const unsigned short DATACALL_STATE_DISCONNECTING = 3;
   const unsigned short DATACALL_STATE_DISCONNECTED = 4;
 
   /**
    * Activates or deactivates radio power.
    */
   void setRadioEnabled(in bool value);
 
-  readonly attribute jsval radioState;
+  readonly attribute nsIRilContext rilContext;
 
   /**
    * PDP APIs
    */
   void setupDataCall(in long radioTech,
                      in DOMString apn,
                      in DOMString user,
                      in DOMString passwd,