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