/*****************************************************/
/*          This java file is a part of the          */
/*                                                   */
/*           -  Plouf's Java IRC Client  -           */
/*                                                   */
/*   Copyright (C)  2002 - 2004 Philippe Detournay   */
/*                                                   */
/*         All contacts : theplouf@yahoo.com         */
/*                                                   */
/*  PJIRC is free software; you can redistribute     */
/*  it and/or modify it under the terms of the GNU   */
/*  General Public License as published by the       */
/*  Free Software Foundation; version 2 or later of  */
/*  the License.                                     */
/*                                                   */
/*  PJIRC is distributed in the hope that it will    */
/*  be useful, but WITHOUT ANY WARRANTY; without     */
/*  even the implied warranty of MERCHANTABILITY or  */
/*  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   */
/*  General Public License for more details.         */
/*                                                   */
/*  You should have received a copy of the GNU       */
/*  General Public License along with PJIRC; if      */
/*  not, write to the Free Software Foundation,      */
/*  Inc., 59 Temple Place, Suite 330, Boston,        */
/*  MA  02111-1307  USA                              */
/*                                                   */
/*****************************************************/

package irc;

/**
 * Startup configuration.
 */
public class StartupConfiguration {
	private String _nick;
	private String _altNick;
	private String _name;
	private String[] _pass;
	private String[] _host;
	private String _alias;
	private int[] _port;
	private String[] _commands;
	private String[] _plugins;

	/**
	 * Create a new StartupConfiguration.
	 * 
	 * @param nick
	 *          claimed nickname.
	 * @param altNick
	 *          claimed alternate nickname.
	 * @param name
	 *          full user name.
	 * @param pass
	 *          user server passwords.
	 * @param host
	 *          IRC server hosts.
	 * @param port
	 *          IRC server ports.
	 * @param alias
	 *          IRC server alias.
	 * @param commands
	 *          initial server commands.
	 * @param plugins
	 *          autoloaded plugins.
	 */
	public StartupConfiguration(String nick, String altNick, String name, String pass[], String host[], int port[],
			String alias, String[] commands, String[] plugins) {
		_nick = nick;
		_altNick = altNick;
		_name = name;
		_pass = pass;
		_host = host;
		_port = port;
		_alias = alias;
		_commands = commands;
		_plugins = plugins;
	}

	/**
	 * Get the nickname.
	 * 
	 * @return the nickname.
	 */
	public String getNick() {
		return _nick;
	}

	/**
	 * Get the alternate nickname.
	 * 
	 * @return the alternate nickname.
	 */
	public String getAltNick() {
		return _altNick;
	}

	/**
	 * Get the full name.
	 * 
	 * @return the full name.
	 */
	public String getName() {
		return _name;
	}

	/**
	 * Get the server passwords.
	 * 
	 * @return the server passwords.
	 */
	public String[] getPass() {
		return _pass;
	}

	/**
	 * Get the server host names.
	 * 
	 * @return the server host names.
	 */
	public String[] getHost() {
		return _host;
	}

	/**
	 * Get the server ports.
	 * 
	 * @return the server ports.
	 */
	public int[] getPort() {
		return _port;
	}

	/**
	 * Get the server alias.
	 * 
	 * @return the server alias.
	 */
	public String getAlias() {
		return _alias;
	}

	/**
	 * Get initial server commands.
	 * 
	 * @return initial on-connect server commands.
	 */
	public String[] getCommands() {
		return _commands;
	}

	/**
	 * Get the autoloaded scripts.
	 * 
	 * @return autoloaded scripts.
	 */
	public String[] getPlugins() {
		return _plugins;
	}
}
