Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsIDOMMozVoicemailStatus;
9 [scriptable, uuid(214b0963-da48-4859-a56c-f065a90e0403)]
10 interface nsIVoicemailListener : nsISupports
11 {
12 /**
13 * Called when a voicemail notification has been received by the network.
14 *
15 * @param status
16 * The new voicemail status
17 */
18 void notifyStatusChanged(in nsIDOMMozVoicemailStatus status);
19 };
21 /**
22 * XPCOM component (in the content process) that provides the voicemail
23 * information.
24 */
25 [scriptable, uuid(1bbfff90-88f7-4d73-896e-9620a0000ab0)]
26 interface nsIVoicemailProvider : nsISupports
27 {
28 readonly attribute unsigned long voicemailDefaultServiceId;
30 /**
31 * Called when a content process registers receiving unsolicited messages from
32 * RadioInterfaceLayer in the chrome process. Only a content process that has
33 * the 'voicemail' permission is allowed to register.
34 */
35 void registerVoicemailMsg(in nsIVoicemailListener listener);
36 void unregisterVoicemailMsg(in nsIVoicemailListener listener);
38 nsIDOMMozVoicemailStatus getVoicemailStatus(in unsigned long clientId);
39 DOMString getVoicemailNumber(in unsigned long clientId);
40 DOMString getVoicemailDisplayName(in unsigned long clientId);
41 };