org.xnap.plugin.pircbot
Class PircBotServer

java.lang.Object
  extended by org.xnap.chat.AbstractChatProvider
      extended by org.xnap.plugin.pircbot.PircBotServer
All Implemented Interfaces:
ChatProvider

public class PircBotServer
extends AbstractChatProvider


Constructor Summary
PircBotServer()
           
PircBotServer(PircBotServerData data)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void addStateListener(StateListener listener)
           
 void close()
          Disconnects the server and removes all channels.
 void connect()
           
 javax.swing.Action[] getActions()
          Returns an array of actions that can be performed on the provider.
 boolean getAutoConnect()
           
 java.lang.String getAutoJoinChannels()
           
 ChannelInfo[] getChannels()
          Returns the the channels on this server.
 java.lang.String getConnectCommand()
           
 java.lang.String getHost()
           
 PircBotPeer getLocalPeer()
          Returns the local peer.
 java.lang.String getLogin()
           
 java.lang.String getName()
          Returns the name of the server shown to the user.
 java.lang.String getNetwork()
           
 java.lang.String getNick()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getStatus()
           
 boolean isConnected()
           
 boolean isDisconnected()
           
 void join(java.lang.String name)
          Joins a channel.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void removeStateListener(StateListener listener)
           
 void setAutoConnect(boolean autoConnect)
           
 void setAutoJoinChannels(java.lang.String autoJoinChannels)
           
 void setConnectCommand(java.lang.String connectCommand)
           
 void setHost(java.lang.String host)
           
 void setLogin(java.lang.String login)
           
 void setName(java.lang.String name)
           
 void setNetwork(java.lang.String network)
           
 void setNick(java.lang.String nick)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 
Methods inherited from class org.xnap.chat.AbstractChatProvider
addChatProviderListener, channelsUpdated, getMessages, messageReceived, removeChatProviderListener, setMessageBufferSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PircBotServer

public PircBotServer(PircBotServerData data)

PircBotServer

public PircBotServer()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

addStateListener

public void addStateListener(StateListener listener)

removeStateListener

public void removeStateListener(StateListener listener)

close

public void close()
Disconnects the server and removes all channels.


connect

public void connect()

getActions

public javax.swing.Action[] getActions()
Description copied from interface: ChatProvider
Returns an array of actions that can be performed on the provider.


getChannels

public ChannelInfo[] getChannels()
Description copied from interface: ChatProvider
Returns the the channels on this server.


getAutoConnect

public boolean getAutoConnect()

getAutoJoinChannels

public java.lang.String getAutoJoinChannels()

getConnectCommand

public java.lang.String getConnectCommand()

getHost

public java.lang.String getHost()

getLogin

public java.lang.String getLogin()

getName

public java.lang.String getName()
Description copied from interface: ChatProvider
Returns the name of the server shown to the user.

Specified by:
getName in interface ChatProvider
Overrides:
getName in class AbstractChatProvider

getNetwork

public java.lang.String getNetwork()

getNick

public java.lang.String getNick()

getLocalPeer

public PircBotPeer getLocalPeer()
Returns the local peer.


getPassword

public java.lang.String getPassword()

getPort

public int getPort()

getStatus

public java.lang.String getStatus()

isConnected

public boolean isConnected()

isDisconnected

public boolean isDisconnected()

join

public void join(java.lang.String name)
Description copied from interface: ChatProvider
Joins a channel.


setAutoConnect

public void setAutoConnect(boolean autoConnect)

setAutoJoinChannels

public void setAutoJoinChannels(java.lang.String autoJoinChannels)

setConnectCommand

public void setConnectCommand(java.lang.String connectCommand)
Parameters:
string -

setHost

public void setHost(java.lang.String host)

setLogin

public void setLogin(java.lang.String login)

setName

public void setName(java.lang.String name)
Overrides:
setName in class AbstractChatProvider

setNetwork

public void setNetwork(java.lang.String network)

setNick

public void setNick(java.lang.String nick)

setPassword

public void setPassword(java.lang.String password)

setPort

public void setPort(int port)


Copyright © 2001-2005 XNap Team. All Rights Reserved.