Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.sysactivity
Class SystemActivityNotifications

java.lang.Object
  extended by net.java.sip.communicator.impl.sysactivity.SystemActivityNotifications

public class SystemActivityNotifications
extends Object

Author:
Damian Minkov

Nested Class Summary
static class SystemActivityNotifications.NotificationsDelegate
          Delegate class to be notified for changes.
 
Field Summary
static int NOTIFY_DISPLAY_SLEEP
          Computer display has stand by.
static int NOTIFY_DISPLAY_WAKE
          Computer display wakes up after stand by.
static int NOTIFY_DNS_CHANGE
          A change in dns configuration has occurred.
static int NOTIFY_NETWORK_CHANGE
          A change in network configuration has occurred.
static int NOTIFY_SCREEN_LOCKED
          Screen has been locked.
static int NOTIFY_SCREEN_UNLOCKED
          Screen has been unlocked.
static int NOTIFY_SCREENSAVER_START
          Screensaver has been started.
static int NOTIFY_SCREENSAVER_STOP
          Screensaver has been stopped.
static int NOTIFY_SCREENSAVER_WILL_STOP
          Screensaver will stop.
static int NOTIFY_SLEEP
          Notify that computers is going to sleep.
static int NOTIFY_WAKE
          Notify that computer is wakeing up after stand by.
 
Constructor Summary
SystemActivityNotifications()
           
 
Method Summary
static long getLastInput()
          Returns the when was last input in milliseconds.
static boolean isLoaded()
          Whether native library is loaded.
static void setDelegate(long ptr, SystemActivityNotifications.NotificationsDelegate delegate)
          Sets notifier delegate.
static void setDelegate(SystemActivityNotifications.NotificationsDelegate delegate)
          Sets delegate.
static void start()
          Start.
static void stop()
          Stop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFY_SLEEP

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

See Also:
Constant Field Values

NOTIFY_WAKE

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

See Also:
Constant Field Values

NOTIFY_DISPLAY_SLEEP

public static final int NOTIFY_DISPLAY_SLEEP
Computer display has stand by.

See Also:
Constant Field Values

NOTIFY_DISPLAY_WAKE

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

See Also:
Constant Field Values

NOTIFY_SCREENSAVER_START

public static final int NOTIFY_SCREENSAVER_START
Screensaver has been started.

See Also:
Constant Field Values

NOTIFY_SCREENSAVER_WILL_STOP

public static final int NOTIFY_SCREENSAVER_WILL_STOP
Screensaver will stop.

See Also:
Constant Field Values

NOTIFY_SCREENSAVER_STOP

public static final int NOTIFY_SCREENSAVER_STOP
Screensaver has been stopped.

See Also:
Constant Field Values

NOTIFY_SCREEN_LOCKED

public static final int NOTIFY_SCREEN_LOCKED
Screen has been locked.

See Also:
Constant Field Values

NOTIFY_SCREEN_UNLOCKED

public static final int NOTIFY_SCREEN_UNLOCKED
Screen has been unlocked.

See Also:
Constant Field Values

NOTIFY_NETWORK_CHANGE

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

See Also:
Constant Field Values

NOTIFY_DNS_CHANGE

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

See Also:
Constant Field Values
Constructor Detail

SystemActivityNotifications

public SystemActivityNotifications()
Method Detail

setDelegate

public static void setDelegate(SystemActivityNotifications.NotificationsDelegate delegate)
Sets delegate.

Parameters:
delegate -

setDelegate

public static void setDelegate(long ptr,
                               SystemActivityNotifications.NotificationsDelegate delegate)
Sets notifier delegate.

Parameters:
ptr -
delegate -

start

public static void start()
Start.


stop

public static void stop()
Stop.


getLastInput

public static long getLastInput()
Returns the when was last input in milliseconds. The time when there was any activity on the computer.

Returns:
the last input in milliseconds

isLoaded

public static boolean isLoaded()
Whether native library is loaded.

Returns:
whether native library is loaded.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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