Bug 1115758 - Part 3: Add nsITelephonyService.cancelUSSD (idl). r=hsinyi
authorSzu-Yu Chen [:aknow] <szchen@mozilla.com>
Wed, 07 Jan 2015 15:28:44 +0800
changeset 235517 d385fe32e60a1e27d0aabc4410dea51f6901cfe1
parent 235516 19941167e2f344cd52d6ed7b9e5d18c049bb92be
child 235518 91470d5fbfde5cb63794ad4e6c8d3a9a87b5cf52
push id366
push usercmanchester@mozilla.com
push dateThu, 08 Jan 2015 16:40:24 +0000
reviewershsinyi
bugs1115758
milestone37.0a1
Bug 1115758 - Part 3: Add nsITelephonyService.cancelUSSD (idl). r=hsinyi
dom/telephony/nsITelephonyService.idl
--- a/dom/telephony/nsITelephonyService.idl
+++ b/dom/telephony/nsITelephonyService.idl
@@ -246,17 +246,17 @@ interface nsITelephonyDialCallback : nsI
 #define TELEPHONY_SERVICE_CONTRACTID \
   "@mozilla.org/telephony/telephonyservice;1"
 %}
 
 /**
  * XPCOM component (in the content process) that provides the telephony
  * information.
  */
-[scriptable, uuid(fd797bcc-54e2-4e4a-9ec7-3b72862d0d78)]
+[scriptable, uuid(0ab80865-7221-4c81-802f-8f7d7fc73674)]
 interface nsITelephonyService : 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_CONNECTING = 3;
   const unsigned short CALL_STATE_CONNECTED = 4;
   const unsigned short CALL_STATE_HOLDING = 5;
@@ -327,16 +327,24 @@ interface nsITelephonyService : nsISuppo
    * not existed.
    *
    * If successful, callback.notifySuccess() will be called.
    * Otherwise, callback.notifyError() will be called.
    */
   void sendUSSD(in unsigned long clientId, in DOMString ussd,
                 in nsITelephonyCallback callback);
 
+  /**
+   * Cancel an existing USSD session.
+   *
+   * If successful, callback.notifySuccess() will be called.
+   * Otherwise, callback.notifyError() will be called.
+   */
+  void cancelUSSD(in unsigned long cliendId, in nsITelephonyCallback callback);
+
   attribute bool microphoneMuted;
   attribute bool speakerEnabled;
 };
 
 %{C++
 template<typename T> struct already_AddRefed;
 
 already_AddRefed<nsITelephonyService>