|
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.Objectnet.java.sip.communicator.service.protocol.AbstractOperationSetMultiUserChat
public abstract class AbstractOperationSetMultiUserChat
Represents a default implementation of OperationSetMultiUserChat
in order to make it easier for implementers to provide complete solutions
while focusing on implementation-specific details.
| Constructor Summary | |
|---|---|
AbstractOperationSetMultiUserChat()
|
|
| Method Summary | |
|---|---|
void |
addInvitationListener(ChatRoomInvitationListener listener)
Adds a listener to invitation notifications. |
void |
addInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
Adds a listener to invitation notifications. |
void |
addPresenceListener(LocalUserChatRoomPresenceListener listener)
Adds a listener that will be notified of changes in our participation in a chat room such as us being kicked, joined, left. |
protected void |
fireInvitationReceived(ChatRoomInvitation invitation)
Fires a new ChatRoomInvitationReceivedEvent to all currently
registered ChatRoomInvitationListeners to notify about the
receipt of a specific ChatRoomInvitation. |
protected void |
fireInvitationRejectedEvent(ChatRoom sourceChatRoom,
String invitee,
String reason)
Delivers a ChatRoomInvitationRejectedEvent to all registered ChatRoomInvitationRejectionListeners. |
void |
fireLocalUserPresenceEvent(ChatRoom chatRoom,
String eventType,
String reason)
Delivers a LocalUserChatRoomPresenceChangeEvent to all registered LocalUserChatRoomPresenceListeners. |
void |
removeInvitationListener(ChatRoomInvitationListener listener)
Removes listener from the list of invitation listeners registered to receive invitation events. |
void |
removeInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
Removes the given listener from the list of invitation listeners registered to receive events every time an invitation has been rejected. |
void |
removePresenceListener(LocalUserChatRoomPresenceListener listener)
Removes a listener that was being notified of changes in our participation in a room such as us being kicked, joined, left. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.OperationSetMultiUserChat |
|---|
createChatRoom, findRoom, getCurrentlyJoinedChatRooms, getCurrentlyJoinedChatRooms, getExistingChatRooms, isMultiChatSupportedByContact, rejectInvitation |
| Constructor Detail |
|---|
public AbstractOperationSetMultiUserChat()
| Method Detail |
|---|
public void addInvitationListener(ChatRoomInvitationListener listener)
OperationSetMultiUserChat
addInvitationListener in interface OperationSetMultiUserChatlistener - an invitation listener.public void addInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
OperationSetMultiUserChat
addInvitationRejectionListener in interface OperationSetMultiUserChatlistener - an invitation listener.public void addPresenceListener(LocalUserChatRoomPresenceListener listener)
OperationSetMultiUserChat
addPresenceListener in interface OperationSetMultiUserChatlistener - a local user participation listener.protected void fireInvitationReceived(ChatRoomInvitation invitation)
ChatRoomInvitationReceivedEvent to all currently
registered ChatRoomInvitationListeners to notify about the
receipt of a specific ChatRoomInvitation.
invitation - the ChatRoomInvitation which has been received
protected void fireInvitationRejectedEvent(ChatRoom sourceChatRoom,
String invitee,
String reason)
sourceChatRoom - the room that invitation refers toinvitee - the name of the invitee that rejected the invitationreason - the reason of the rejection
public void fireLocalUserPresenceEvent(ChatRoom chatRoom,
String eventType,
String reason)
chatRoom - the ChatRoom which has been joined, left, etc.eventType - the type of this event; one of LOCAL_USER_JOINED,
LOCAL_USER_LEFT, etc.reason - the reasonpublic void removeInvitationListener(ChatRoomInvitationListener listener)
OperationSetMultiUserChat
removeInvitationListener in interface OperationSetMultiUserChatlistener - the invitation listener to remove.public void removeInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
OperationSetMultiUserChat
removeInvitationRejectionListener in interface OperationSetMultiUserChatlistener - the invitation listener to remove.public void removePresenceListener(LocalUserChatRoomPresenceListener listener)
OperationSetMultiUserChat
removePresenceListener in interface OperationSetMultiUserChatlistener - a local user participation listener.
|
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 | |||||||||