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: 2596 $ Last update : $Date: 2009-06-14 11:23:43 +0200 (dim. 14 juin 2009) $ By : $Author: echatellier $
Author:
chatellier

Field Summary
protected  Kernel32 k32Instance
           
protected  User32.LASTINPUTINFO lastInputInfo
           
protected  User32 u32Instance
           
 
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

k32Instance

protected Kernel32 k32Instance

u32Instance

protected User32 u32Instance

lastInputInfo

protected User32.LASTINPUTINFO 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-2009 CodeLutin. All Rights Reserved.