org.chorem.jtimer.ui.system.win32
Class Win32SystemInfo

java.lang.Object
  extended by org.chorem.jtimer.ui.system.win32.Win32SystemInfo
All Implemented Interfaces:
SystemInfo

public class Win32SystemInfo
extends Object
implements SystemInfo

Win32 System info. From http://ochafik.free.fr/blog/?p=98

Version:
$Revision: 2719 $ Last update : $Date: 2010-01-13 16:17:45 +0100 (mer., 13 janv. 2010) $ By : $Author: tchemit $
Author:
chatellier

Field Summary
protected  User32.LASTINPUTINFO lastInputInfo
          User32.LASTINPUTINFO.
 
Constructor Summary
Win32SystemInfo()
          Constructor.
 
Method Summary
 long getIdleTime()
          Get system idle time in milliseconds.
 int getIdleTimeMillisWin32()
          Get the amount of milliseconds that have elapsed since the last input event (mouse or keyboard)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastInputInfo

protected User32.LASTINPUTINFO lastInputInfo
User32.LASTINPUTINFO.

Constructor Detail

Win32SystemInfo

public Win32SystemInfo()
Constructor. Package visibility

Method Detail

getIdleTimeMillisWin32

public int getIdleTimeMillisWin32()
Get the amount of milliseconds that have elapsed since the last input event (mouse or keyboard)

Returns:
idle time in milliseconds

getIdleTime

public long getIdleTime()
Description copied from interface: SystemInfo
Get system idle time in milliseconds.

Specified by:
getIdleTime in interface SystemInfo
Returns:
system idle time in milliseconds


Copyright © 2007-2010 CodeLutin. All Rights Reserved.