This API is available on Firefox OS for internal applications 仅。
MozMobileCFInfo
interface defines options used to retrieve or define call forwarding settings.
见
MozMobileConnection.getCallForwardingOption()
and
MozMobileConnection.setCallForwardingOption()
to see how to set and get call forwarding options.
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;
};
MozMobileCFInfo.action
只读
A number that indicates what to do with the rule.
MozMobileCFInfo.active
只读
true
) or not active (
false
).
MozMobileCFInfo.number
只读
A string that indicates the phone number of the forwarding address.
MozMobileCFInfo.reason
只读
A number that indicates the reason the call is being forwarded.
MozMobileCFInfo.serviceClass
只读
A number that represents the service for which the call forward is set up.
MozMobileCFInfo.timeSeconds
只读
A number representing the time in seconds to wait before a call is forwarded.
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
None.
Not part of any specification.
Archive
CFStateChangeEvent
DataErrorEvent
IccCardLockError
IccCardLockErrorEvent
MozCellBroadcastEvent
MozEmergencyCbModeEvent
MozIccManager
MozMobileCFInfo
MozMobileCellInfo
MozMobileConnection
MozMobileConnectionInfo
MozMobileICCInfo
MozMobileNetworkInfo
MozOtaStatusEvent
MozStkCommandEvent
USSDReceivedEvent