//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/KKeySequence.h>

class KKeySequenceJBridge : public KKeySequence
{
public:
	KKeySequenceJBridge() : KKeySequence() {};
	KKeySequenceJBridge(const TQKeySequence& arg1) : KKeySequence(arg1) {};
	KKeySequenceJBridge(const KKey& arg1) : KKeySequence(arg1) {};
	KKeySequenceJBridge(const KKeySequence& arg1) : KKeySequence(arg1) {};
	KKeySequenceJBridge(const TQString& arg1) : KKeySequence(arg1) {};
	~KKeySequenceJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KKeySequence_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeySequence*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KKeySequence_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KKeySequence_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KKeySequence_isTriggerOnRelease(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KKeySequence*) QtSupport::getQt(env, obj))->isTriggerOnRelease();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KKeySequence_key(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KKey *) &((KKeySequence*) QtSupport::getQt(env, obj))->key((uint) i), "org.trinitydesktop.koala.KKey");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KKeySequence_newKKeySequence__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring keySeq)
{
static TQString* _qstring_keySeq = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeySequenceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, keySeq, &_qstring_keySeq)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KKeySequence_qt(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQKeySequence(((KKeySequence*) QtSupport::getQt(env, obj))->qt()), "org.trinitydesktop.qt.TQKeySequence", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KKeySequence_setKey(JNIEnv* env, jobject obj, jint i, jobject key)
{
	jboolean xret = (jboolean) ((KKeySequence*) QtSupport::getQt(env, obj))->setKey((uint) i, (const KKey&)*(const KKey*) QtSupport::getQt(env, key));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KKeySequence_startsWith(JNIEnv* env, jobject obj, jobject keySeq)
{
	jboolean xret = (jboolean) ((KKeySequence*) QtSupport::getQt(env, obj))->startsWith((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
	return xret;
}

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

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

