Bug 814634 - part1 - WebAPI - WebVoicemail API: support multiple sim cards. r=khuey, r=gene.lian

This commit is contained in:
Hsin-Yi Tsai 2013-10-27 20:46:46 +08:00
Родитель 79b6cd8523
Коммит 97fd93d6d2
2 изменённых файлов: 16 добавлений и 17 удалений

Просмотреть файл

@ -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;
};