|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.java.sip.communicator.service.protocol.event.AdHocChatRoomParticipantPresenceChangeEvent
public class AdHocChatRoomParticipantPresenceChangeEvent
Dispatched to notify interested parties that a change in the presence of an ad-hoc chat room participant has occurred. Changes may include the participant being join, left...
| Field Summary | |
|---|---|
static String |
CONTACT_JOINED
Indicates that this event was triggered as a result of the participant joining the source ad-hoc chat room. |
static String |
CONTACT_LEFT
Indicates that this event was triggered as a result of the participant leaving the source ad-hoc chat room. |
static String |
CONTACT_QUIT
Indicates that this event was triggered as a result of the participant being disconnected from the server brutally, or due to a ping timeout. |
static String |
REASON_USER_LIST
The well-known reason for a AdHocChatRoomParticipantPresenceChangeEvent to occur as part
of an operation which lists all users in an AdHocChatRoom. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
AdHocChatRoomParticipantPresenceChangeEvent(AdHocChatRoom sourceAdHocRoom,
Contact sourceParticipant,
String eventType,
String reason)
Creates an AdHocChatRoomParticipantPresenceChangeEvent representing that a change in the presence of an Contact has occurred. |
|
| Method Summary | |
|---|---|
AdHocChatRoom |
getAdHocChatRoom()
Returns the ad-hoc chat room that produced this event. |
String |
getEventType()
Returns the type of this event which could be one of the MEMBER_XXX member field values. |
Contact |
getParticipant()
Returns the participant that this event is about. |
String |
getReason()
A reason String indicating a human readable reason for this event. |
boolean |
isReasonUserList()
Gets the indicator which determines whether this event has occurred with the well-known reason of listing all users in a ChatRoom. |
String |
toString()
Returns a String representation of this event. |
| 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 |
|---|
public static final String CONTACT_JOINED
public static final String CONTACT_LEFT
public static final String CONTACT_QUIT
public static final String REASON_USER_LIST
AdHocChatRoomParticipantPresenceChangeEvent to occur as part
of an operation which lists all users in an AdHocChatRoom.
| Constructor Detail |
|---|
public AdHocChatRoomParticipantPresenceChangeEvent(AdHocChatRoom sourceAdHocRoom,
Contact sourceParticipant,
String eventType,
String reason)
sourceAdHocRoom - the AdHocChatRoom that produced this
eventsourceParticipant - the Contact that this event is abouteventType - the event type; one of the CONTACT_XXX constantsreason - the reason explaining why this event might have occurred| Method Detail |
|---|
public AdHocChatRoom getAdHocChatRoom()
public Contact getParticipant()
public String getReason()
public boolean isReasonUserList()
ChatRoom.
ChatRoom i.e.
getReason() returns a value of REASON_USER_LIST;
otherwise, falsepublic String getEventType()
public String toString()
toString in class EventObject
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||