From echatellier@users.chorem.org Sun Sep 4 14:09:43 2011 From: echatellier@users.chorem.org To: jtimer-commits@list.chorem.org Subject: [Jtimer-commits] r2776 - trunk/src/main/java/org/chorem/jtimer/ui/system/win32 Date: Sun, 04 Sep 2011 14:09:43 +0200 Message-ID: <20110904120943.3DC871589E@nuiton.codelutin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4482046509450191137==" --===============4482046509450191137== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: echatellier Date: 2011-09-04 14:09:43 +0200 (Sun, 04 Sep 2011) New Revision: 2776 Url: http://chorem.org/repositories/revision/jtimer/2776 Log: Use Win32 code from jna platform artifact. Removed: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.java Deleted: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java 2011-= 09-04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Kernel32.java 2011-= 09-04 12:09:43 UTC (rev 2776) @@ -1,54 +0,0 @@ -/* - * #%L - * jTimer - *=20 - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2007 - 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the=20 - * License, or (at your option) any later version. - *=20 - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - *=20 - * You should have received a copy of the GNU General Public=20 - * License along with this program. If not, see - * . - * #L% - */ - -package org.chorem.jtimer.ui.system.win32; - -import com.sun.jna.Native; -import com.sun.jna.win32.StdCallLibrary; - -/** - * Win kernel32 JNA Interface. - *=20 - * @author chatellier - * @version $Revision$ - *=20 - * Last update : $Date$ - * By : $Author$ - */ -public interface Kernel32 extends StdCallLibrary { - - /** Instance. */ - Kernel32 INSTANCE =3D (Kernel32) Native.loadLibrary("kernel32", Kernel32= .class); - - /** - * Retrieves the number of milliseconds that have elapsed since the syst= em - * was started. - *=20 - * @see "http://msdn2.microsoft.com/en-us/library/ms724408.aspx" - * @return number of milliseconds that have elapsed since the system was - * started. - */ - int GetTickCount(); -} Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java 2011-09= -04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/User32.java 2011-09= -04 12:09:43 UTC (rev 2776) @@ -32,11 +32,12 @@ /** * Win User32 JNA Interface. *=20 + * TODO it not the same code as jna's User32 class. + *=20 * @author chatellier * @version $Revision$ * - * FIXME-TC2010011" : javadoc plugin says there is a missing closing tag ? - * @see Windows API + * @see Windows= API *=20 * Last update : $Date$ * By : $Author$ Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemIn= fo.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.jav= a 2011-09-04 12:04:30 UTC (rev 2775) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/win32/Win32SystemInfo.jav= a 2011-09-04 12:09:43 UTC (rev 2776) @@ -27,6 +27,8 @@ =20 import org.chorem.jtimer.ui.system.SystemInfo; =20 +import com.sun.jna.platform.win32.Kernel32; + /** * Win32 System info. *=20 --===============4482046509450191137==--