Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.irc
Class UserInfo

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.irc.UserInfo

public class UserInfo
extends Object

Represents the informations we get from a user when we use WHOIS

Author:
Stephane Remy

Constructor Summary
UserInfo(String nickName, String login, String hostname)
           
 
Method Summary
 void addJoinedChatRoom(String chatRoom)
          Adds a chat room to the list of chat rooms joined by this user.
 void clearJoinedChatRoom()
          Clears the list of joined chat rooms.
 String getHostname()
          Returns the host name of this user.
 long getIdle()
          Returns the time from which this user is idle.
 List<String> getJoinedChatRooms()
          The list of chat rooms that this user has joined.
 String getLogin()
          Returns the login of this user.
 String getNickName()
          Returns the nickname of this user.
 String getServerInfo()
          Returns the server info.
 boolean isIrcOp()
          Returns TRUE if this user is an IRC operator and false otherwise.
 void removeJoinedChatRoom(String chatRoom)
          Removes a chat room from the list of joined chat rooms.
protected  void setIdle(long idle)
          Set the idle time for this user.
protected  void setIrcOp(boolean isIrcOp)
          Set if this user is an IRC operator.
protected  void setServerInfo(String serverInfo)
          Set the information for the server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInfo

public UserInfo(String nickName,
                String login,
                String hostname)
Parameters:
nickName -
login -
hostname -
Method Detail

addJoinedChatRoom

public void addJoinedChatRoom(String chatRoom)
Adds a chat room to the list of chat rooms joined by this user.

Parameters:
chatRoom - the name of the chat room we want to add to the list

removeJoinedChatRoom

public void removeJoinedChatRoom(String chatRoom)
Removes a chat room from the list of joined chat rooms.

Parameters:
chatRoom - the chat room we want to remove.

clearJoinedChatRoom

public void clearJoinedChatRoom()
Clears the list of joined chat rooms.


getHostname

public String getHostname()
Returns the host name of this user.

Returns:
the hostname of this user

getIdle

public long getIdle()
Returns the time from which this user is idle.

Returns:
the idle time of this user

getJoinedChatRooms

public List<String> getJoinedChatRooms()
The list of chat rooms that this user has joined.

Returns:
a list of the joined chat rooms of this user

getLogin

public String getLogin()
Returns the login of this user.

Returns:
the login of this user

getNickName

public String getNickName()
Returns the nickname of this user.

Returns:
the nickname of this user

isIrcOp

public boolean isIrcOp()
Returns TRUE if this user is an IRC operator and false otherwise.

Returns:
true if this user is an IRCOP or false otherwise

getServerInfo

public String getServerInfo()
Returns the server info.

Returns:
a string server information

setIdle

protected void setIdle(long idle)
Set the idle time for this user.

Parameters:
idle - the idle time of this user

setIrcOp

protected void setIrcOp(boolean isIrcOp)
Set if this user is an IRC operator.

Parameters:
isIrcOp - TRUE to indicate that the user is an IRC operator and FALSE otherwise

setServerInfo

protected void setServerInfo(String serverInfo)
Set the information for the server

Parameters:
serverInfo - the information for the server

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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