Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=40: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | // nsIDOMMozVoicemailStatus |
michael@0 | 8 | interface MozVoicemailStatus; |
michael@0 | 9 | |
michael@0 | 10 | [Pref="dom.voicemail.enabled"] |
michael@0 | 11 | interface MozVoicemail : EventTarget |
michael@0 | 12 | { |
michael@0 | 13 | /** |
michael@0 | 14 | * The current voicemail status of a specified service, or null when the |
michael@0 | 15 | * status is unknown. |
michael@0 | 16 | */ |
michael@0 | 17 | [Throws] |
michael@0 | 18 | MozVoicemailStatus getStatus(optional unsigned long serviceId); |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * The voicemail box dialing number of a specified service, or null if one |
michael@0 | 22 | * wasn't found. |
michael@0 | 23 | */ |
michael@0 | 24 | [Throws] |
michael@0 | 25 | DOMString getNumber(optional unsigned long serviceId); |
michael@0 | 26 | |
michael@0 | 27 | /** |
michael@0 | 28 | * The display name of the voicemail box dialing number of a specified service, |
michael@0 | 29 | * or null if one wasn't found. |
michael@0 | 30 | */ |
michael@0 | 31 | [Throws] |
michael@0 | 32 | DOMString getDisplayName(optional unsigned long serviceId); |
michael@0 | 33 | |
michael@0 | 34 | /** |
michael@0 | 35 | * The current voicemail status has changed. |
michael@0 | 36 | */ |
michael@0 | 37 | attribute EventHandler onstatuschanged; |
michael@0 | 38 | }; |