public interface ChatRoomProviderWrapper
Modifier and Type | Method and Description |
---|---|
void |
addChatRoom(ChatRoomWrapper chatRoom)
Adds the given chat room to this chat room provider.
|
boolean |
containsChatRoom(ChatRoomWrapper chatRoom)
Returns
true if the given chat room is contained in this
provider, otherwise - returns false . |
int |
countChatRooms()
Returns the number of chat rooms contained in this provider.
|
ChatRoomWrapper |
findChatRoomWrapperForChatRoom(ChatRoom chatRoom)
Returns the chat room wrapper contained in this provider that corresponds
to the given chat room.
|
ChatRoomWrapper |
findChatRoomWrapperForChatRoomID(java.lang.String chatRoomID)
Returns the chat room wrapper contained in this provider that corresponds
to the chat room with the given id.
|
ChatRoomWrapper |
getChatRoom(int index) |
byte[] |
getIcon() |
byte[] |
getImage() |
java.lang.String |
getName()
Returns the name of this chat room provider.
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider service corresponding to this server
wrapper.
|
ChatRoomWrapper |
getSystemRoomWrapper()
Returns the system room wrapper corresponding to this server.
|
int |
indexOf(ChatRoomWrapper chatRoomWrapper)
Returns the index of the given chat room in this provider.
|
void |
removeChatRoom(ChatRoomWrapper chatRoom)
Removes the given chat room from this provider.
|
void |
setSystemRoom(ChatRoom systemRoom)
Sets the system room corresponding to this server.
|
void |
synchronizeProvider()
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. |
java.lang.String getName()
byte[] getIcon()
byte[] getImage()
ChatRoomWrapper getSystemRoomWrapper()
void setSystemRoom(ChatRoom systemRoom)
systemRoom
- the system room to setProtocolProviderService getProtocolProvider()
void addChatRoom(ChatRoomWrapper chatRoom)
chatRoom
- the chat room to add.void removeChatRoom(ChatRoomWrapper chatRoom)
chatRoom
- the chat room to remove.boolean containsChatRoom(ChatRoomWrapper chatRoom)
true
if the given chat room is contained in this
provider, otherwise - returns false
.chatRoom
- the chat room to search for.true
if the given chat room is contained in this
provider, otherwise - returns false
.ChatRoomWrapper findChatRoomWrapperForChatRoom(ChatRoom chatRoom)
chatRoom
- the chat room we're looking for.ChatRoomWrapper findChatRoomWrapperForChatRoomID(java.lang.String chatRoomID)
chatRoomID
- the id of the chat room we're looking for.int countChatRooms()
ChatRoomWrapper getChatRoom(int index)
int indexOf(ChatRoomWrapper chatRoomWrapper)
chatRoomWrapper
- the chat room to search for.void synchronizeProvider()
ChatRoomWrapper
tries to find the corresponding server stored
ChatRoom
in the specified operation set. Joins automatically all
found chat rooms.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.