summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KCPUInfo.java
blob: bfd33d28787f1dd32d40a1764c978c14a5c2872b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 This class provides a means for applications to obtain information at
 runtime about processor support for certain architecture extensions,
 such as MMX, SSE, 3DNow and AltiVec.
		@short    This class provides a means for applications to obtain information at  runtime about processor support for certain architecture extensions,  such as MMX, SSE, 3DNow and AltiVec.

*/
public class KCPUInfo implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KCPUInfo(Class dummy){}

	/**	
		 This enum contains the list of architecture extensions you
		 can query.
		         		@short    This enum contains the list of architecture extensions you  can query.
	*/
	public static final int IntelMMX = 1<<0;
	public static final int IntelSSE = 1<<1;
	public static final int IntelSSE2 = 1<<2;
	public static final int AMD3DNOW = 1<<3;
	public static final int AltiVec = 1<<4;

	public KCPUInfo() {
		newKCPUInfo();
	}
	private native void newKCPUInfo();
	/**	
		 Returns true if the processor supports <code>extension</code>,
		 and false otherwise.
			@param extension the feature to query.
				@return If true, the processor supports <code>extension.</code>

		@short    Returns true if the processor supports <code>extension</code>,  and false otherwise.
		@see Extensions
	*/
	public static native boolean haveExtension(int extension);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}