michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=40: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // nsIDOMMozVoicemailStatus michael@0: interface MozVoicemailStatus; michael@0: michael@0: [Pref="dom.voicemail.enabled"] michael@0: interface MozVoicemail : EventTarget michael@0: { michael@0: /** michael@0: * The current voicemail status of a specified service, or null when the michael@0: * status is unknown. michael@0: */ michael@0: [Throws] michael@0: MozVoicemailStatus getStatus(optional unsigned long serviceId); michael@0: michael@0: /** michael@0: * The voicemail box dialing number of a specified service, or null if one michael@0: * wasn't found. michael@0: */ michael@0: [Throws] michael@0: DOMString getNumber(optional unsigned long serviceId); michael@0: michael@0: /** michael@0: * The display name of the voicemail box dialing number of a specified service, michael@0: * or null if one wasn't found. michael@0: */ michael@0: [Throws] michael@0: DOMString getDisplayName(optional unsigned long serviceId); michael@0: michael@0: /** michael@0: * The current voicemail status has changed. michael@0: */ michael@0: attribute EventHandler onstatuschanged; michael@0: };