rero.client
Class Capabilities

java.lang.Object
  extended byrero.client.Capabilities

public class Capabilities
extends Object

capabilities that feature classes may want to take advantage of


Field Summary
protected  ChatCapabilities actions
           
protected  WeakHashMap data
           
protected  LinkedList featureList
           
protected  UICapabilities gui
           
protected  ChatFramework ircfw
           
protected  OutputCapabilities output
           
protected  ScriptCore script
           
protected  SocketConnection socket
           
protected static TimerUtil timer
           
 
Constructor Summary
Capabilities(ChatFramework _ircfw, SocketConnection _socket, ScriptCore _script, UICapabilities _gui, WeakHashMap _data)
           
 
Method Summary
 void addChatListener(ChatListener l)
           
 void addTemporaryListener(ChatListener l)
           
 void cleanup()
           
 void dispatchEvent(HashMap data)
           
 void finalizeFeatures(LinkedList features)
           
 ChatCapabilities getChatCapabilities()
           
 ChatFramework getChatFramework()
           
 Object getDataStructure(String key)
           
 GlobalCapabilities getGlobalCapabilities()
           
 OutputCapabilities getOutputCapabilities()
           
 ScriptCore getScriptCore()
           
 SocketConnection getSocketConnection()
           
 TimerUtil getTimer()
           
 UICapabilities getUserInterface()
           
 void injectEvent(String text)
           
 boolean isConnected()
           
 void registerCommand(String command, ClientCommand code)
           
 void sendln(String text)
           
 void setupFeature(Feature aFeature, LinkedList features)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

protected SocketConnection socket

ircfw

protected ChatFramework ircfw

script

protected ScriptCore script

output

protected OutputCapabilities output

actions

protected ChatCapabilities actions

gui

protected UICapabilities gui

timer

protected static TimerUtil timer

data

protected WeakHashMap data

featureList

protected LinkedList featureList
Constructor Detail

Capabilities

public Capabilities(ChatFramework _ircfw,
                    SocketConnection _socket,
                    ScriptCore _script,
                    UICapabilities _gui,
                    WeakHashMap _data)
Method Detail

getTimer

public TimerUtil getTimer()

cleanup

public void cleanup()

isConnected

public boolean isConnected()

getChatCapabilities

public ChatCapabilities getChatCapabilities()

getOutputCapabilities

public OutputCapabilities getOutputCapabilities()

getUserInterface

public UICapabilities getUserInterface()

getScriptCore

public ScriptCore getScriptCore()

getSocketConnection

public SocketConnection getSocketConnection()

sendln

public void sendln(String text)

getDataStructure

public Object getDataStructure(String key)

injectEvent

public void injectEvent(String text)

dispatchEvent

public void dispatchEvent(HashMap data)

addChatListener

public void addChatListener(ChatListener l)

addTemporaryListener

public void addTemporaryListener(ChatListener l)

getChatFramework

public ChatFramework getChatFramework()

registerCommand

public void registerCommand(String command,
                            ClientCommand code)

setupFeature

public void setupFeature(Feature aFeature,
                         LinkedList features)

finalizeFeatures

public void finalizeFeatures(LinkedList features)

getGlobalCapabilities

public GlobalCapabilities getGlobalCapabilities()