This API is available on Firefox OS for internal 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.