mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814634 - part1 - WebAPI - WebVoicemail API: support multiple sim cards. r=khuey, r=gene.lian
This commit is contained in:
parent
4d2edc73ac
commit
6baa6f6032
@ -6,13 +6,10 @@
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, uuid(8c58859a-e006-466a-ad76-b188ba0918ab)]
|
||||
[scriptable, uuid(efd352af-9eee-48dc-8e92-4d4fdbc89ecb)]
|
||||
interface nsIDOMMozVoicemailStatus : nsISupports
|
||||
{
|
||||
/**
|
||||
* There are voicemail messages waiting, but the count is unknown.
|
||||
*/
|
||||
const long MESSAGE_COUNT_UNKNOWN = -1;
|
||||
readonly attribute unsigned long serviceId;
|
||||
|
||||
/**
|
||||
* Whether or not there are messages waiting in the voicemail box
|
||||
@ -22,7 +19,7 @@ interface nsIDOMMozVoicemailStatus : nsISupports
|
||||
/**
|
||||
* The total message count. Some voicemail indicators will only specify that
|
||||
* messages are waiting, but not the actual number. In that case, the value
|
||||
* of messageCount will be MESSAGE_COUNT_UNKNOWN (-1).
|
||||
* of messageCount will be -1, indicating the unknown message count.
|
||||
*
|
||||
* Logic for a voicemail notification might look something like:
|
||||
* if (status.hasMessages) {
|
||||
|
@ -11,26 +11,28 @@ interface MozVoicemailStatus;
|
||||
interface MozVoicemail : EventTarget
|
||||
{
|
||||
/**
|
||||
* The current voicemail status, or null when the status is unknown
|
||||
* The current voicemail status of a specified service, or null when the
|
||||
* status is unknown.
|
||||
*/
|
||||
[GetterThrows]
|
||||
readonly attribute MozVoicemailStatus? status;
|
||||
[Throws]
|
||||
MozVoicemailStatus getStatus(optional unsigned long serviceId);
|
||||
|
||||
/**
|
||||
* The voicemail box dialing number, or null if one wasn't found
|
||||
* The voicemail box dialing number of a specified service, or null if one
|
||||
* wasn't found.
|
||||
*/
|
||||
[GetterThrows]
|
||||
readonly attribute DOMString? number;
|
||||
[Throws]
|
||||
DOMString getNumber(optional unsigned long serviceId);
|
||||
|
||||
/**
|
||||
* The display name of the voicemail box dialing number, or null if one
|
||||
* wasn't found
|
||||
* The display name of the voicemail box dialing number of a specified service,
|
||||
* or null if one wasn't found.
|
||||
*/
|
||||
[GetterThrows]
|
||||
readonly attribute DOMString? displayName;
|
||||
[Throws]
|
||||
DOMString getDisplayName(optional unsigned long serviceId);
|
||||
|
||||
/**
|
||||
* The current voicemail status has changed
|
||||
* The current voicemail status has changed.
|
||||
*/
|
||||
attribute EventHandler onstatuschanged;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user