dom/webidl/CFStateChangeEvent.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5 */
michael@0 6
michael@0 7 [Pref="dom.mobileconnection.enabled",
michael@0 8 Constructor(DOMString type, optional CFStateChangeEventInit eventInitDict)]
michael@0 9 interface CFStateChangeEvent : Event
michael@0 10 {
michael@0 11 /**
michael@0 12 * Indicates about errors while setting up the Call forwarding rule.
michael@0 13 */
michael@0 14 readonly attribute boolean success;
michael@0 15
michael@0 16 /**
michael@0 17 * Indicates what to do with the rule.
michael@0 18 *
michael@0 19 * One of the CALL_FORWARD_ACTION_* constants. It will be either disable (0),
michael@0 20 * enable (1), query status (2), registration (3), or erasure (4).
michael@0 21 *
michael@0 22 * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_ACTION_* values.
michael@0 23 * @see 3GPP TS 27.007 7.11 "mode".
michael@0 24 */
michael@0 25 readonly attribute unsigned short action;
michael@0 26
michael@0 27 /**
michael@0 28 * Indicates the reason the call is being forwarded.
michael@0 29 *
michael@0 30 * One of the CALL_FORWARD_REASON_* constants. It will be either
michael@0 31 * unconditional (0), mobile busy (1), no reply (2), not reachable (3),
michael@0 32 * all call forwarding (4), or all conditional call forwarding (5).
michael@0 33 *
michael@0 34 * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_* values.
michael@0 35 * @see 3GPP TS 27.007 7.11 "reason".
michael@0 36 */
michael@0 37 readonly attribute unsigned short reason;
michael@0 38
michael@0 39 /**
michael@0 40 * Phone number of forwarding address.
michael@0 41 */
michael@0 42 readonly attribute DOMString? number;
michael@0 43
michael@0 44 /**
michael@0 45 * When "no reply" is enabled or queried, this gives the time in
michael@0 46 * seconds to wait before call is forwarded.
michael@0 47 */
michael@0 48 readonly attribute unsigned short timeSeconds;
michael@0 49
michael@0 50 /**
michael@0 51 * Service for which the call forward is set up. It should be one of the
michael@0 52 * nsIDOMMozMobileConnectionInfo.ICC_SERVICE_CLASS_* values.
michael@0 53 */
michael@0 54 readonly attribute unsigned short serviceClass;
michael@0 55 };
michael@0 56
michael@0 57 dictionary CFStateChangeEventInit : EventInit
michael@0 58 {
michael@0 59 boolean success = false;
michael@0 60 unsigned short action = 0;
michael@0 61 unsigned short reason = 0;
michael@0 62 DOMString number = "";
michael@0 63 unsigned short timeSeconds = 0;
michael@0 64 unsigned short serviceClass = 0;
michael@0 65 };

mercurial