public class AdHocChatRoomProviderWrapper
extends java.lang.Object
Constructor and Description |
---|
AdHocChatRoomProviderWrapper(ProtocolProviderService protocolProvider)
Creates an instance of AdHocChatRoomProviderWrapper by
specifying the protocol provider, corresponding to the ad-hoc multi user
chat account.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Adds the given ad-hoc chat room to this chat room provider.
|
boolean |
containsAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Returns
true if the given ad-hoc chat room is contained in
this provider, otherwise - returns false . |
int |
countAdHocChatRooms()
Returns the number of ad-hoc chat rooms contained in this provider.
|
AdHocChatRoomWrapper |
findChatRoomWrapperForAdHocChatRoom(AdHocChatRoom adHocChatRoom)
Returns the ad-hoc chat room wrapper contained in this provider that
corresponds to the given ad-hoc chat room.
|
AdHocChatRoomWrapper |
getAdHocChatRoom(int index) |
byte[] |
getIcon() |
byte[] |
getImage() |
java.lang.String |
getName()
Returns the name of this ad-hoc chat room provider.
|
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider service corresponding to this server
wrapper.
|
int |
indexOf(AdHocChatRoomWrapper chatRoomWrapper)
Returns the index of the given chat room in this provider.
|
void |
removeChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Removes the given ad-hoc chat room from this provider.
|
public AdHocChatRoomProviderWrapper(ProtocolProviderService protocolProvider)
protocolProvider
- protocol provider, corresponding to the ad-hoc
multi user chat account.public java.lang.String getName()
public byte[] getIcon()
public byte[] getImage()
public ProtocolProviderService getProtocolProvider()
public void addAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
adHocChatRoom
- the ad-hoc chat room to add.public void removeChatRoom(AdHocChatRoomWrapper adHocChatRoom)
adHocChatRoom
- the ad-hoc chat room to remove.public boolean containsAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
true
if the given ad-hoc chat room is contained in
this provider, otherwise - returns false
.adHocChatRoom
- the ad-hoc chat room to search for.true
if the given ad-hoc chat room is contained in
this provider, otherwise - returns false
.public AdHocChatRoomWrapper findChatRoomWrapperForAdHocChatRoom(AdHocChatRoom adHocChatRoom)
adHocChatRoom
- the ad-hoc chat room we're looking for.public int countAdHocChatRooms()
public AdHocChatRoomWrapper getAdHocChatRoom(int index)
public int indexOf(AdHocChatRoomWrapper chatRoomWrapper)
chatRoomWrapper
- the chat room to search for.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.