Bug 847741 - Part 2: (IDL) Add readContact to IccManager. r=vicamo, sr=mounir
authorYoshi Huang <allstars.chh@mozilla.com>
Wed, 06 Mar 2013 10:28:48 +0800
changeset 130777 273e98426db0b856c40a45ca5ce1f8e7d46a871f
parent 130776 2131ced28811504bd64c9b3d07b5f3487a632156
child 130778 71f84b64af4f927818f4f6cace96366b52a8cd6a
push id1579
push userphilringnalda@gmail.com
push dateSat, 04 May 2013 04:38:04 +0000
treeherderfx-team@a56432a42a41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo, mounir
bugs847741
milestone23.0a1
Bug 847741 - Part 2: (IDL) Add readContact to IccManager. r=vicamo, sr=mounir
dom/icc/interfaces/nsIDOMIccManager.idl
--- a/dom/icc/interfaces/nsIDOMIccManager.idl
+++ b/dom/icc/interfaces/nsIDOMIccManager.idl
@@ -4,17 +4,17 @@
 
 #include "nsIDOMEventTarget.idl"
 #include "SimToolKit.idl"
 
 interface nsIDOMEventListener;
 interface nsIDOMDOMRequest;
 interface nsIDOMContact;
 
-[scriptable, builtinclass, uuid(9af5378e-03ce-4c5f-8ec1-50ae774b5612)]
+[scriptable, builtinclass, uuid(fcc1971a-ddb7-4b38-8474-25bef7e5bf40)]
 interface nsIDOMMozIccManager : nsIDOMEventTarget
 {
   /**
    * STK Menu Presentation types.
    */
   const unsigned short STK_MENU_TYPE_NOT_SPECIFIED      = 0x00;
   const unsigned short STK_MENU_TYPE_DATA_VALUES        = 0x01;
   const unsigned short STK_MENU_TYPE_NAVIGATION_OPTIONS = 0x03;
@@ -270,32 +270,46 @@ interface nsIDOMMozIccManager : nsIDOMEv
   [implicit_jscontext] attribute jsval onstkcommand;
 
   /**
    * 'stksessionend' event is notified whenever STK Session is terminated by
    * ICC.
    */
   [implicit_jscontext] attribute jsval onstksessionend;
 
+  // UICC Phonebook Interfaces.
+
+  /**
+   * Read ICC contacts.
+   *
+   * @param contactType
+   *        One of type as below,
+   *        - 'adn': Abbreviated Dialling Number
+   *        - 'fdn': Fixed Dialling Number
+   */
+  nsIDOMDOMRequest readContacts(in DOMString contactType);
+
   /**
    * Update ICC Phonebook contact.
    *
    * @param contactType
    *        One of type as below,
    *        - 'adn': Abbreviated Dialling Number
    *        - 'fdn': Fixed Dialling Number
    * @param contact
    *        The contact will be updated in ICC
    * @param [optional] pin2
    *        PIN2 is only required for 'fdn'.
    */
   nsIDOMDOMRequest updateContact(in DOMString contactType,
                                  in nsIDOMContact contact,
                                  [optional] in DOMString pin2);
 
+  // End of UICC Phonebook Interfaces.
+
   // UICC Secure Element Interfaces
 
   /**
    * A secure element is a smart card chip that can hold
    * several different applications with the necessary security.
    * The most known secure element is the Universal Integrated Circuit Card (UICC)
    */