/*****************************************************/
/*          This java file is a part of the          */
/*                                                   */
/*           -  Plouf's Java IRC Client  -           */
/*                                                   */
/*   Copyright (C)  2002 - 2005 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;

import java.util.Enumeration;
import java.util.Vector;

/**
 * The null-server class.
 */
public class NullServer implements Server {
	/**
	 * Create a new NullServer.
	 */
	public NullServer() {
		// empty default implementation
	}

	@Override
	public void addServerListener(ServerListener l) {
		// empty default implementation
	}

	@Override
	public void removeServerListener(ServerListener l) {
		// empty default implementation
	}

	@Override
	public void say(String destination, String str) {
		// empty default implementation
	}

	@Override
	public void execute(String str) {
		// empty default implementation
	}

	@Override
	public void sendStatusMessage(String str) {
		// empty default implementation
	}

	@Override
	public String getNick() {
		return "";
	}

	@Override
	public String getUserName() {
		return "";
	}

	@Override
	public String getServerName() {
		return "Null";
	}

	@Override
	public void connect() {
		// empty default implementation
	}

	@Override
	public void disconnect() {
		// empty default implementation
	}

	@Override
	public boolean isConnected() {
		return false;
	}

	@Override
	public void setDefaultSource(Source def) {
		// empty default implementation
	}

	@Override
	public void leave() {
		// empty default implementation
	}

	@Override
	public void enumerateSourcesAsCreated(ServerListener lis) {
		// empty default implementation
	}

	@Override
	public void enumerateSourcesAsRemoved(ServerListener lis) {
		// empty default implementation
	}

	@Override
	public Enumeration getSources() {
		return new Vector().elements();
	}

}
