Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.generalconfig.autoaway
Class AutoAwayWatcher

java.lang.Object
  extended by net.java.sip.communicator.plugin.generalconfig.autoaway.AutoAwayWatcher
All Implemented Interfaces:
EventListener, SystemActivityChangeListener

public class AutoAwayWatcher
extends Object
implements SystemActivityChangeListener

Listens for idle events from SystemActivityNotifications Service.

Author:
Damian Minkov

Constructor Summary
AutoAwayWatcher(ConfigurationService configurationService)
          Creates AutoAway handler.
 
Method Summary
 void activityChanged(SystemActivityEvent event)
          Listens for activities and set corresponding statuses.
 void start()
          Starts and add needed listeners.
 void stop()
          Stops and removes the listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoAwayWatcher

public AutoAwayWatcher(ConfigurationService configurationService)
Creates AutoAway handler.

Parameters:
configurationService - the config service.
Method Detail

start

public void start()
Starts and add needed listeners.


stop

public void stop()
Stops and removes the listeners.


activityChanged

public void activityChanged(SystemActivityEvent event)
Listens for activities and set corresponding statuses.

Specified by:
activityChanged in interface SystemActivityChangeListener
Parameters:
event - the NotificationActionTypeEvent, which is

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.