public class CallPeerEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
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
|
CallPeerEvent(CallPeer sourceCallPeer,
Call sourceCall,
int eventID,
boolean delayed)
Creates a call peer event instance indicating that an event with
id eventID has happened to sourceCallPeer in
sourceCall
|
Modifier and Type | Method and Description |
---|---|
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).
|
boolean |
isDelayed()
Checks whether the adding/removing of the peer should be delayed or not.
|
java.lang.String |
toString()
Returns a String representation of this CallPeerEvent.
|
public static final int CALL_PEER_ADDED
public static final int CALL_PEER_REMOVED
public CallPeerEvent(CallPeer sourceCallPeer, Call sourceCall, int eventID)
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.public CallPeerEvent(CallPeer sourceCallPeer, Call sourceCall, int eventID, boolean delayed)
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.delayed
- initial value for delayed property. If the value is
true adding/removing peer from GUI will be delayed.public boolean isDelayed()
public int getEventID()
public Call getSourceCall()
public CallPeer getSourceCallPeer()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.