Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chat.conference
Class AdHocChatRoomProviderWrapper

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chat.conference.AdHocChatRoomProviderWrapper

public class AdHocChatRoomProviderWrapper
extends Object

Author:
Valentin Martinet

Constructor Summary
AdHocChatRoomProviderWrapper(ProtocolProviderService protocolProvider)
          Creates an instance of AdHocChatRoomProviderWrapper by specifying the protocol provider, corresponding to the ad-hoc multi user chat account.
 
Method Summary
 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()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHocChatRoomProviderWrapper

public AdHocChatRoomProviderWrapper(ProtocolProviderService protocolProvider)
Creates an instance of AdHocChatRoomProviderWrapper by specifying the protocol provider, corresponding to the ad-hoc multi user chat account.

Parameters:
protocolProvider - protocol provider, corresponding to the ad-hoc multi user chat account.
Method Detail

getName

public String getName()
Returns the name of this ad-hoc chat room provider.

Returns:
the name of this ad-hoc chat room provider.

getIcon

public byte[] getIcon()

getImage

public byte[] getImage()

getProtocolProvider

public ProtocolProviderService getProtocolProvider()
Returns the protocol provider service corresponding to this server wrapper.

Returns:
the protocol provider service corresponding to this server wrapper.

addAdHocChatRoom

public void addAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Adds the given ad-hoc chat room to this chat room provider.

Parameters:
adHocChatRoom - the ad-hoc chat room to add.

removeChatRoom

public void removeChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Removes the given ad-hoc chat room from this provider.

Parameters:
adHocChatRoom - the ad-hoc chat room to remove.

containsAdHocChatRoom

public boolean containsAdHocChatRoom(AdHocChatRoomWrapper adHocChatRoom)
Returns true if the given ad-hoc chat room is contained in this provider, otherwise - returns false.

Parameters:
adHocChatRoom - the ad-hoc chat room to search for.
Returns:
true if the given ad-hoc chat room is contained in this provider, otherwise - returns false.

findChatRoomWrapperForAdHocChatRoom

public AdHocChatRoomWrapper findChatRoomWrapperForAdHocChatRoom(AdHocChatRoom adHocChatRoom)
Returns the ad-hoc chat room wrapper contained in this provider that corresponds to the given ad-hoc chat room.

Parameters:
adHocChatRoom - the ad-hoc chat room we're looking for.
Returns:
the ad-hoc chat room wrapper contained in this provider that corresponds to the given ad-hoc chat room.

countAdHocChatRooms

public int countAdHocChatRooms()
Returns the number of ad-hoc chat rooms contained in this provider.

Returns:
the number of ad-hoc chat rooms contained in this provider.

getAdHocChatRoom

public AdHocChatRoomWrapper getAdHocChatRoom(int index)

indexOf

public int indexOf(AdHocChatRoomWrapper chatRoomWrapper)
Returns the index of the given chat room in this provider.

Parameters:
chatRoomWrapper - the chat room to search for.
Returns:
the index of the given chat room in this provider.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.