2012-07-19 03:26:49 +00: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 07:32:33 +00:00
|
|
|
[Pref="dom.voicemail.enabled",
|
2015-07-14 02:25:26 +00:00
|
|
|
CheckAnyPermissions="voicemail",
|
2015-01-29 07:32:33 +00:00
|
|
|
AvailableIn="CertifiedApps"]
|
2013-09-03 14:38:53 +00:00
|
|
|
interface MozVoicemail : EventTarget
|
2012-07-19 03:26:49 +00:00
|
|
|
{
|
|
|
|
/**
|
2013-10-27 12:46:46 +00:00
|
|
|
* The current voicemail status of a specified service, or null when the
|
|
|
|
* status is unknown.
|
2012-07-19 03:26:49 +00:00
|
|
|
*/
|
2013-10-27 12:46:46 +00:00
|
|
|
[Throws]
|
|
|
|
MozVoicemailStatus getStatus(optional unsigned long serviceId);
|
2012-07-19 03:26:49 +00:00
|
|
|
|
2012-07-21 00:19:38 +00:00
|
|
|
/**
|
2013-10-27 12:46:46 +00:00
|
|
|
* The voicemail box dialing number of a specified service, or null if one
|
|
|
|
* wasn't found.
|
2012-07-21 00:19:38 +00:00
|
|
|
*/
|
2013-10-27 12:46:46 +00:00
|
|
|
[Throws]
|
|
|
|
DOMString getNumber(optional unsigned long serviceId);
|
2012-07-21 00:19:38 +00:00
|
|
|
|
|
|
|
/**
|
2013-10-27 12:46:46 +00:00
|
|
|
* The display name of the voicemail box dialing number of a specified service,
|
|
|
|
* or null if one wasn't found.
|
2012-07-21 00:19:38 +00:00
|
|
|
*/
|
2013-10-27 12:46:46 +00:00
|
|
|
[Throws]
|
|
|
|
DOMString getDisplayName(optional unsigned long serviceId);
|
2012-07-21 00:19:38 +00:00
|
|
|
|
2012-07-19 03:26:49 +00:00
|
|
|
/**
|
2013-10-27 12:46:46 +00:00
|
|
|
* The current voicemail status has changed.
|
2012-07-19 03:26:49 +00:00
|
|
|
*/
|
2013-09-03 14:38:53 +00:00
|
|
|
attribute EventHandler onstatuschanged;
|
2012-07-19 03:26:49 +00:00
|
|
|
};
|