irc
Class Status

java.lang.Object
  |
  +--irc.IRCObject
        |
        +--irc.Source
              |
              +--irc.IRCSource
                    |
                    +--irc.Status
All Implemented Interfaces:
ReplyServerListener

public class Status
extends IRCSource
implements ReplyServerListener

The status.


Field Summary
 
Fields inherited from class irc.Source
_in, _server
 
Fields inherited from class irc.IRCObject
_ircConfiguration
 
Constructor Summary
Status(IRCConfiguration config, IRCServer s)
          Create a new Status.
 
Method Summary
 void addStatusListener(StatusListener lis)
          Add listener.
 java.lang.String getMode()
          Get this status mode.
 java.lang.String getName()
          Get this source name.
 java.lang.String getNick()
          Get this status nick.
 java.lang.String getServerName()
           
 java.lang.String getType()
          Get this source type.
 void leave()
          Request to leave (close) this source.
 void modeChanged(java.lang.String mode)
          Notify this status that the mode has changed.
 void nickChanged(java.lang.String nick)
          Notify this status that the nick has changed.
 void release()
          Release this object.
 void removeStatusListener(StatusListener lis)
          Remove listener.
 void replyReceived(java.lang.String prefix, java.lang.String id, java.lang.String[] params)
          A new numeric reply has been received from the irc server.
 boolean talkable()
          Test wether this source can accept messages from user.
 
Methods inherited from class irc.IRCSource
getIRCServer
 
Methods inherited from class irc.Source
action, activate, addSourceListener, clear, getInterpretor, getServer, isActive, mayDefault, messageReceived, noticeReceived, removeSourceListener, report, sendString, setCTCPFilter, setInterpretor
 
Methods inherited from class irc.IRCObject
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

public Status(IRCConfiguration config,
              IRCServer s)
Create a new Status.

Parameters:
config - global irc configuration.
s - server.
Method Detail

release

public void release()
Description copied from class: IRCObject
Release this object. No further method call can be performed on this object.

Overrides:
release in class Source

getType

public java.lang.String getType()
Description copied from class: Source
Get this source type.

Specified by:
getType in class Source
Returns:
source type.

getName

public java.lang.String getName()
Description copied from class: Source
Get this source name.

Specified by:
getName in class Source
Returns:
source name.

getServerName

public java.lang.String getServerName()

talkable

public boolean talkable()
Description copied from class: Source
Test wether this source can accept messages from user.

Specified by:
talkable in class Source
Returns:
true if this source accepts user input, false otherwise.

leave

public void leave()
Description copied from class: Source
Request to leave (close) this source.

Specified by:
leave in class Source

getNick

public java.lang.String getNick()
Get this status nick.

Returns:
status nick.

getMode

public java.lang.String getMode()
Get this status mode.

Returns:
status mode.

addStatusListener

public void addStatusListener(StatusListener lis)
Add listener.

Parameters:
lis - listener to add.

removeStatusListener

public void removeStatusListener(StatusListener lis)
Remove listener.

Parameters:
lis - listener to remove.

nickChanged

public void nickChanged(java.lang.String nick)
Notify this status that the nick has changed.

Parameters:
nick - new nick.

modeChanged

public void modeChanged(java.lang.String mode)
Notify this status that the mode has changed.

Parameters:
mode - new mode.

replyReceived

public void replyReceived(java.lang.String prefix,
                          java.lang.String id,
                          java.lang.String[] params)
Description copied from interface: ReplyServerListener
A new numeric reply has been received from the irc server.

Specified by:
replyReceived in interface ReplyServerListener
Parameters:
prefix - reply prefix.
id - reply id.
params - reply parameters.