javax.telephony.phone.events
Interface PhoneEv

All Superinterfaces:
Ev
All Known Subinterfaces:
ButtonInfoEv, ButtonPressEv, DisplayUpdateEv, HookswitchStateEv, LampModeEv, MicrophoneGainEv, PhoneTermEv, RingerPatternEv, RingerVolumeEv, SpeakerVolumeEv

public interface PhoneEv
extends Ev

The PhoneEv is the base event for all events in the Phone package. Each event in this package must extend this interface. This interface is not meant to be a public interface, it is just a building block for other event interfaces.

Avaya is providing its backward-compatible Observer model implementation in this release; in the specification this interface is deprecated as of JTAPI 1.4, replaced by PhoneTerminalEvent

The PhoneEv interface contains getPhoneCause(), which returns the reason for the event.


Field Summary
static int CAUSE_NORMAL
          Cause code indicating normal operation
static int CAUSE_UNKNOWN
          Cause code indicating the cause was unknown
 
Fields inherited from interface javax.telephony.events.Ev
CAUSE_CALL_CANCELLED, CAUSE_DEST_NOT_OBTAINABLE, CAUSE_INCOMPATIBLE_DESTINATION, CAUSE_LOCKOUT, CAUSE_NETWORK_CONGESTION, CAUSE_NETWORK_NOT_OBTAINABLE, CAUSE_NEW_CALL, CAUSE_RESOURCES_NOT_AVAILABLE, CAUSE_SNAPSHOT, META_CALL_ADDITIONAL_PARTY, META_CALL_ENDING, META_CALL_MERGING, META_CALL_PROGRESS, META_CALL_REMOVING_PARTY, META_CALL_STARTING, META_CALL_TRANSFERRING, META_SNAPSHOT, META_UNKNOWN
 
Method Summary
 int getPhoneCause()
          Returns the phone and core causes associated with this event.
 
Methods inherited from interface javax.telephony.events.Ev
getCause, getID, getMetaCode, getObserved, isNewMetaEvent
 

Field Detail

CAUSE_NORMAL

public static final int CAUSE_NORMAL
Cause code indicating normal operation

See Also:
Constant Field Values

CAUSE_UNKNOWN

public static final int CAUSE_UNKNOWN
Cause code indicating the cause was unknown

See Also:
Constant Field Values
Method Detail

getPhoneCause

public int getPhoneCause()
Returns the phone and core causes associated with this event. Every event has a cause. The various cause values are defined as public static final variablies in this interface, with the exception of CAUSE_NORMAL and CAUSE_UNKNOWN, which are defined in the core.

Returns:
The cause of the event.


Copyright © 2005 Avaya All Rights Reserved.