org.xnap.chat
Class AbstractChatProvider

java.lang.Object
  extended by org.xnap.chat.AbstractChatProvider
All Implemented Interfaces:
ChatProvider
Direct Known Subclasses:
OpenNapServer, PircBotServer

public abstract class AbstractChatProvider
extends java.lang.Object
implements ChatProvider


Constructor Summary
AbstractChatProvider()
           
AbstractChatProvider(java.lang.String name)
           
 
Method Summary
 void addChatProviderListener(ChatProviderListener l)
          Adds listener to the provider.
 void channelsUpdated()
           
 java.lang.String getMessages()
          Returns a string with the message of the day.
 java.lang.String getName()
          Returns the name of the server shown to the user.
 void messageReceived(java.lang.String message)
           
 void removeChatProviderListener(ChatProviderListener l)
          Removes listener from the provider.
 void setMessageBufferSize(int maxSize)
          Sets the maximum number of characters for the message buffer.
 void setName(java.lang.String name)
           
 java.lang.String toString()
          Returns the value of getName().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xnap.chat.ChatProvider
getActions, getChannels, join
 

Constructor Detail

AbstractChatProvider

public AbstractChatProvider(java.lang.String name)

AbstractChatProvider

public AbstractChatProvider()
Method Detail

addChatProviderListener

public void addChatProviderListener(ChatProviderListener l)
Description copied from interface: ChatProvider
Adds listener to the provider.

Specified by:
addChatProviderListener in interface ChatProvider

removeChatProviderListener

public void removeChatProviderListener(ChatProviderListener l)
Description copied from interface: ChatProvider
Removes listener from the provider.

Specified by:
removeChatProviderListener in interface ChatProvider

getMessages

public java.lang.String getMessages()
Description copied from interface: ChatProvider
Returns a string with the message of the day.

Specified by:
getMessages in interface ChatProvider

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

setMessageBufferSize

public void setMessageBufferSize(int maxSize)
Sets the maximum number of characters for the message buffer.


setName

public void setName(java.lang.String name)

channelsUpdated

public void channelsUpdated()

messageReceived

public void messageReceived(java.lang.String message)

toString

public java.lang.String toString()
Returns the value of getName().

Overrides:
toString in class java.lang.Object


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