public abstract class AbstractOperationSetMultiUserChat extends java.lang.Object implements OperationSetMultiUserChat
OperationSetMultiUserChat
in order to make it easier for implementers to provide complete solutions
while focusing on implementation-specific details.Constructor and Description |
---|
AbstractOperationSetMultiUserChat() |
Modifier and Type | Method and Description |
---|---|
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 ChatRoomInvitationListener s to notify about the
receipt of a specific ChatRoomInvitation . |
protected void |
fireInvitationRejectedEvent(ChatRoom sourceChatRoom,
java.lang.String invitee,
java.lang.String reason)
Delivers a ChatRoomInvitationRejectedEvent to all
registered ChatRoomInvitationRejectionListeners.
|
void |
fireLocalUserPresenceEvent(ChatRoom chatRoom,
java.lang.String eventType,
java.lang.String reason)
Delivers a LocalUserChatRoomPresenceChangeEvent to all
registered LocalUserChatRoomPresenceListeners.
|
void |
fireLocalUserPresenceEvent(ChatRoom chatRoom,
java.lang.String eventType,
java.lang.String reason,
java.lang.String alternateAddress)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createChatRoom, findRoom, getCurrentlyJoinedChatRooms, getCurrentlyJoinedChatRooms, getExistingChatRooms, isMultiChatSupportedByContact, isPrivateMessagingContact, rejectInvitation
public void addInvitationListener(ChatRoomInvitationListener listener)
OperationSetMultiUserChat
addInvitationListener
in interface OperationSetMultiUserChat
listener
- an invitation listener.public void addInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
OperationSetMultiUserChat
addInvitationRejectionListener
in interface OperationSetMultiUserChat
listener
- an invitation listener.public void addPresenceListener(LocalUserChatRoomPresenceListener listener)
OperationSetMultiUserChat
addPresenceListener
in interface OperationSetMultiUserChat
listener
- a local user participation listener.protected void fireInvitationReceived(ChatRoomInvitation invitation)
ChatRoomInvitationReceivedEvent
to all currently
registered ChatRoomInvitationListener
s to notify about the
receipt of a specific ChatRoomInvitation
.invitation
- the ChatRoomInvitation
which has been receivedprotected void fireInvitationRejectedEvent(ChatRoom sourceChatRoom, java.lang.String invitee, java.lang.String reason)
sourceChatRoom
- the room that invitation refers toinvitee
- the name of the invitee that rejected the invitationreason
- the reason of the rejectionpublic void fireLocalUserPresenceEvent(ChatRoom chatRoom, java.lang.String eventType, java.lang.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 fireLocalUserPresenceEvent(ChatRoom chatRoom, java.lang.String eventType, java.lang.String reason, java.lang.String alternateAddress)
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 reasonalternateAddress
- address of the new room, if old is destroyed.public void removeInvitationListener(ChatRoomInvitationListener listener)
OperationSetMultiUserChat
removeInvitationListener
in interface OperationSetMultiUserChat
listener
- the invitation listener to remove.public void removeInvitationRejectionListener(ChatRoomInvitationRejectionListener listener)
OperationSetMultiUserChat
removeInvitationRejectionListener
in interface OperationSetMultiUserChat
listener
- the invitation listener to remove.public void removePresenceListener(LocalUserChatRoomPresenceListener listener)
OperationSetMultiUserChat
removePresenceListener
in interface OperationSetMultiUserChat
listener
- a local user participation listener.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.