public class CallPeerChangeEvent
extends java.beans.PropertyChangeEvent
CALL_PEER_STATUS_CHANGE - indicates a change in the status of the peer.
CALL_PEER_DISPLAY_NAME_CHANGE - means that peer's displayName has changed
CALL_PEER_ADDRESS_CHANGE - means that peer's address has changed.
CALL_PEER_ADDRESS_CHANGE - means that the transport address of the peer (the one that we use to communicate with her) has changed.
CALL_PEER_IMAGE_CHANGE - peer updated photo.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALL_PEER_ADDRESS_CHANGE
An event type indicating that the corresponding event is caused by a
change of the peer's address.
|
static java.lang.String |
CALL_PEER_DISPLAY_NAME_CHANGE
An event type indicating that the corresponding event is caused by a
change of the peer's display name.
|
static java.lang.String |
CALL_PEER_IMAGE_CHANGE
An event type indicating that the corresponding event is caused by a
change of the peer's photo/picture.
|
static java.lang.String |
CALL_PEER_STATE_CHANGE
An event type indicating that the corresponding event is caused by a
change of the CallPeer's status.
|
static java.lang.String |
CALL_PEER_TRANSPORT_ADDRESS_CHANGE
An event type indicating that the corresponding event is caused by a
change of the peer's address.
|
static int |
NORMAL_CALL_CLEARING
Code indicating normal call clear.
|
Constructor and Description |
---|
CallPeerChangeEvent(CallPeer source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a CallPeerChangeEvent with the specified source, type,
oldValue and newValue.
|
CallPeerChangeEvent(CallPeer source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue,
java.lang.String reason)
Creates a CallPeerChangeEvent with the specified source, type,
oldValue and newValue.
|
CallPeerChangeEvent(CallPeer source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue,
java.lang.String reason,
int reasonCode)
Creates a CallPeerChangeEvent with the specified source, type,
oldValue and newValue.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventType()
Returns the type of this event.
|
int |
getReasonCode()
Returns a reason code for the event (may be -1).
|
java.lang.String |
getReasonString()
Returns a reason string further explaining the event (may be null).
|
CallPeer |
getSourceCallPeer()
Returns the CallPeer that this event is about.
|
java.lang.String |
toString()
Returns a String representation of this CallPeerChangeEvent.
|
public static final java.lang.String CALL_PEER_STATE_CHANGE
public static final java.lang.String CALL_PEER_DISPLAY_NAME_CHANGE
public static final java.lang.String CALL_PEER_ADDRESS_CHANGE
public static final java.lang.String CALL_PEER_TRANSPORT_ADDRESS_CHANGE
public static final java.lang.String CALL_PEER_IMAGE_CHANGE
public static final int NORMAL_CALL_CLEARING
public CallPeerChangeEvent(CallPeer source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue)
source
- the peer that produced the event.type
- the type of the event (i.e. address change, state change etc.).oldValue
- the value of the changed property before the event occurrednewValue
- current value of the changed property.public CallPeerChangeEvent(CallPeer source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue, java.lang.String reason)
source
- the peer that produced the event.type
- the type of the event (i.e. address change, state change etc.).oldValue
- the value of the changed property before the event occurrednewValue
- current value of the changed property.reason
- a string containing a human readable explanation for the
reason that triggerred this event (may be null).public CallPeerChangeEvent(CallPeer source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue, java.lang.String reason, int reasonCode)
source
- the peer that produced the event.type
- the type of the event (i.e. address change, state change etc.).oldValue
- the value of the changed property before the event occurrednewValue
- current value of the changed property.reason
- a string containing a human readable explanation for the
reason that triggered this event (may be null).reasonCode
- a code for the reason that triggered this
event (may be -1 as not specified).public java.lang.String getEventType()
public java.lang.String toString()
toString
in class java.beans.PropertyChangeEvent
public CallPeer getSourceCallPeer()
public java.lang.String getReasonString()
public int getReasonCode()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.