Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class CallPeerSecurityStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.CallPeerSecurityStatusEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CallPeerSecurityNegotiationStartedEvent, CallPeerSecurityOffEvent, CallPeerSecurityOnEvent, CallPeerSecurityTimeoutEvent

public abstract class CallPeerSecurityStatusEvent
extends EventObject

Parent class for SecurityOn and SecurityOff events.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int AUDIO_SESSION
          Constant value defining that security is enabled.
static int VIDEO_SESSION
          Constant value defining that security is disabled.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallPeerSecurityStatusEvent(Object source, int sessionType)
          Constructor required by the EventObject.
 
Method Summary
 int getSessionType()
          Returns the type of the session, either AUDIO_SESSION or VIDEO_SESSION.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUDIO_SESSION

public static final int AUDIO_SESSION
Constant value defining that security is enabled.

See Also:
Constant Field Values

VIDEO_SESSION

public static final int VIDEO_SESSION
Constant value defining that security is disabled.

See Also:
Constant Field Values
Constructor Detail

CallPeerSecurityStatusEvent

public CallPeerSecurityStatusEvent(Object source,
                                   int sessionType)
Constructor required by the EventObject.

Parameters:
source - the source object for this event.
sessionType - either AUDIO_SESSION or VIDEO_SESSION to indicate the type of the session
Method Detail

getSessionType

public int getSessionType()
Returns the type of the session, either AUDIO_SESSION or VIDEO_SESSION.

Returns:
the type of the session, either AUDIO_SESSION or VIDEO_SESSION.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.