1 /*****************************************************/
\r
2 /* This java file is a part of the */
\r
4 /* - Plouf's Java IRC Client - */
\r
6 /* Copyright (C) 2002 - 2004 Philippe Detournay */
\r
8 /* All contacts : theplouf@yahoo.com */
\r
10 /* PJIRC is free software; you can redistribute */
\r
11 /* it and/or modify it under the terms of the GNU */
\r
12 /* General Public License as published by the */
\r
13 /* Free Software Foundation; version 2 or later of */
\r
16 /* PJIRC is distributed in the hope that it will */
\r
17 /* be useful, but WITHOUT ANY WARRANTY; without */
\r
18 /* even the implied warranty of MERCHANTABILITY or */
\r
19 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
\r
20 /* General Public License for more details. */
\r
22 /* You should have received a copy of the GNU */
\r
23 /* General Public License along with PJIRC; if */
\r
24 /* not, write to the Free Software Foundation, */
\r
25 /* Inc., 59 Temple Place, Suite 330, Boston, */
\r
26 /* MA 02111-1307 USA */
\r
28 /*****************************************************/
\r
33 * Startup configuration.
\r
35 public class StartupConfiguration {
\r
36 private String _nick;
\r
37 private String _altNick;
\r
38 private String _name;
\r
39 private String[] _pass;
\r
40 private String[] _host;
\r
41 private String _alias;
\r
42 private int[] _port;
\r
43 private String[] _commands;
\r
44 private String[] _plugins;
\r
47 * Create a new StartupConfiguration.
\r
52 * claimed alternate nickname.
\r
56 * user server passwords.
\r
64 * initial server commands.
\r
66 * autoloaded plugins.
\r
68 public StartupConfiguration(String nick, String altNick, String name, String pass[], String host[], int port[],
\r
69 String alias, String[] commands, String[] plugins) {
\r
77 _commands = commands;
\r
84 * @return the nickname.
\r
86 public String getNick() {
\r
91 * Get the alternate nickname.
\r
93 * @return the alternate nickname.
\r
95 public String getAltNick() {
\r
100 * Get the full name.
\r
102 * @return the full name.
\r
104 public String getName() {
\r
109 * Get the server passwords.
\r
111 * @return the server passwords.
\r
113 public String[] getPass() {
\r
118 * Get the server host names.
\r
120 * @return the server host names.
\r
122 public String[] getHost() {
\r
127 * Get the server ports.
\r
129 * @return the server ports.
\r
131 public int[] getPort() {
\r
136 * Get the server alias.
\r
138 * @return the server alias.
\r
140 public String getAlias() {
\r
145 * Get initial server commands.
\r
147 * @return initial on-connect server commands.
\r
149 public String[] getCommands() {
\r
154 * Get the autoloaded scripts.
\r
156 * @return autoloaded scripts.
\r
158 public String[] getPlugins() {
\r