f00f.net.irc.martyr
Class AutoJoin

java.lang.Object
  |
  +--f00f.net.irc.martyr.GenericCommandAutoService
        |
        +--f00f.net.irc.martyr.GenericAutoService
              |
              +--f00f.net.irc.martyr.AutoJoin
All Implemented Interfaces:
java.util.Observer

public class AutoJoin
extends GenericAutoService

AutoJoin joins a group if the IRCConnection is ready. It will wait until it is ready if it is not (by waiting for the REGISTERED state change).

AutoJoin maintains a persistent Join (re-join if kicked). AutoJoin can cease to be persistent by calling the 'disable' method.


Fields inherited from class f00f.net.irc.martyr.GenericCommandAutoService
connection, enabled
 
Constructor Summary
AutoJoin(IRCConnection connection, java.lang.String channel)
           
AutoJoin(IRCConnection connection, java.lang.String channel, java.lang.String key)
           
 
Method Summary
 java.lang.String toString()
           
protected  void updateCommand(InCommand command_o)
           
protected  void updateState(State state)
           
 
Methods inherited from class f00f.net.irc.martyr.GenericAutoService
disable, enable, update
 
Methods inherited from class f00f.net.irc.martyr.GenericCommandAutoService
getConnection, isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoJoin

public AutoJoin(IRCConnection connection,
                java.lang.String channel)

AutoJoin

public AutoJoin(IRCConnection connection,
                java.lang.String channel,
                java.lang.String key)
Method Detail

updateState

protected void updateState(State state)
Overrides:
updateState in class GenericAutoService

updateCommand

protected void updateCommand(InCommand command_o)
Overrides:
updateCommand in class GenericCommandAutoService

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000,2001,2002,2003 f00f networks.