Bug 822210 - cdma call waiting - part1 - idl. sr=sicking, r=bent
--- a/dom/telephony/nsITelephonyProvider.idl
+++ b/dom/telephony/nsITelephonyProvider.idl
@@ -1,15 +1,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
-[scriptable, uuid(a1e9fdd9-7901-4a0f-8b6b-6ee0fa8f9d81)]
+[scriptable, uuid(3fb573c3-6fc4-41d3-80c1-f0e60662691e)]
interface nsITelephonyListener : nsISupports
{
/**
* Notified when a telephony call changes state.
*
* @param callIndex
* Call identifier assigned by the RIL.
* @param callState
@@ -77,16 +77,24 @@ interface nsITelephonyListener : nsISupp
*
* @param callIndex
* Call identifier assigned by the RIL. -1 if no connection
* @param error
* Error from RIL.
*/
void notifyError(in long callIndex,
in AString error);
+
+ /**
+ * Called when a waiting call comes in CDMA networks.
+ *
+ * @param number
+ * Number of the other party.
+ */
+ void notifyCdmaCallWaiting(in AString number);
};
/**
* XPCOM component (in the content process) that provides the telephony
* information.
*/
[scriptable, uuid(eddb7ff6-29af-4973-83de-1159365c7d7d)]
interface nsITelephonyProvider : nsISupports
--- a/dom/webidl/TelephonyCall.webidl
+++ b/dom/webidl/TelephonyCall.webidl
@@ -2,16 +2,20 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
interface TelephonyCall : EventTarget {
readonly attribute DOMString number;
+ // In CDMA networks, the 2nd waiting call shares the connection with the 1st
+ // call. We need an additional attribute for the 2nd number.
+ readonly attribute DOMString? secondNumber;
+
readonly attribute DOMString state;
// The property "emergency" indicates whether the call number is an emergency
// number. Only the outgoing call could have a value with true and it is
// available after dialing state.
readonly attribute boolean emergency;
readonly attribute DOMError? error;