|
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.impl.gui.main.chat.conference.ConferenceChatManager
public class ConferenceChatManager
The ConferenceChatManager is the one that manages both chat room and ad-hoc chat rooms invitations.
| Constructor Summary | |
|---|---|
ConferenceChatManager()
Creates an instance of ConferenceChatManager. |
|
| Method Summary | |
|---|---|
void |
acceptInvitation(AdHocChatRoomInvitation invitation,
OperationSetAdHocMultiUserChat multiUserChatOpSet)
Called to accept an incoming invitation. |
void |
acceptInvitation(ChatRoomInvitation invitation)
Called to accept an incoming invitation. |
void |
addAdHocChatRoomListChangeListener(AdHocChatRoomListChangeListener l)
Adds the given AdHocChatRoomListChangeListener that will listen for all changes of the chat room list data model. |
void |
addChatRoomListChangeListener(ChatRoomListChangeListener l)
Adds the given ChatRoomListChangeListener that will listen for all changes of the chat room list data model. |
void |
addHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper,
HistoryWindow historyWindow)
Adds a history window for a given chat room in the table of opened history windows. |
boolean |
containsHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
Checks if there's an open history window for the given chat room. |
AdHocChatRoomWrapper |
createAdHocChatRoom(ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
Creates an ad-hoc chat room, by specifying the ad-hoc chat room name, the parent protocol provider and eventually, the contacts invited to participate in this ad-hoc chat room. |
ChatRoomWrapper |
createChatRoom(ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
Creates a chat room, by specifying the chat room name, the parent protocol provider and eventually, the contacts invited to participate in this chat room. |
ChatRoomWrapper |
createChatRoom(String roomName,
ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
Creates a chat room, by specifying the chat room name, the parent protocol provider and eventually, the contacts invited to participate in this chat room. |
ChatRoomWrapper |
createChatRoom(String roomName,
ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason,
boolean join,
boolean persistent)
Creates a chat room, by specifying the chat room name, the parent protocol provider and eventually, the contacts invited to participate in this chat room. |
AdHocChatRoomList |
getAdHocChatRoomList()
Returns all chat room providers currently contained in the ad-hoc chat room list. |
ChatRoomList |
getChatRoomList()
Returns all chat room providers currently contained in the chat room list. |
List<String> |
getExistingChatRooms(ChatRoomProviderWrapper chatRoomProvider)
Returns existing chat rooms for the given chatRoomProvider. |
HistoryWindow |
getHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
Returns the history window for the given chat room. |
void |
invitationReceived(AdHocChatRoomInvitationReceivedEvent evt)
Indicates that an invitation has been received and opens the invitation dialog to notify the user. |
void |
invitationReceived(ChatRoomInvitationReceivedEvent evt)
Handles ChatRoomInvitationReceivedEvent-s. |
void |
invitationRejected(AdHocChatRoomInvitationRejectedEvent evt)
Called when an invitee rejects an invitation previously sent by us. |
void |
invitationRejected(ChatRoomInvitationRejectedEvent evt)
Called when an invitee rejects an invitation previously sent by us. |
(package private) static boolean |
isPrivate(ChatRoom chatRoom)
Determines whether a specific ChatRoom is private i.e. |
void |
joinChatRoom(AdHocChatRoom chatRoom)
Joins the given chat room and manages all the exceptions that could occur during the join process. |
void |
joinChatRoom(AdHocChatRoomWrapper chatRoomWrapper)
Joins the given ad-hoc chat room |
void |
joinChatRoom(ChatRoom chatRoom)
Joins the given chat room and manages all the exceptions that could occur during the join process. |
void |
joinChatRoom(ChatRoom chatRoom,
String nickname,
byte[] password)
Joins the given chat room and manages all the exceptions that could occur during the join process. |
void |
joinChatRoom(ChatRoomWrapper chatRoomWrapper)
Join chat room. |
void |
joinChatRoom(ChatRoomWrapper chatRoomWrapper,
String nickName,
byte[] password)
Joins the given chat room with the given password and manages all the exceptions that could occur during the join process. |
void |
joinChatRoom(String chatRoomName,
ChatRoomProviderWrapper chatRoomProvider)
Joins the room with the given name though the given chat room provider. |
void |
leaveChatRoom(AdHocChatRoomWrapper chatRoomWrapper)
Leaves the given ChatRoom. |
void |
leaveChatRoom(ChatRoomWrapper chatRoomWrapper)
Leaves the given ChatRoom. |
void |
localUserAdHocPresenceChanged(LocalUserAdHocChatRoomPresenceChangeEvent evt)
Implements the LocalUserAdHocChatRoomPresenceListener.localUserPresenceChanged method |
void |
localUserPresenceChanged(LocalUserChatRoomPresenceChangeEvent evt)
Implements the LocalUserChatRoomPresenceListener.localUserPresenceChanged method. |
void |
messageDelivered(AdHocChatRoomMessageDeliveredEvent evt)
Implements the AdHocChatRoomMessageListener.messageDelivered method. |
void |
messageDelivered(ChatRoomMessageDeliveredEvent evt)
Implements the ChatRoomMessageListener.messageDelivered method. |
void |
messageDeliveryFailed(AdHocChatRoomMessageDeliveryFailedEvent evt)
Implements AdHocChatRoomMessageListener.messageDeliveryFailed method. |
void |
messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
Implements the ChatRoomMessageListener.messageDeliveryFailed method. |
void |
messageReceived(AdHocChatRoomMessageReceivedEvent evt)
Implements the AdHocChatRoomMessageListener.messageReceived method. |
void |
messageReceived(ChatRoomMessageReceivedEvent evt)
Implements the ChatRoomMessageListener.messageReceived method. |
void |
rejectInvitation(OperationSetAdHocMultiUserChat multiUserChatAdHocOpSet,
AdHocChatRoomInvitation invitation,
String reason)
Rejects the given invitation with the specified reason. |
void |
rejectInvitation(OperationSetMultiUserChat multiUserChatOpSet,
ChatRoomInvitation invitation,
String reason)
Rejects the given invitation with the specified reason. |
void |
removeAdHocChatRoomListChangeListener(AdHocChatRoomListChangeListener l)
Removes the given AdHocChatRoomListChangeListener. |
void |
removeChatRoom(ChatRoomWrapper chatRoomWrapper)
Removes the given chat room from the UI. |
void |
removeChatRoomListChangeListener(ChatRoomListChangeListener l)
Removes the given ChatRoomListChangeListener. |
void |
removeHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
Removes the history window for the given chat room. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Handles ServiceEvents triggered by adding or removing a ProtocolProviderService. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConferenceChatManager()
| Method Detail |
|---|
public ChatRoomList getChatRoomList()
public AdHocChatRoomList getAdHocChatRoomList()
public void invitationReceived(ChatRoomInvitationReceivedEvent evt)
invitationReceived in interface ChatRoomInvitationListenerevt - the ChatRoomInvitationReceivedEvent that contains the
newly received invitation and its source provider.public void invitationRejected(ChatRoomInvitationRejectedEvent evt)
ChatRoomInvitationRejectionListener
invitationRejected in interface ChatRoomInvitationRejectionListenerevt - the instance of the ChatRoomInvitationRejectedEvent
containing the rejected chat room invitation as well as the source
provider where this happened.public void messageDelivered(ChatRoomMessageDeliveredEvent evt)
messageDelivered in interface ChatRoomMessageListenerevt - the ChatRoomMessageDeliveredEvent that notified us
that the message was delivered to its destinationpublic void messageReceived(ChatRoomMessageReceivedEvent evt)
messageReceived in interface ChatRoomMessageListenerevt - the ChatRoomMessageReceivedEvent that notified us
that a message has been receivedstatic boolean isPrivate(ChatRoom chatRoom)
ChatRoom is private i.e.
represents a one-to-one conversation which is not a channel. Since the
interface ChatRoom does not expose the private property, an
heuristic is used as a workaround: (1) a system ChatRoom is
obviously not private and (2) a ChatRoom is private if it
has only one ChatRoomMember who is not the local user.
chatRoom - the ChatRoom to be determined as private or not
ChatRoom is private;
otherwise, falsepublic void messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
messageDeliveryFailed in interface ChatRoomMessageListenerevt - the ChatRoomMessageDeliveryFailedEvent that notified
us of a delivery failurepublic void localUserAdHocPresenceChanged(LocalUserAdHocChatRoomPresenceChangeEvent evt)
localUserAdHocPresenceChanged in interface LocalUserAdHocChatRoomPresenceListenerevt - the LocalUserAdHocChatRoomPresenceChangeEvent that
notified us of a presence changepublic void localUserPresenceChanged(LocalUserChatRoomPresenceChangeEvent evt)
localUserPresenceChanged in interface LocalUserChatRoomPresenceListenerevt - the LocalUserChatRoomPresenceChangeEvent that
notified uspublic void acceptInvitation(ChatRoomInvitation invitation)
invitation - the invitation to accept.
public void acceptInvitation(AdHocChatRoomInvitation invitation,
OperationSetAdHocMultiUserChat multiUserChatOpSet)
throws OperationFailedException
invitation - the invitation to acceptmultiUserChatOpSet - the operation set for chat conferencing
OperationFailedException - if the accept fails
public void rejectInvitation(OperationSetMultiUserChat multiUserChatOpSet,
ChatRoomInvitation invitation,
String reason)
multiUserChatOpSet - the operation set to use for rejecting the
invitationinvitation - the invitation to rejectreason - the reason for the rejection
public void rejectInvitation(OperationSetAdHocMultiUserChat multiUserChatAdHocOpSet,
AdHocChatRoomInvitation invitation,
String reason)
multiUserChatAdHocOpSet - the operation set to use for rejecting the
invitationinvitation - the invitation to rejectreason - the reason for the rejection
public void joinChatRoom(ChatRoomWrapper chatRoomWrapper,
String nickName,
byte[] password)
chatRoomWrapper - the chat room to join.nickName - the nickname we choose for the given chat room.password - the password.
public ChatRoomWrapper createChatRoom(ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
protocolProvider - the parent protocol provider.contacts - the contacts invited when creating the chat room.reason -
public ChatRoomWrapper createChatRoom(String roomName,
ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
roomName - the name of the roomprotocolProvider - the parent protocol provider.contacts - the contacts invited when creating the chat room.reason -
public ChatRoomWrapper createChatRoom(String roomName,
ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason,
boolean join,
boolean persistent)
roomName - the name of the roomprotocolProvider - the parent protocol provider.contacts - the contacts invited when creating the chat room.reason - join - whether we should join the room after creating it.persistent - whether the newly created room will be persistent.
public AdHocChatRoomWrapper createAdHocChatRoom(ProtocolProviderService protocolProvider,
Collection<String> contacts,
String reason)
protocolProvider - the parent protocol provider.contacts - the contacts invited when creating the chat room.reason - the reason for this invitation
public void joinChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - public void joinChatRoom(AdHocChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - public void removeChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the chat room to remove.public void joinChatRoom(ChatRoom chatRoom)
chatRoom - the chat room to joinpublic void joinChatRoom(AdHocChatRoom chatRoom)
chatRoom - the chat room to join
public void joinChatRoom(ChatRoom chatRoom,
String nickname,
byte[] password)
chatRoom - the chat room to joinnickname - the nickname we're using to joinpassword - the password we're using to join
public void joinChatRoom(String chatRoomName,
ChatRoomProviderWrapper chatRoomProvider)
chatRoomName - the name of the room to join.chatRoomProvider - the chat room provider to join through.public void leaveChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the ChatRoom to leave.public void leaveChatRoom(AdHocChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the ChatRoom to leave.public List<String> getExistingChatRooms(ChatRoomProviderWrapper chatRoomProvider)
chatRoomProvider - the ChatRoomProviderWrapper, which
chat rooms we're looking for
public boolean containsHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the chat room wrapper to check for
public HistoryWindow getHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the chat room wrapper to search for
public void addHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper,
HistoryWindow historyWindow)
chatRoomWrapper - the chat room wrapper to addhistoryWindow - the history window to addpublic void removeHistoryWindowForChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the chat room wrapper to remove the history windowpublic void addChatRoomListChangeListener(ChatRoomListChangeListener l)
l - the listener to add.public void removeChatRoomListChangeListener(ChatRoomListChangeListener l)
l - the listener to remove.public void addAdHocChatRoomListChangeListener(AdHocChatRoomListChangeListener l)
l - the listener to add.public void removeAdHocChatRoomListChangeListener(AdHocChatRoomListChangeListener l)
l - the listener to remove.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - The event to handle.public void invitationReceived(AdHocChatRoomInvitationReceivedEvent evt)
invitationReceived in interface AdHocChatRoomInvitationListenerevt - the AdHocChatRoomInvitationReceivedEvent that
notified uspublic void messageDelivered(AdHocChatRoomMessageDeliveredEvent evt)
messageDelivered in interface AdHocChatRoomMessageListenerevt - the AdHocChatRoomMessageDeliveredEvent that notified
uspublic void messageDeliveryFailed(AdHocChatRoomMessageDeliveryFailedEvent evt)
messageDeliveryFailed in interface AdHocChatRoomMessageListenerevt - the AdHocChatRoomMessageDeliveryFailedEvent that
notified uspublic void messageReceived(AdHocChatRoomMessageReceivedEvent evt)
messageReceived in interface AdHocChatRoomMessageListenerevt - the AdHocChatRoomMessageReceivedEvent that notified
uspublic void invitationRejected(AdHocChatRoomInvitationRejectedEvent evt)
AdHocChatRoomInvitationRejectionListener
invitationRejected in interface AdHocChatRoomInvitationRejectionListenerevt - the instance of the AdHocChatRoomInvitationRejectedEvent
containing the rejected ad-hoc chat room invitation as well as the source
provider where this happened.
|
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 | |||||||||