/* * 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; /** * 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; } }