Your Search Results

    MozMobileCFInfo

    This article is in need of a technical review.

    この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

    « DOM Reference

    Non-standard
    This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.

    This API is available on Firefox OS for certified applications only.

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

    See MozMobileConnection.getCallForwardingOption() and 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

    MozMobileCFInfo.action Read only
    A number that indicates what to do with the rule.
    MozMobileCFInfo.active Read only
    A boolean that indicates the call forwarding rule status, either active (true) or not active (false).
    MozMobileCFInfo.number Read only
    A string that indicates the phone number of the forwarding address.
    MozMobileCFInfo.reason Read only
    A number that indicates the reason the call is being forwarded.
    MozMobileCFInfo.serviceClass Read only
    A number that represents the service for which the call forward is set up.
    MozMobileCFInfo.timeSeconds Read only
    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

    Document Tags and Contributors

    Contributors to this page: Sheppy, teoli, kscarfone, Jeremie
    最終更新者: kscarfone,