michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: */ michael@0: michael@0: [Pref="dom.mobileconnection.enabled", michael@0: Constructor(DOMString type, optional CFStateChangeEventInit eventInitDict)] michael@0: interface CFStateChangeEvent : Event michael@0: { michael@0: /** michael@0: * Indicates about errors while setting up the Call forwarding rule. michael@0: */ michael@0: readonly attribute boolean success; michael@0: michael@0: /** michael@0: * Indicates what to do with the rule. michael@0: * michael@0: * One of the CALL_FORWARD_ACTION_* constants. It will be either disable (0), michael@0: * enable (1), query status (2), registration (3), or erasure (4). michael@0: * michael@0: * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_ACTION_* values. michael@0: * @see 3GPP TS 27.007 7.11 "mode". michael@0: */ michael@0: readonly attribute unsigned short action; michael@0: michael@0: /** michael@0: * Indicates the reason the call is being forwarded. michael@0: * michael@0: * One of the CALL_FORWARD_REASON_* constants. It will be either michael@0: * unconditional (0), mobile busy (1), no reply (2), not reachable (3), michael@0: * all call forwarding (4), or all conditional call forwarding (5). michael@0: * michael@0: * @see 3GPP nsIDOMMozMobileCFInfo.CALL_FORWARD_REASON_* values. michael@0: * @see 3GPP TS 27.007 7.11 "reason". michael@0: */ michael@0: readonly attribute unsigned short reason; michael@0: michael@0: /** michael@0: * Phone number of forwarding address. michael@0: */ michael@0: readonly attribute DOMString? number; michael@0: michael@0: /** michael@0: * When "no reply" is enabled or queried, this gives the time in michael@0: * seconds to wait before call is forwarded. michael@0: */ michael@0: readonly attribute unsigned short timeSeconds; michael@0: michael@0: /** michael@0: * Service for which the call forward is set up. It should be one of the michael@0: * nsIDOMMozMobileConnectionInfo.ICC_SERVICE_CLASS_* values. michael@0: */ michael@0: readonly attribute unsigned short serviceClass; michael@0: }; michael@0: michael@0: dictionary CFStateChangeEventInit : EventInit michael@0: { michael@0: boolean success = false; michael@0: unsigned short action = 0; michael@0: unsigned short reason = 0; michael@0: DOMString number = ""; michael@0: unsigned short timeSeconds = 0; michael@0: unsigned short serviceClass = 0; michael@0: };