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

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

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

JNIEXPORT jint JNICALL
Java_org_kde_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_kde_koala_KKeySequence_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KKeySequence*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeySequence_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KKeySequence_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KKeySequence_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_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.kde.koala.KKey");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KKeySequence_newKKeySequence__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring keySeq)
{
static QString* _qstring_keySeq = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeySequenceJBridge((const QString&)*(QString*) QtSupport::toQString(env, keySeq, &_qstring_keySeq)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KKeySequence_newKKeySequence__Lorg_kde_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_kde_koala_KKeySequence_newKKeySequence__Lorg_kde_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_kde_koala_KKeySequence_newKKeySequence__Lorg_kde_qt_QKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KKeySequenceJBridge((const QKeySequence&)*(const QKeySequence*) QtSupport::getQt(env, keySeq)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_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_kde_koala_KKeySequence_qt(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QKeySequence(((KKeySequence*) QtSupport::getQt(env, obj))->qt()), "org.kde.qt.QKeySequence", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_koala_KKeySequence_toStringInternal(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KKeySequence*) QtSupport::getQt(env, obj))->toStringInternal();
	return QtSupport::fromQString(env, &_qstring);
}

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

