/* * SIP Communicator, 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 */ public class IrcAccountRegistration { private String userID; private String password; private String server; private String port; private boolean rememberPassword; private boolean autoChangeNick; private boolean isRequiredPassword; /** * 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; } }