mozilla

Revision 411119 of MozMobileCFInfo

  • Revision slug: Web/API/MozMobileCFInfo
  • Revision title: MozMobileCFInfo
  • Revision id: 411119
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

The MozMobileCFInfo interface define options used to retrieve or define call forwarding settings.

See {{domxref("MozMobileConnection.getCallForwardingOption()")}} and {{domxref("MozMobileConnection.setCallForwardingOption()")}} to see how to set and get call forwarding options.

Interface overview

interface MozMobileCFInfo
{
  const long CALL_FORWARD_ACTION_DISABLE = 0;
  const long CALL_FORWARD_ACTION_ENABLE = 1;
  const long CALL_FORWARD_ACTION_QUERY_STATUS = 2;
  const long CALL_FORWARD_ACTION_REGISTRATION = 3;
  const long CALL_FORWARD_ACTION_ERASURE = 4;

  const long CALL_FORWARD_REASON_UNCONDITIONAL = 0;
  const long CALL_FORWARD_REASON_MOBILE_BUSY = 1;
  const long CALL_FORWARD_REASON_NO_REPLY = 2;
  const long CALL_FORWARD_REASON_NOT_REACHABLE = 3;
  const long CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4;
  const long CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5;

  readonly attribute unsigned short action;
  readonly attribute bool active;
  readonly attribute DOMString number;
  readonly attribute unsigned short reason;
  readonly attribute unsigned short serviceClass;
  readonly attribute unsigned short timeSeconds;
};

Properties

{{domxref("MozMobileCFInfo.action")}} {{readonlyinline}}
A number that Indicates what to do with the rule.
{{domxref("MozMobileCFInfo.active")}} {{readonlyinline}}
A boolean that indicates the call forwarding rule status, either active (true) or not active (false).
{{domxref("MozMobileCFInfo.number")}} {{readonlyinline}}
A string that indicates the phone number of forwarding address
{{domxref("MozMobileCFInfo.reason")}} {{readonlyinline}}
A number that indicates the reason the call is being forwarded.
{{domxref("MozMobileCFInfo.serviceClass")}} {{readonlyinline}}
A number that represents the service for which the call forward is set up.
{{domxref("MozMobileCFInfo.timeSeconds")}} {{readonlyinline}}
A number representing the time in seconds to wait before a call is forwarded.

Constants

Call forward possible actions:

  • CALL_FORWARD_ACTION_DISABLE
  • CALL_FORWARD_ACTION_ENABLE
  • CALL_FORWARD_ACTION_QUERY_STATUS
  • CALL_FORWARD_ACTION_REGISTRATION
  • CALL_FORWARD_ACTION_ERASURE

Call forward possible reasons:

  • CALL_FORWARD_REASON_UNCONDITIONAL
  • CALL_FORWARD_REASON_MOBILE_BUSY
  • CALL_FORWARD_REASON_NO_REPLY
  • CALL_FORWARD_REASON_NOT_REACHABLE
  • CALL_FORWARD_REASON_ALL_CALL_FORWARDING
  • CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING

Methods

None.

Specification

Not part of any specification

See also

  • {{ domxref("MozMobileNetworkInfo") }}

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('certified') }}</p>
<p>The <code>MozMobileCFInfo</code> interface define options used to retrieve or define call forwarding settings.</p>
<p>See {{domxref("MozMobileConnection.getCallForwardingOption()")}} and {{domxref("MozMobileConnection.setCallForwardingOption()")}} to see how to set and get call forwarding options.</p>
<h2 id="Interface_overview">Interface overview</h2>
<pre>
interface MozMobileCFInfo
{
  const long CALL_FORWARD_ACTION_DISABLE = 0;
  const long CALL_FORWARD_ACTION_ENABLE = 1;
  const long CALL_FORWARD_ACTION_QUERY_STATUS = 2;
  const long CALL_FORWARD_ACTION_REGISTRATION = 3;
  const long CALL_FORWARD_ACTION_ERASURE = 4;

  const long CALL_FORWARD_REASON_UNCONDITIONAL = 0;
  const long CALL_FORWARD_REASON_MOBILE_BUSY = 1;
  const long CALL_FORWARD_REASON_NO_REPLY = 2;
  const long CALL_FORWARD_REASON_NOT_REACHABLE = 3;
  const long CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4;
  const long CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5;

  readonly attribute unsigned short action;
  readonly attribute bool active;
  readonly attribute DOMString number;
  readonly attribute unsigned short reason;
  readonly attribute unsigned short serviceClass;
  readonly attribute unsigned short timeSeconds;
};</pre>
<h2 id="Properties">Properties</h2>
<dl>
  <dt>
    {{domxref("MozMobileCFInfo.action")}} {{readonlyinline}}</dt>
  <dd>
    A number that Indicates what to do with the rule.</dd>
  <dt>
    {{domxref("MozMobileCFInfo.active")}} {{readonlyinline}}</dt>
  <dd>
    A boolean that indicates the call forwarding rule status, either active (<code>true</code>) or not active (<code>false</code>).</dd>
  <dt>
    {{domxref("MozMobileCFInfo.number")}} {{readonlyinline}}</dt>
  <dd>
    A string that indicates the phone number of forwarding address</dd>
  <dt>
    {{domxref("MozMobileCFInfo.reason")}} {{readonlyinline}}</dt>
  <dd>
    A number that indicates the reason the call is being forwarded.</dd>
  <dt>
    {{domxref("MozMobileCFInfo.serviceClass")}} {{readonlyinline}}</dt>
  <dd>
    A number that represents the service for which the call forward is set up.</dd>
  <dt>
    {{domxref("MozMobileCFInfo.timeSeconds")}} {{readonlyinline}}</dt>
  <dd>
    A number representing the time in seconds to wait before a call is forwarded.</dd>
</dl>
<h3 id="Constants">Constants</h3>
<p>Call forward possible actions:</p>
<ul>
  <li><code>CALL_FORWARD_ACTION_DISABLE</code></li>
  <li><code>CALL_FORWARD_ACTION_ENABLE</code></li>
  <li><code>CALL_FORWARD_ACTION_QUERY_STATUS</code></li>
  <li><code>CALL_FORWARD_ACTION_REGISTRATION</code></li>
  <li><code>CALL_FORWARD_ACTION_ERASURE</code></li>
</ul>
<p>Call forward possible reasons:</p>
<ul>
  <li><code>CALL_FORWARD_REASON_UNCONDITIONAL</code></li>
  <li><code>CALL_FORWARD_REASON_MOBILE_BUSY</code></li>
  <li><code>CALL_FORWARD_REASON_NO_REPLY</code></li>
  <li><code>CALL_FORWARD_REASON_NOT_REACHABLE</code></li>
  <li><code>CALL_FORWARD_REASON_ALL_CALL_FORWARDING</code></li>
  <li><code>CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING</code></li>
</ul>
<h2 id="Methods">Methods</h2>
<p>None.</p>
<h2 id="Specification" name="Specification">Specification</h2>
<p>Not part of any specification</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ domxref("MozMobileNetworkInfo") }}</li>
</ul>
Revert to this revision