dom/webidl/CFStateChangeEvent.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/CFStateChangeEvent.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 + */
     1.9 +
    1.10 +[Pref="dom.mobileconnection.enabled",
    1.11 + Constructor(DOMString type, optional CFStateChangeEventInit eventInitDict)]
    1.12 +interface CFStateChangeEvent : Event
    1.13 +{
    1.14 +  /**
    1.15 +   * Indicates about errors while setting up the Call forwarding rule.
    1.16 +   */
    1.17 +  readonly attribute boolean success;
    1.18 +
    1.19 +  /**
    1.20 +   * Indicates what to do with the rule.
    1.21 +   *
    1.22 +   * One of the CALL_FORWARD_ACTION_* constants. It will be either disable (0),
    1.23 +   * enable (1), query status (2), registration (3), or erasure (4).
    1.24 +   *
    1.25 +   * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_ACTION_* values.
    1.26 +   * @see 3GPP TS 27.007 7.11 "mode".
    1.27 +   */
    1.28 +  readonly attribute unsigned short action;
    1.29 +
    1.30 +  /**
    1.31 +   * Indicates the reason the call is being forwarded.
    1.32 +   *
    1.33 +   * One of the CALL_FORWARD_REASON_* constants. It will be either
    1.34 +   * unconditional (0), mobile busy (1), no reply (2), not reachable (3),
    1.35 +   * all call forwarding (4), or all conditional call forwarding (5).
    1.36 +   *
    1.37 +   * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_* values.
    1.38 +   * @see 3GPP TS 27.007 7.11 "reason".
    1.39 +   */
    1.40 +  readonly attribute unsigned short reason;
    1.41 +
    1.42 +  /**
    1.43 +   * Phone number of forwarding address.
    1.44 +   */
    1.45 +  readonly attribute DOMString? number;
    1.46 +
    1.47 +  /**
    1.48 +   * When "no reply" is enabled or queried, this gives the time in
    1.49 +   * seconds to wait before call is forwarded.
    1.50 +   */
    1.51 +  readonly attribute unsigned short timeSeconds;
    1.52 +
    1.53 +  /**
    1.54 +   * Service for which the call forward is set up. It should be one of the
    1.55 +   * nsIDOMMozMobileConnectionInfo.ICC_SERVICE_CLASS_* values.
    1.56 +   */
    1.57 +  readonly attribute unsigned short serviceClass;
    1.58 +};
    1.59 +
    1.60 +dictionary CFStateChangeEventInit : EventInit
    1.61 +{
    1.62 +  boolean success = false;
    1.63 +  unsigned short action = 0;
    1.64 +  unsigned short reason = 0;
    1.65 +  DOMString number = "";
    1.66 +  unsigned short timeSeconds = 0;
    1.67 +  unsigned short serviceClass = 0;
    1.68 +};

mercurial