dom/voicemail/nsIDOMMozVoicemailStatus.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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 file,
michael@0 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 [scriptable, uuid(efd352af-9eee-48dc-8e92-4d4fdbc89ecb)]
michael@0 10 interface nsIDOMMozVoicemailStatus : nsISupports
michael@0 11 {
michael@0 12 readonly attribute unsigned long serviceId;
michael@0 13
michael@0 14 /**
michael@0 15 * Whether or not there are messages waiting in the voicemail box
michael@0 16 */
michael@0 17 readonly attribute boolean hasMessages;
michael@0 18
michael@0 19 /**
michael@0 20 * The total message count. Some voicemail indicators will only specify that
michael@0 21 * messages are waiting, but not the actual number. In that case, the value
michael@0 22 * of messageCount will be -1, indicating the unknown message count.
michael@0 23 *
michael@0 24 * Logic for a voicemail notification might look something like:
michael@0 25 * if (status.hasMessages) {
michael@0 26 * // show new voicemail notification
michael@0 27 * if (status.messageCount > 0) {
michael@0 28 * // add a label for the message count
michael@0 29 * }
michael@0 30 * } else {
michael@0 31 * // hide the voicemail notification
michael@0 32 * }
michael@0 33 */
michael@0 34 readonly attribute long messageCount;
michael@0 35
michael@0 36 /**
michael@0 37 * Return call number received for this voicemail status, or null if one
michael@0 38 * wasn't provided.
michael@0 39 */
michael@0 40 readonly attribute DOMString returnNumber;
michael@0 41
michael@0 42 /**
michael@0 43 * Displayable return call message received for this voicemail status, or null
michael@0 44 * if one wasn't provided.
michael@0 45 */
michael@0 46 readonly attribute DOMString returnMessage;
michael@0 47 };

mercurial