1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
7 [scriptable
, uuid(84045b7e
-84fb
-11e4
-a94c
-5ba58d0d5932
)]
8 interface nsITelephonyMessenger
: nsISupports
11 * To broadcast 'telephony-new-call' system message
16 * To broadcast 'telephony-call-ended' system message
19 * The ID of Service where this info is notified from.
21 * The phone number of the call to be ended.
22 * @param aCdmaWaitingNumber
23 * The CDMA call waiting number to be ended if available.
25 * true if it's a emergency number.
27 * The duration of this call.
29 * true if it's an outgoing call.
31 * true if this call was hung up by the user.
33 void notifyCallEnded
(in unsigned long aServiceId
,
35 in DOMString aCdmaWaitingNumber
,
36 in boolean aEmergency
,
37 in unsigned long aDuration
,
39 in boolean aHangUpLocal
);
42 * 'ussd-received' system message
45 * The ID of Service where this info is notified from.
47 * USSD Message to be displayed.
48 * @param aSessionEnded
49 * True if USSD session is ended.
51 void notifyUssdReceived
(in unsigned long aServiceId
,
52 in DOMString aMessage
,
53 in boolean aSessionEnded
);