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 248250 d385fe32e60a1e27d0aabc4410dea51f6901cfe1
parent 248249 19941167e2f344cd52d6ed7b9e5d18c049bb92be
child 248251 91470d5fbfde5cb63794ad4e6c8d3a9a87b5cf52
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1115758
milestone37.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 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>