Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.CallPeerEvent
All Implemented Interfaces:
Serializable

public class CallPeerEvent
extends EventObject

Author:
Emil Ivov
See Also:
Serialized Form

Field Summary
static int CALL_PEER_ADDED
          An event id value indicating that this event is about the fact that the source call peer has joined the source call.
static int CALL_PEER_REMOVED
          An event id value indicating that this event is about the fact that the source call peer has left the source call.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CallPeerEvent(CallPeer sourceCallPeer, Call sourceCall, int eventID)
          Creates a call peer event instance indicating that an event with id eventID has happened to sourceCallPeer in sourceCall
 
Method Summary
 int getEventID()
          Returns one of the CALL_PEER_XXX member ints indicating the type of this event.
 Call getSourceCall()
          Returns the call that the source call peer is associated with.
 CallPeer getSourceCallPeer()
          Returns the source call peer (the one that this event is about).
 String toString()
          Returns a String representation of this CallPeerEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CALL_PEER_ADDED

public static final int CALL_PEER_ADDED
An event id value indicating that this event is about the fact that the source call peer has joined the source call.

See Also:
Constant Field Values

CALL_PEER_REMOVED

public static final int CALL_PEER_REMOVED
An event id value indicating that this event is about the fact that the source call peer has left the source call.

See Also:
Constant Field Values
Constructor Detail

CallPeerEvent

public CallPeerEvent(CallPeer sourceCallPeer,
                     Call sourceCall,
                     int eventID)
Creates a call peer event instance indicating that an event with id eventID has happened to sourceCallPeer in sourceCall

Parameters:
sourceCallPeer - the call peer that this event is about.
sourceCall - the call that the source call peer is associated with.
eventID - one of the CALL_PEER_XXX member ints indicating the type of this event.
Method Detail

getEventID

public int getEventID()
Returns one of the CALL_PEER_XXX member ints indicating the type of this event.

Returns:
one of the CALL_PEER_XXX member ints indicating the type of this event.

getSourceCall

public Call getSourceCall()
Returns the call that the source call peer is associated with.

Returns:
a reference to the Call that the source call peer is associated with.

getSourceCallPeer

public CallPeer getSourceCallPeer()
Returns the source call peer (the one that this event is about).

Returns:
a reference to the source CallPeer instance.

toString

public String toString()
Returns a String representation of this CallPeerEvent.

Overrides:
toString in class EventObject
Returns:
a String representation of this CallPeerEvent.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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