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

Interface java.telephony.phone.PhoneLamp

public interface PhoneLamp
extends Object
extends Component

Variable Index

 o LAMPMODE_BROKENFLUTTER
The lamp mode is BROKENFLUTTER, which is the superposition of flash and flutter.
 o LAMPMODE_FLASH
The lamp mode is FLASH, which means slow on and off.
 o LAMPMODE_FLUTTER
The lamp mode is FLUUTER, which means fast on and off.
 o LAMPMODE_OFF
The lamp mode is OFF.
 o LAMPMODE_STEADY
The lamp is STEADY, which means continuously lit.
 o LAMPMODE_WINK
The lamp mode is WINK.

Method Index

 o getAssociatedPhoneButton()
Returns the button associated with the lamp.
 o getMode()
Returns the current lamp mode.
 o getSupportedModes()
Returns an array of supported lamp modes.
 o setMode(int)
Sets the current lamp mode to a mode supported by the lamp and returns by getSupportedModes().

Variables

 o LAMPMODE_OFF
  public final static int LAMPMODE_OFF
The lamp mode is OFF.
 o LAMPMODE_FLASH
  public final static int LAMPMODE_FLASH
The lamp mode is FLASH, which means slow on and off.
 o LAMPMODE_STEADY
  public final static int LAMPMODE_STEADY
The lamp is STEADY, which means continuously lit.
 o LAMPMODE_FLUTTER
  public final static int LAMPMODE_FLUTTER
The lamp mode is FLUUTER, which means fast on and off.
 o LAMPMODE_BROKENFLUTTER
  public final static int LAMPMODE_BROKENFLUTTER
The lamp mode is BROKENFLUTTER, which is the superposition of flash and flutter.
 o LAMPMODE_WINK
  public final static int LAMPMODE_WINK
The lamp mode is WINK.

Methods

 o getSupportedModes
  public abstract int[] getSupportedModes() throws PlatformException
Returns an array of supported lamp modes.

Returns:
An array of supported lamp modes.
Throws: PlatformException
A platform-specific exception occurred.
 o setMode
  public abstract void setMode(int mode) throws InvalidArgumentException, PlatformException
Sets the current lamp mode to a mode supported by the lamp and returns by getSupportedModes().

Parameters:
mode - The desired lamp mode.
Throws: InvalidArgumentException
The provided lamp mode is not valid.
Throws: PlatformException
A platform-specific exception occurred.
 o getMode
  public abstract int getMode() throws PlatformException
Returns the current lamp mode.

Returns:
The current lamp mode.
Throws: PlatformException
A platform-specific exception occurred.
 o getAssociatedPhoneButton
  public abstract PhoneButton getAssociatedPhoneButton() throws PlatformException
Returns the button associated with the lamp.

Returns:
The button associated with the lamp.
Throws: PlatformException
A platform-specific exception occurred.

All Packages  Class Hierarchy  This Package  Previous  Next  Index