1 /*****************************************************/
\r
2 /* This java file is a part of the */
\r
4 /* - Plouf's Java IRC Client - */
\r
6 /* Copyright (C) 2002 - 2005 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
32 import java.util.Enumeration;
\r
33 import java.util.Vector;
\r
36 * The null-server class.
\r
38 public class NullServer implements Server {
\r
40 * Create a new NullServer.
\r
42 public NullServer() {
\r
43 // empty default implementation
\r
47 public void addServerListener(ServerListener l) {
\r
48 // empty default implementation
\r
52 public void removeServerListener(ServerListener l) {
\r
53 // empty default implementation
\r
57 public void say(String destination, String str) {
\r
58 // empty default implementation
\r
62 public void execute(String str) {
\r
63 // empty default implementation
\r
67 public void sendStatusMessage(String str) {
\r
68 // empty default implementation
\r
72 public String getNick() {
\r
77 public String getUserName() {
\r
82 public String getServerName() {
\r
87 public void connect() {
\r
88 // empty default implementation
\r
92 public void disconnect() {
\r
93 // empty default implementation
\r
97 public boolean isConnected() {
\r
102 public void setDefaultSource(Source def) {
\r
103 // empty default implementation
\r
107 public void leave() {
\r
108 // empty default implementation
\r
112 public void enumerateSourcesAsCreated(ServerListener lis) {
\r
113 // empty default implementation
\r
117 public void enumerateSourcesAsRemoved(ServerListener lis) {
\r
118 // empty default implementation
\r
122 public Enumeration getSources() {
\r
123 return new Vector().elements();
\r