2012-07-18 20:26:49 -07: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/. */
|
|
|
|
|
2013-09-03 07:38:53 -07:00
|
|
|
// nsIDOMMozVoicemailStatus
|
|
|
|
interface MozVoicemailStatus;
|
2012-07-18 20:26:49 -07:00
|
|
|
|
2013-10-17 13:51:27 -07:00
|
|
|
[Pref="dom.voicemail.enabled"]
|
2013-09-03 07:38:53 -07:00
|
|
|
interface MozVoicemail : EventTarget
|
2012-07-18 20:26:49 -07:00
|
|
|
{
|
|
|
|
/**
|
2013-10-27 05:46:46 -07:00
|
|
|
* The current voicemail status of a specified service, or null when the
|
|
|
|
* status is unknown.
|
2012-07-18 20:26:49 -07:00
|
|
|
*/
|
2013-10-27 05:46:46 -07:00
|
|
|
[Throws]
|
|
|
|
MozVoicemailStatus getStatus(optional unsigned long serviceId);
|
2012-07-18 20:26:49 -07:00
|
|
|
|
2012-07-20 17:19:38 -07:00
|
|
|
/**
|
2013-10-27 05:46:46 -07:00
|
|
|
* The voicemail box dialing number of a specified service, or null if one
|
|
|
|
* wasn't found.
|
2012-07-20 17:19:38 -07:00
|
|
|
*/
|
2013-10-27 05:46:46 -07:00
|
|
|
[Throws]
|
|
|
|
DOMString getNumber(optional unsigned long serviceId);
|
2012-07-20 17:19:38 -07:00
|
|
|
|
|
|
|
/**
|
2013-10-27 05:46:46 -07:00
|
|
|
* The display name of the voicemail box dialing number of a specified service,
|
|
|
|
* or null if one wasn't found.
|
2012-07-20 17:19:38 -07:00
|
|
|
*/
|
2013-10-27 05:46:46 -07:00
|
|
|
[Throws]
|
|
|
|
DOMString getDisplayName(optional unsigned long serviceId);
|
2012-07-20 17:19:38 -07:00
|
|
|
|
2012-07-18 20:26:49 -07:00
|
|
|
/**
|
2013-10-27 05:46:46 -07:00
|
|
|
* The current voicemail status has changed.
|
2012-07-18 20:26:49 -07:00
|
|
|
*/
|
2013-09-03 07:38:53 -07:00
|
|
|
attribute EventHandler onstatuschanged;
|
2012-07-18 20:26:49 -07:00
|
|
|
};
|