//Auto-generated by kalyptus. DO NOT EDIT.
#include <kcpuinfo.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KCPUInfo.h>

class KCPUInfoJBridge : public KCPUInfo
{
public:
	KCPUInfoJBridge() : KCPUInfo() {};
	~KCPUInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KCPUInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KCPUInfo_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCPUInfo_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KCPUInfo*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCPUInfo_haveExtension(JNIEnv* env, jclass cls, jint extension)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KCPUInfoJBridge::haveExtension((unsigned int) extension);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCPUInfo_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCPUInfo_newKCPUInfo(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCPUInfoJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

