1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/voicemail/nsIVoicemailProvider.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIDOMMozVoicemailStatus; 1.11 + 1.12 +[scriptable, uuid(214b0963-da48-4859-a56c-f065a90e0403)] 1.13 +interface nsIVoicemailListener : nsISupports 1.14 +{ 1.15 + /** 1.16 + * Called when a voicemail notification has been received by the network. 1.17 + * 1.18 + * @param status 1.19 + * The new voicemail status 1.20 + */ 1.21 + void notifyStatusChanged(in nsIDOMMozVoicemailStatus status); 1.22 +}; 1.23 + 1.24 +/** 1.25 + * XPCOM component (in the content process) that provides the voicemail 1.26 + * information. 1.27 + */ 1.28 +[scriptable, uuid(1bbfff90-88f7-4d73-896e-9620a0000ab0)] 1.29 +interface nsIVoicemailProvider : nsISupports 1.30 +{ 1.31 + readonly attribute unsigned long voicemailDefaultServiceId; 1.32 + 1.33 + /** 1.34 + * Called when a content process registers receiving unsolicited messages from 1.35 + * RadioInterfaceLayer in the chrome process. Only a content process that has 1.36 + * the 'voicemail' permission is allowed to register. 1.37 + */ 1.38 + void registerVoicemailMsg(in nsIVoicemailListener listener); 1.39 + void unregisterVoicemailMsg(in nsIVoicemailListener listener); 1.40 + 1.41 + nsIDOMMozVoicemailStatus getVoicemailStatus(in unsigned long clientId); 1.42 + DOMString getVoicemailNumber(in unsigned long clientId); 1.43 + DOMString getVoicemailDisplayName(in unsigned long clientId); 1.44 +};