2012-07-19 07:26:49 +04:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=40: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2015-01-29 10:32:33 +03:00
|
|
|
[Pref="dom.voicemail.enabled",
|
2016-04-21 16:48:59 +03:00
|
|
|
ChromeOnly]
|
2013-09-03 18:38:53 +04:00
|
|
|
interface MozVoicemail : EventTarget
|
2012-07-19 07:26:49 +04:00
|
|
|
{
|
|
|
|
/**
|
2013-10-27 16:46:46 +04:00
|
|
|
* The current voicemail status of a specified service, or null when the
|
|
|
|
* status is unknown.
|
2012-07-19 07:26:49 +04:00
|
|
|
*/
|
2013-10-27 16:46:46 +04:00
|
|
|
[Throws]
|
|
|
|
MozVoicemailStatus getStatus(optional unsigned long serviceId);
|
2012-07-19 07:26:49 +04:00
|
|
|
|
2012-07-21 04:19:38 +04:00
|
|
|
/**
|
2013-10-27 16:46:46 +04:00
|
|
|
* The voicemail box dialing number of a specified service, or null if one
|
|
|
|
* wasn't found.
|
2012-07-21 04:19:38 +04:00
|
|
|
*/
|
2013-10-27 16:46:46 +04:00
|
|
|
[Throws]
|
|
|
|
DOMString getNumber(optional unsigned long serviceId);
|
2012-07-21 04:19:38 +04:00
|
|
|
|
|
|
|
/**
|
2013-10-27 16:46:46 +04:00
|
|
|
* The display name of the voicemail box dialing number of a specified service,
|
|
|
|
* or null if one wasn't found.
|
2012-07-21 04:19:38 +04:00
|
|
|
*/
|
2013-10-27 16:46:46 +04:00
|
|
|
[Throws]
|
|
|
|
DOMString getDisplayName(optional unsigned long serviceId);
|
2012-07-21 04:19:38 +04:00
|
|
|
|
2012-07-19 07:26:49 +04:00
|
|
|
/**
|
2013-10-27 16:46:46 +04:00
|
|
|
* The current voicemail status has changed.
|
2012-07-19 07:26:49 +04:00
|
|
|
*/
|
2013-09-03 18:38:53 +04:00
|
|
|
attribute EventHandler onstatuschanged;
|
2012-07-19 07:26:49 +04:00
|
|
|
};
|