public class AdHocChatRoomList
extends java.lang.Object
Constructor and Description |
---|
AdHocChatRoomList() |
Modifier and Type | Method and Description |
---|---|
void |
addAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoomWrapper)
Adds a chat room to this list.
|
void |
addChatProvider(ProtocolProviderService pps)
Adds a chat server and all its existing ad-hoc chat rooms.
|
AdHocChatRoomWrapper |
findChatRoomWrapperFromAdHocChatRoom(AdHocChatRoom adHocChatRoom)
Returns the AdHocChatRoomWrapper that correspond to the given
AdHocChatRoom.
|
AdHocChatRoomProviderWrapper |
findServerWrapperFromProvider(ProtocolProviderService protocolProvider)
Returns the AdHocChatRoomProviderWrapper that correspond to the
given ProtocolProviderService.
|
void |
loadList()
Initializes the list of ad-hoc chat rooms.
|
void |
removeChatProvider(ProtocolProviderService pps)
Removes the corresponding server and all related ad-hoc chat rooms from
this list.
|
void |
removeChatRoom(AdHocChatRoomWrapper adHocChatRoomWrapper)
Removes the given AdHocChatRoom from the list of all ad-hoc
chat rooms.
|
public void loadList()
public void addChatProvider(ProtocolProviderService pps)
pps
- the ProtocolProviderService corresponding to the chat
serverpublic void removeChatProvider(ProtocolProviderService pps)
pps
- the ProtocolProviderService corresponding to the
server to removepublic void addAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoomWrapper)
adHocChatRoomWrapper
- the AdHocChatRoom to addpublic void removeChatRoom(AdHocChatRoomWrapper adHocChatRoomWrapper)
adHocChatRoomWrapper
- the AdHocChatRoomWrapper to removepublic AdHocChatRoomWrapper findChatRoomWrapperFromAdHocChatRoom(AdHocChatRoom adHocChatRoom)
adHocChatRoom
- the ChatRoom that we're looking forpublic AdHocChatRoomProviderWrapper findServerWrapperFromProvider(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol provider that we're looking for
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.