org.relayirc.chatengine
Interface ServerListener

All Known Implementing Classes:
ServerAdapter, ChatApp

public interface ServerListener

Implement this interface to listen for server connection and disconnection, channel joins and parts and status messages.

Version:
$Revision: 1.4.2.4 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Original Code: Relay IRC Chat Engine
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson
See Also:
Server, ServerEvent, ServerListener

Method Summary
 void onChannelAdd(ServerEvent event)
          Channel object has been added to list of those managed by Server object.
 void onChannelJoin(ServerEvent event)
          User has joined a channel.
 void onChannelPart(ServerEvent event)
          User has parted from a channel.
 void onConnect(ServerEvent event)
          Engine has connected to IRC server.
 void onDisconnect(ServerEvent event)
          Engine has disconnected from IRC server.
 void onInvite(ServerEvent event)
          User has invited us to join a channel.
 void onIsOn(ServerEvent event)
          Query results for an ISON query.
 void onStatus(ServerEvent event)
          Status message from engine.
 void onWhoIs(ServerEvent event)
          Query result from an WHOIS query.
 

Method Detail

onConnect

public void onConnect(ServerEvent event)
Engine has connected to IRC server. event.getServer() will be valid.

onDisconnect

public void onDisconnect(ServerEvent event)
Engine has disconnected from IRC server. event.getServer() will be valid.

onChannelAdd

public void onChannelAdd(ServerEvent event)
Channel object has been added to list of those managed by Server object. May be followed by an onChannelJoin event. event.getChannel() will be valid.

onChannelJoin

public void onChannelJoin(ServerEvent event)
User has joined a channel. Will always follow an onChannelAdd event. event.getUser() and event.getChannel() will be valid.

onIsOn

public void onIsOn(ServerEvent event)
Query results for an ISON query. Use event.getUsers() to get an array of users that are online.

onInvite

public void onInvite(ServerEvent event)
User has invited us to join a channel. event.getUser() and event.getChannel() will be valid.

onChannelPart

public void onChannelPart(ServerEvent event)
User has parted from a channel. event.getUser() and event.getChannel() will be valid.

onStatus

public void onStatus(ServerEvent event)
Status message from engine. event.getMessage() will be valid.

onWhoIs

public void onWhoIs(ServerEvent event)
Query result from an WHOIS query. event.getUser() will be valid and full of requested data.