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

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

class KKeyJBridge : public KKey
{
public:
	KKeyJBridge() : KKey() {};
	KKeyJBridge(int arg1) : KKey(arg1) {};
	KKeyJBridge(const QKeySequence& arg1) : KKey(arg1) {};
	KKeyJBridge(const QKeyEvent* arg1) : KKey(arg1) {};
	KKeyJBridge(const KKey& arg1) : KKey(arg1) {};
	KKeyJBridge(const QString& arg1) : KKey(arg1) {};
	KKeyJBridge(uint arg1,uint arg2) : KKey(arg1,arg2) {};
	~KKeyJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKey_compare(JNIEnv* env, jobject obj, jobject key)
{
	jint xret = (jint) ((KKey*) QtSupport::getQt(env, obj))->compare((const KKey&)*(const KKey*) QtSupport::getQt(env, key));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KKey_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKey_init__I(JNIEnv* env, jobject obj, jint keyQt)
{
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((int) keyQt);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKey_init__II(JNIEnv* env, jobject obj, jint key, jint mod)
{
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((uint) key, (uint) mod);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKey_init__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KKey_init__Lorg_kde_qt_QKeyEvent_2(JNIEnv* env, jobject obj, jobject keyEvent)
{
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((const QKeyEvent*) QtSupport::getQt(env, keyEvent));
	return xret;
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KKey_modFlagLabel(JNIEnv* env, jclass cls, jint f)
{
	QString  _qstring;
	(void) cls;
	_qstring = KKeyJBridge::modFlagLabel((KKey::ModFlag) f);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KKey_modFlags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKey*) QtSupport::getQt(env, obj))->modFlags();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_newKKey__I(JNIEnv* env, jobject obj, jint keyQt)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((int) keyQt));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_newKKey__II(JNIEnv* env, jobject obj, jint key, jint mod)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((uint) key, (uint) mod));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_newKKey__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static QString* _qstring_key = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_newKKey__Lorg_kde_qt_QKeyEvent_2(JNIEnv* env, jobject obj, jobject keyEvent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((const QKeyEvent*) QtSupport::getQt(env, keyEvent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_newKKey__Lorg_kde_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((const QKeySequence&)*(const QKeySequence*) QtSupport::getQt(env, keySeq)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KKey_simplify(JNIEnv* env, jobject obj)
{
	((KKey*) QtSupport::getQt(env, obj))->simplify();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KKey_toStringInternal(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KKey*) QtSupport::getQt(env, obj))->toStringInternal();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KKey_toString(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KKey*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromQString(env, &_qstring);
}

