/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.ircaccregwizz;
/**
* The IrcAccountRegistration is used to store all user input data
* through the IrcAccountRegistrationWizard.
*
* @author Lionel Ferreira & Michael Tarantino
* @author Danny van Heumen
*/
public class IrcAccountRegistration
{
private String userID;
private String password;
private String server;
private String port;
private boolean rememberPassword;
private boolean autoChangeNick;
private boolean isRequiredPassword;
private boolean secureConnection;
private boolean saslEnabled;
private String saslUser;
private String saslRole;
private boolean resolveDnsThroughProxy;
/**
* Option for activating contact presence task.
*/
private boolean contactPresenceTaskEnabled;
/**
* Option for activating chat room members presence task.
*/
private boolean chatroomPresenceTaskEnabled;
/**
* Returns the User ID of the IRC registration account.
*
* @return the User ID of the IRC registration account.
*/
public String getUserID()
{
return userID;
}
/**
* Sets the user ID of the IRC registration account.
*
* @param userID the userID of the IRC registration account.
*/
public void setUserID(String userID)
{
this.userID = userID;
}
/**
* Returns the password of the IRC registration account.
*
* @return the password of the IRC registration account.
*/
public String getPassword()
{
return password;
}
/**
* Sets the password of the IRC registration account.
*
* @param password the password of the IRC registration account.
*/
public void setPassword(String password)
{
this.password = password;
}
/**
* Returns the server address.
*
* @return the server address.
*/
public String getServer()
{
return server;
}
/**
* Sets the server address.
*
* @param server the address of the server
*/
public void setServer(String server)
{
this.server = server;
}
/**
* Returns the port to use.
*
* @return the port to use
*/
public String getPort()
{
return this.port;
}
/**
* Sets the port to use.
*
* @param port the port to use
*/
public void setPort(String port)
{
this.port = port;
}
/**
* Returns true if password has to remembered, false
* otherwise.
*
* @return true if password has to remembered, false
* otherwise.
*/
public boolean isRememberPassword()
{
return rememberPassword;
}
/**
* Indicates if the nick should be changed automatically in case of nick
* collision.
*
* @return true
if the nick should be changed,
* false
- otherwise.
*/
public boolean isAutoChangeNick()
{
return autoChangeNick;
}
/**
* Sets the property indicating if the nick should be changed automatically
* in case of nick collision.
* @param autoChangeNick true
to indicate that the nick could
* be changed, false
- otherwise.
*/
public void setAutoChangeNick(boolean autoChangeNick)
{
this.autoChangeNick = autoChangeNick;
}
/**
* Indicates if the password is required or not.
* @return true
to indicate that the password is required,*
* false
- otherwise.
*/
public boolean isRequiredPassword()
{
return isRequiredPassword;
}
/**
* Sets the isRequiredPassword property.
*
* @param isRequiredPassword true
to indicate that the password
* is required, false
- otherwise.
*/
public void setRequiredPassword(boolean isRequiredPassword)
{
this.isRequiredPassword = isRequiredPassword;
}
/**
* Sets the rememberPassword value of this IRC account registration.
*
* @param rememberPassword true if password has to remembered,
* false otherwise.
*/
public void setRememberPassword(boolean rememberPassword)
{
this.rememberPassword = rememberPassword;
}
/**
* Indicates if the the connection must be secure or not.
*
* @return returns true
to indicate that the connection should
* be secure, or false for unsecured connection.
*/
public boolean isSecureConnection()
{
return this.secureConnection;
}
/**
* Set the useSecureConnection property.
*
* @param secureConnection true to require secure connection, or false
* for unsecured connections
*/
public void setSecureConnection(boolean secureConnection)
{
this.secureConnection = secureConnection;
}
/**
* Get contact presence task enabled.
*
* @return returns true if task should be enabled
*/
public boolean isContactPresenceTaskEnabled()
{
return this.contactPresenceTaskEnabled;
}
/**
* Set contact presence task.
*
* @param value value
*/
public void setContactPresenceTaskEnabled(final boolean value)
{
this.contactPresenceTaskEnabled = value;
}
/**
* Get chat room presence task.
*
* @return returns true if task should be enabled
*/
public boolean isChatRoomPresenceTaskEnabled()
{
return this.chatroomPresenceTaskEnabled;
}
/**
* Set chat room presence task.
*
* @param value value
*/
public void setChatRoomPresenceTaskEnabled(final boolean value)
{
this.chatroomPresenceTaskEnabled = value;
}
/**
* Get SASL enable status.
*
* @return Returns true if SASL is enabled, or false if
* SASL is disabled.
*/
public boolean isSaslEnabled()
{
return this.saslEnabled;
}
/**
* Set SASL enabled.
*
* @param enabled true to enable SASL, false to disable
*/
public void setSaslEnabled(final boolean enabled)
{
this.saslEnabled = enabled;
}
/**
* Get SASL user name.
*
* @return Returns SASL user name.
*/
public String getSaslUser()
{
return this.saslUser;
}
/**
* Set SASL user name. (Mandatory)
*
* @param user SASL user name
*/
public void setSaslUser(final String user)
{
this.saslUser = user;
}
/**
* Get SASL authorization role. (Optional)
*
* @return Returns the SASL authorization role if configured, of
* null if no role known.
*/
public String getSaslRole()
{
return this.saslRole;
}
/**
* Set SASL authorization role.
*
* @param role the SASL authorization role
*/
public void setSaslRole(final String role)
{
this.saslRole = role;
}
/**
* Get property for resolving DNS names through configured proxy server.
* true to resolve DNS names through configured proxy server, or
* false to resolve using own DNS server.
*/
public boolean isResolveDnsThroughProxy()
{
return this.resolveDnsThroughProxy;
}
/**
* Set property for resolving DNS through configured proxy server.
*
* @param value true to enable resolving through proxy server, or
* false to resolve via local DNS server
*/
public void setResolveDnsThroughProxy(final boolean value)
{
this.resolveDnsThroughProxy = value;
}
}