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
35 public interface ServerListener {
\r
37 * The server has connected.
\r
42 public void serverConnected(Server s);
\r
45 * The server has disconnected.
\r
50 public void serverDisconnected(Server s);
\r
53 * The server has left.
\r
58 public void serverLeft(Server s);
\r
61 * The nickname(s) provided to this server for registration cannot be used for
\r
66 * @return an array of alternative nicknames.
\r
68 public String[] cannotUseRequestedNicknames(Server s);
\r
71 * A new source has been created.
\r
74 * the created source.
\r
78 * true if the newly created source must have immediate focus.
\r
80 public void sourceCreated(Source source, Server server, Boolean bring);
\r
83 * An existing source has been removed.
\r
86 * the removed source.
\r
90 public void sourceRemoved(Source source, Server server);
\r
93 * Send a special request from the server. This is a generic-purpose event and
\r
94 * possible requests should be defined by server implementations.
\r
101 * request parameters.
\r
102 * @return request result.
\r
104 public Object specialServerRequest(String request, Server server, Object[] params);
\r