summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java b/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java
new file mode 100644
index 00000000..eadfd85e
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/KCPUInfo.java
@@ -0,0 +1,51 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.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();
+}