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

class KShortcutJBridge : public KShortcut
{
public:
	KShortcutJBridge() : KShortcut() {};
	KShortcutJBridge(int arg1) : KShortcut(arg1) {};
	KShortcutJBridge(const QKeySequence& arg1) : KShortcut(arg1) {};
	KShortcutJBridge(const KKey& arg1) : KShortcut(arg1) {};
	KShortcutJBridge(const KKeySequence& arg1) : KShortcut(arg1) {};
	KShortcutJBridge(const KShortcut& arg1) : KShortcut(arg1) {};
	KShortcutJBridge(const char* arg1) : KShortcut(arg1) {};
	~KShortcutJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_append__Lorg_kde_koala_KKey_2(JNIEnv* env, jobject obj, jobject spec)
{
	jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->append((const KKey&)*(const KKey*) QtSupport::getQt(env, spec));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_append__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject cut)
{
	jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->append((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, cut));
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KShortcut_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_init__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring shortcut)
{
static QString* _qstring_shortcut = 0;
	jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->init((const QString&)*(QString*) QtSupport::toQString(env, shortcut, &_qstring_shortcut));
	return xret;
}

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring shortcut)
{
static QCString* _qstring_shortcut = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KShortcutJBridge((const char*) QtSupport::toCharString(env, shortcut, &_qstring_shortcut)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_newKShortcut__Lorg_kde_koala_KShortcut_2(JNIEnv* env, jobject obj, jobject shortcut)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KShortcutJBridge((const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KShortcut_remove(JNIEnv* env, jobject obj, jobject keySeq)
{
	((KShortcut*) QtSupport::getQt(env, obj))->remove((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcut_setSeq(JNIEnv* env, jobject obj, jint i, jobject keySeq)
{
	jboolean xret = (jboolean) ((KShortcut*) QtSupport::getQt(env, obj))->setSeq((uint) i, (const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
	return xret;
}

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

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

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

