uk.org.ownage.dmdirc.parser
Class ProcessNick

java.lang.Object
  extended by uk.org.ownage.dmdirc.parser.IRCProcessor
      extended by uk.org.ownage.dmdirc.parser.ProcessNick

public class ProcessNick
extends IRCProcessor

Process a Nick change.


Field Summary
 
Fields inherited from class uk.org.ownage.dmdirc.parser.IRCProcessor
myManager, myParser
 
Constructor Summary
protected ProcessNick(IRCParser parser, ProcessingManager manager)
          Create a new instance of the IRCProcessor Object
 
Method Summary
protected  boolean callChannelNickChanged(ChannelInfo cChannel, ChannelClientInfo cChannelClient, java.lang.String sOldNick)
          Callback to all objects implementing the ChannelNickChanged Callback.
protected  boolean callNickChanged(ClientInfo cClient, java.lang.String sOldNick)
          Callback to all objects implementing the NickChanged Callback.
 java.lang.String[] handles()
          What does this IRCProcessor handle.
 void process(java.lang.String sParam, java.lang.String[] token)
          Process a Nick change.
 
Methods inherited from class uk.org.ownage.dmdirc.parser.IRCProcessor
callDebugInfo, callDebugInfo, callErrorInfo, getCallbackManager, getChannelInfo, getClientInfo, getLowerName, getName, getSvnInfo, isValidChannelName, sendString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessNick

protected ProcessNick(IRCParser parser,
                      ProcessingManager manager)
Create a new instance of the IRCProcessor Object

Parameters:
parser - IRCParser That owns this IRCProcessor
manager - ProcessingManager that is in charge of this IRCProcessor
Method Detail

process

public void process(java.lang.String sParam,
                    java.lang.String[] token)
Process a Nick change.

Specified by:
process in class IRCProcessor
Parameters:
sParam - Type of line to process ("NICK")
token - IRCTokenised line to process

callChannelNickChanged

protected boolean callChannelNickChanged(ChannelInfo cChannel,
                                         ChannelClientInfo cChannelClient,
                                         java.lang.String sOldNick)
Callback to all objects implementing the ChannelNickChanged Callback.

Parameters:
cChannel - One of the channels that the user is on
cChannelClient - Client changing nickname
sOldNick - Nickname before change
See Also:
IChannelNickChanged

callNickChanged

protected boolean callNickChanged(ClientInfo cClient,
                                  java.lang.String sOldNick)
Callback to all objects implementing the NickChanged Callback.

Parameters:
cClient - Client changing nickname
sOldNick - Nickname before change
See Also:
INickChanged

handles

public java.lang.String[] handles()
What does this IRCProcessor handle.

Specified by:
handles in class IRCProcessor
Returns:
String[] with the names of the tokens we handle.