Interface java.telephony.phone.PhoneHookswitch
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.telephony.phone.PhoneHookswitch

public interface PhoneHookswitch
extends Object
extends Component

Variable Index

 o OFF_HOOK
The Hookswitch is OFF_HOOK.
 o ON_HOOK
The Hookswitch is ON_HOOK.

Method Index

 o getHookSwitchState()
Returns the current state of the hookswitch.
 o setHookSwitch(int)
Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK.

Variables

 o ON_HOOK
  public final static int ON_HOOK
The Hookswitch is ON_HOOK.
 o OFF_HOOK
  public final static int OFF_HOOK
The Hookswitch is OFF_HOOK.

Methods

 o setHookSwitch
  public abstract void setHookSwitch(int hookSwitchState) throws InvalidArgumentException, PlatformException
Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK.

Parameters:
hookSwtichState - The desired state of the hook switch.
Throws: InvalidArgumentException
The provided hookswitch state is not valid.
Throws: PlatformException
A platform-specific exception occurred.
 o getHookSwitchState
  public abstract int getHookSwitchState() throws PlatformException
Returns the current state of the hookswitch.

Returns:
The current state of the hookswitch.
Throws: PlatformException
A platform-specific exception occurred.

All Packages  Class Hierarchy  This Package  Previous  Next  Index