Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.sysactivity.event
Class SystemActivityEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.sysactivity.event.SystemActivityEvent
All Implemented Interfaces:
Serializable

public class SystemActivityEvent
extends EventObject

An event class representing system activity that has occurred. The event id indicates the exact reason for this event.

Author:
Damian Minkov
See Also:
Serialized Form

Field Summary
static int EVENT_DISPLAY_SLEEP
          Computer display has stand by.
static int EVENT_DISPLAY_WAKE
          Computer display wakes up after stand by.
static int EVENT_DNS_CHANGE
          A change in dns configuration has occurred.
static int EVENT_NETWORK_CHANGE
          A change in network configuration has occurred.
static int EVENT_SCREEN_LOCKED
          Screen has been locked.
static int EVENT_SCREEN_UNLOCKED
          Screen has been unlocked.
static int EVENT_SCREENSAVER_START
          Screensaver has been started.
static int EVENT_SCREENSAVER_STOP
          Screensaver has been stopped.
static int EVENT_SCREENSAVER_WILL_STOP
          Screensaver will stop.
static int EVENT_SLEEP
          Notify that computers is going to sleep.
static int EVENT_SYSTEM_IDLE
          A system idle event has occurred.
static int EVENT_SYSTEM_IDLE_END
          A system was in idle state and now exits.
static int EVENT_WAKE
          Notify that computer is wakeing up after stand by.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SystemActivityEvent(Object source, int eventID)
          Constructs a prototypical Event.
 
Method Summary
 int getEventID()
          Returns the type of the event.
 String toString()
          Returns a String representation of this SystemActivityEvent object.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_SLEEP

public static final int EVENT_SLEEP
Notify that computers is going to sleep.

See Also:
Constant Field Values

EVENT_WAKE

public static final int EVENT_WAKE
Notify that computer is wakeing up after stand by.

See Also:
Constant Field Values

EVENT_DISPLAY_SLEEP

public static final int EVENT_DISPLAY_SLEEP
Computer display has stand by.

See Also:
Constant Field Values

EVENT_DISPLAY_WAKE

public static final int EVENT_DISPLAY_WAKE
Computer display wakes up after stand by.

See Also:
Constant Field Values

EVENT_SCREENSAVER_START

public static final int EVENT_SCREENSAVER_START
Screensaver has been started.

See Also:
Constant Field Values

EVENT_SCREENSAVER_WILL_STOP

public static final int EVENT_SCREENSAVER_WILL_STOP
Screensaver will stop.

See Also:
Constant Field Values

EVENT_SCREENSAVER_STOP

public static final int EVENT_SCREENSAVER_STOP
Screensaver has been stopped.

See Also:
Constant Field Values

EVENT_SCREEN_LOCKED

public static final int EVENT_SCREEN_LOCKED
Screen has been locked.

See Also:
Constant Field Values

EVENT_SCREEN_UNLOCKED

public static final int EVENT_SCREEN_UNLOCKED
Screen has been unlocked.

See Also:
Constant Field Values

EVENT_NETWORK_CHANGE

public static final int EVENT_NETWORK_CHANGE
A change in network configuration has occurred.

See Also:
Constant Field Values

EVENT_SYSTEM_IDLE

public static final int EVENT_SYSTEM_IDLE
A system idle event has occurred.

See Also:
Constant Field Values

EVENT_SYSTEM_IDLE_END

public static final int EVENT_SYSTEM_IDLE_END
A system was in idle state and now exits.

See Also:
Constant Field Values

EVENT_DNS_CHANGE

public static final int EVENT_DNS_CHANGE
A change in dns configuration has occurred.

See Also:
Constant Field Values
Constructor Detail

SystemActivityEvent

public SystemActivityEvent(Object source,
                           int eventID)
Constructs a prototypical Event.

Parameters:
source - The object on which the Event initially occurred.
eventID - the type of the event.
Throws:
IllegalArgumentException - if source is null.
Method Detail

getEventID

public int getEventID()
Returns the type of the event.

Returns:
the event ID

toString

public String toString()
Returns a String representation of this SystemActivityEvent object.

Overrides:
toString in class EventObject
Returns:
A a String representation of this SystemActivityEvent object.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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