irssibot.core
Class ModeQueueElement

java.lang.Object
  |
  +--irssibot.core.ModeQueueElement

public class ModeQueueElement
extends java.lang.Object

This class represents an element in a mode queue for a server connection.

Version:
$Name: $ $Revision: 1.1 $
Author:
Matti Dahlbom
See Also:
irssibot.core.ModeQueue

Field Summary
private  java.lang.String channelName
          Name of channel to apply this mode on.
private  int mode
          Mode change as int constant.
private  int priority
          Priority value by which the mode is inserted into the queue.
static int PRIORITY_IMMEDIATE
          Modes with IMMEDIATE priority will be not be queued, but instantly written to server.
static int PRIORITY_NORMAL
          Normal priority of modes.
private  java.lang.String target
          Target of mode.
 
Constructor Summary
ModeQueueElement(int mode, int priority, java.lang.String target, java.lang.String channelName)
           
 
Method Summary
 java.lang.String getChannelName()
           
 int getMode()
           
 int getPriority()
           
 java.lang.String getTarget()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

priority

private int priority
Priority value by which the mode is inserted into the queue.


mode

private int mode
Mode change as int constant. The values are specified as symbolic constants in class irssibot.core.Irc.

See Also:
irssibot.core.Irc

target

private java.lang.String target
Target of mode. This depends on the mode; for o and v, for example, this is a nick. For b,e,I this is a hostmask etc.


channelName

private java.lang.String channelName
Name of channel to apply this mode on.


PRIORITY_IMMEDIATE

public static final int PRIORITY_IMMEDIATE
Modes with IMMEDIATE priority will be not be queued, but instantly written to server.

See Also:
Constant Field Values

PRIORITY_NORMAL

public static final int PRIORITY_NORMAL
Normal priority of modes.

See Also:
Constant Field Values
Constructor Detail

ModeQueueElement

public ModeQueueElement(int mode,
                        int priority,
                        java.lang.String target,
                        java.lang.String channelName)
Method Detail

getMode

public int getMode()

getPriority

public int getPriority()

getTarget

public java.lang.String getTarget()

getChannelName

public java.lang.String getChannelName()


IrssiBot (c) 2000-2002 Matti Dahlbom