//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqkeysequence.h>
#include <tdeshortcut.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KKey.h>

class KKeyJBridge : public KKey
{
public:
	KKeyJBridge() : KKey() {};
	KKeyJBridge(int arg1) : KKey(arg1) {};
	KKeyJBridge(const TQKeySequence& arg1) : KKey(arg1) {};
	KKeyJBridge(const TQKeyEvent* arg1) : KKey(arg1) {};
	KKeyJBridge(const KKey& arg1) : KKey(arg1) {};
	KKeyJBridge(const TQString& arg1) : KKey(arg1) {};
	KKeyJBridge(uint arg1,uint arg2) : KKey(arg1,arg2) {};
	~KKeyJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KKey_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KKey_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KKey_init__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KKey_init__Lorg_trinitydesktop_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_trinitydesktop_koala_KKey_init__Lorg_trinitydesktop_qt_QKeyEvent_2(JNIEnv* env, jobject obj, jobject keyEvent)
{
	jboolean xret = (jboolean) ((KKey*) QtSupport::getQt(env, obj))->init((const TQKeyEvent*) QtSupport::getQt(env, keyEvent));
	return xret;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KKey_newKKey__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
{
static TQString* _qstring_key = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KKey_newKKey__Lorg_trinitydesktop_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_trinitydesktop_koala_KKey_newKKey__Lorg_trinitydesktop_qt_QKeyEvent_2(JNIEnv* env, jobject obj, jobject keyEvent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeyJBridge((const TQKeyEvent*) QtSupport::getQt(env, keyEvent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KKey_simplify(JNIEnv* env, jobject obj)
{
	((KKey*) QtSupport::getQt(env, obj))->simplify();
	return;
}

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

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

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

