|
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.chatroomslist.ChatRoomList
public class ChatRoomList
The ChatRoomsList is the list containing all chat rooms.
| Nested Class Summary | |
|---|---|
static interface |
ChatRoomList.ChatRoomProviderWrapperListener
Listener which registers for provider add/remove changes. |
| Constructor Summary | |
|---|---|
ChatRoomList()
|
|
| Method Summary | |
|---|---|
void |
addChatProvider(ProtocolProviderService pps)
Adds a chat server and all its existing chat rooms. |
void |
addChatRoom(ChatRoomWrapper chatRoomWrapper)
Adds a chat room to this list. |
void |
addChatRoomProviderWrapperListener(ChatRoomList.ChatRoomProviderWrapperListener listener)
Adds a ChatRoomProviderWrapperListener to the listener list. |
ChatRoomWrapper |
findChatRoomWrapperFromChatRoom(ChatRoom chatRoom)
Returns the ChatRoomWrapper that correspond to the given ChatRoom. |
ChatRoomProviderWrapper |
findServerWrapperFromProvider(ProtocolProviderService protocolProvider)
Returns the ChatRoomProviderWrapper that correspond to the given ProtocolProviderService. |
Iterator<ChatRoomProviderWrapper> |
getChatRoomProviders()
Returns an iterator to the list of chat room providers. |
void |
loadList()
Initializes the list of chat rooms. |
void |
removeChatProvider(ProtocolProviderService pps)
Removes the corresponding server and all related chat rooms from this list. |
void |
removeChatRoom(ChatRoomWrapper chatRoomWrapper)
Removes the given ChatRoom from the list of all chat rooms. |
void |
removeChatRoomProviderWrapperListener(ChatRoomList.ChatRoomProviderWrapperListener listener)
Removes a ChatRoomProviderWrapperListener from the listener list. |
void |
synchronizeOpSetWithLocalContactList(ProtocolProviderService protocolProvider,
OperationSetMultiUserChat opSet)
Goes through the locally stored chat rooms list and for each ChatRoomWrapper tries to find the corresponding server stored
ChatRoom in the specified operation set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatRoomList()
| Method Detail |
|---|
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 addChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the ChatRoom to addpublic void removeChatRoom(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper - the ChatRoomWrapper to removepublic ChatRoomWrapper findChatRoomWrapperFromChatRoom(ChatRoom chatRoom)
chatRoom - the ChatRoom that we're looking for
public ChatRoomProviderWrapper findServerWrapperFromProvider(ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider that we're looking for
public void synchronizeOpSetWithLocalContactList(ProtocolProviderService protocolProvider,
OperationSetMultiUserChat opSet)
ChatRoomWrapper tries to find the corresponding server stored
ChatRoom in the specified operation set. Joins automatically all
found chat rooms.
protocolProvider - the protocol provider for the account to
synchronizeopSet - the multi user chat operation set, which give us access to
chat room serverpublic Iterator<ChatRoomProviderWrapper> getChatRoomProviders()
public void addChatRoomProviderWrapperListener(ChatRoomList.ChatRoomProviderWrapperListener listener)
listener - the ChatRoomProviderWrapperListener to be addedpublic void removeChatRoomProviderWrapperListener(ChatRoomList.ChatRoomProviderWrapperListener listener)
listener - the ChatRoomProviderWrapperListener to be removed
|
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 | |||||||||