dom/webidl/CFStateChangeEvent.webidl

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

mercurial