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

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

class KKeyNativeJBridge : public KKeyNative
{
public:
	KKeyNativeJBridge() : KKeyNative() {};
	KKeyNativeJBridge(const KKey& arg1) : KKeyNative(arg1) {};
	KKeyNativeJBridge(uint arg1,uint arg2,uint arg3) : KKeyNative(arg1,arg2,arg3) {};
	~KKeyNativeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeyNative_clear(JNIEnv* env, jobject obj)
{
	((KKeyNative*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKeyNative_code(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeyNative*) QtSupport::getQt(env, obj))->code();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeyNative_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KKeyNative_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKeyNative_init(JNIEnv* env, jobject obj, jobject key)
{
	jboolean xret = (jboolean) ((KKeyNative*) QtSupport::getQt(env, obj))->init((const KKey&)*(const KKey*) QtSupport::getQt(env, key));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKeyNative_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KKeyNative*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKeyNative_keyCodeQt(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeyNative*) QtSupport::getQt(env, obj))->keyCodeQt();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KKeyNative_key(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KKey(((KKeyNative*) QtSupport::getQt(env, obj))->key()), "org.kde.koala.KKey", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKeyNative_keyboardHasWinKey(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KKeyNativeJBridge::keyboardHasWinKey();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKeyNative_mod(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeyNative*) QtSupport::getQt(env, obj))->mod();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeyNative_newKKeyNative__III(JNIEnv* env, jobject obj, jint code, jint mod, jint sym)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyNativeJBridge((uint) code, (uint) mod, (uint) sym));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeyNative_newKKeyNative__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject key)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyNativeJBridge((const KKey&)*(const KKey*) QtSupport::getQt(env, key)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KKeyNative_nil(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KKeyNative *) &KKeyNativeJBridge::null(), "org.kde.koala.KKeyNative");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKeyNative_sym(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeyNative*) QtSupport::getQt(env, obj))->sym();
	return xret;
}

