rero.client.notify
Class NotifyData

java.lang.Object
  extended byrero.client.Feature
      extended byrero.client.notify.NotifyData
All Implemented Interfaces:
ChatListener, ClientStateListener, TimerListener

public class NotifyData
extends Feature
implements ChatListener, TimerListener, ClientStateListener


Field Summary
protected  boolean isChecking
           
protected  Lag lag
           
protected  Set signedon
           
protected  HashMap users
           
 
Fields inherited from class rero.client.Feature
abilities
 
Fields inherited from interface rero.ircfw.interfaces.ChatListener
EVENT_DONE, EVENT_HALT, REMOVE_LISTENER
 
Constructor Summary
NotifyData()
           
 
Method Summary
 void addUser(String nickname)
           
 void checkNotify()
           
 void cleanup()
          execute any cleanup that needs to be done so we don't have memory leaks
 NotifyUser createNotifyUser(String nickname)
           
 int fireChatEvent(HashMap eventDescription)
           
 Set getNotifyUsers()
           
 Set getSignedOffUsers()
           
 Set getSignedOnUsers()
           
 NotifyUser getUserInfo(String nickname)
           
 void hashUsers()
           
 void init()
           
 boolean isChatEvent(String eventId, HashMap eventDescription)
           
 void propertyChanged(String value, String parameter)
          when the property gets changed you will be notified!
 void removeUser(String nickname)
           
 void reset()
           
 void storeDataStructures(WeakHashMap data)
           
 void timerExecute()
           
 
Methods inherited from class rero.client.Feature
getCapabilities, installCapabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

users

protected HashMap users

signedon

protected Set signedon

lag

protected Lag lag

isChecking

protected boolean isChecking
Constructor Detail

NotifyData

public NotifyData()
Method Detail

reset

public void reset()

propertyChanged

public void propertyChanged(String value,
                            String parameter)
Description copied from interface: ClientStateListener
when the property gets changed you will be notified!

Specified by:
propertyChanged in interface ClientStateListener

hashUsers

public void hashUsers()

addUser

public void addUser(String nickname)

removeUser

public void removeUser(String nickname)

getSignedOnUsers

public Set getSignedOnUsers()

getNotifyUsers

public Set getNotifyUsers()

getSignedOffUsers

public Set getSignedOffUsers()

init

public void init()
Specified by:
init in class Feature

cleanup

public void cleanup()
Description copied from class: Feature
execute any cleanup that needs to be done so we don't have memory leaks

Overrides:
cleanup in class Feature

storeDataStructures

public void storeDataStructures(WeakHashMap data)
Overrides:
storeDataStructures in class Feature

createNotifyUser

public NotifyUser createNotifyUser(String nickname)

getUserInfo

public NotifyUser getUserInfo(String nickname)

checkNotify

public void checkNotify()

timerExecute

public void timerExecute()
Specified by:
timerExecute in interface TimerListener

fireChatEvent

public int fireChatEvent(HashMap eventDescription)
Specified by:
fireChatEvent in interface ChatListener

isChatEvent

public boolean isChatEvent(String eventId,
                           HashMap eventDescription)
Specified by:
isChatEvent in interface ChatListener