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

class TDEShortcutJBridge : public TDEShortcut
{
public:
	TDEShortcutJBridge() : TDEShortcut() {};
	TDEShortcutJBridge(int arg1) : TDEShortcut(arg1) {};
	TDEShortcutJBridge(const TQKeySequence& arg1) : TDEShortcut(arg1) {};
	TDEShortcutJBridge(const KKey& arg1) : TDEShortcut(arg1) {};
	TDEShortcutJBridge(const KKeySequence& arg1) : TDEShortcut(arg1) {};
	TDEShortcutJBridge(const TDEShortcut& arg1) : TDEShortcut(arg1) {};
	TDEShortcutJBridge(const char* arg1) : TDEShortcut(arg1) {};
	~TDEShortcutJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEShortcut_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEShortcut_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEShortcut_init__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring shortcut)
{
static TQString* _qstring_shortcut = 0;
	jboolean xret = (jboolean) ((TDEShortcut*) QtSupport::getQt(env, obj))->init((const TQString&)*(TQString*) QtSupport::toTQString(env, shortcut, &_qstring_shortcut));
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

