Bumping manifests a=b2g-bump
[gecko.git] / dom / telephony / nsITelephonyMessenger.idl
bloba7b269af4402a6703b6aa1cbbeb81cb460810907
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
10 /**
11 * To broadcast 'telephony-new-call' system message
13 void notifyNewCall();
15 /**
16 * To broadcast 'telephony-call-ended' system message
18 * @param aServiceId
19 * The ID of Service where this info is notified from.
20 * @param aNumber
21 * The phone number of the call to be ended.
22 * @param aCdmaWaitingNumber
23 * The CDMA call waiting number to be ended if available.
24 * @param aEmergency
25 * true if it's a emergency number.
26 * @param aDuration
27 * The duration of this call.
28 * @param aOutgoing
29 * true if it's an outgoing call.
30 * @param aHangUpLocal
31 * true if this call was hung up by the user.
33 void notifyCallEnded(in unsigned long aServiceId,
34 in DOMString aNumber,
35 in DOMString aCdmaWaitingNumber,
36 in boolean aEmergency,
37 in unsigned long aDuration,
38 in boolean aOutgoing,
39 in boolean aHangUpLocal);
41 /**
42 * 'ussd-received' system message
44 * @param aServiceId
45 * The ID of Service where this info is notified from.
46 * @param aMessage
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);