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

#include <qtjava/QtSupport.h>
#include <qtjava/TQKeySequence.h>

class TQKeySequenceJBridge : public TQKeySequence
{
public:
	TQKeySequenceJBridge() : TQKeySequence() {};
	TQKeySequenceJBridge(const TQString& arg1) : TQKeySequence(arg1) {};
	TQKeySequenceJBridge(int arg1) : TQKeySequence(arg1) {};
	TQKeySequenceJBridge(int arg1,int arg2,int arg3,int arg4) : TQKeySequence(arg1,arg2,arg3,arg4) {};
	TQKeySequenceJBridge(int arg1,int arg2,int arg3) : TQKeySequence(arg1,arg2,arg3) {};
	TQKeySequenceJBridge(int arg1,int arg2) : TQKeySequence(arg1,arg2) {};
	TQKeySequenceJBridge(const TQKeySequence& arg1) : TQKeySequence(arg1) {};
	~TQKeySequenceJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeySequence_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QKeySequence_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QKeySequence_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQKeySequence*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeySequence_matches(JNIEnv* env, jobject obj, jobject arg1)
{
	jint xret = (jint) ((TQKeySequence*) QtSupport::getQt(env, obj))->matches((const TQKeySequence&)*(const TQKeySequence*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeySequence_newTQKeySequence__II(JNIEnv* env, jobject obj, jint k1, jint k2)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeySequenceJBridge((int) k1, (int) k2));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeySequence_newTQKeySequence__III(JNIEnv* env, jobject obj, jint k1, jint k2, jint k3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeySequenceJBridge((int) k1, (int) k2, (int) k3));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeySequence_newTQKeySequence__IIII(JNIEnv* env, jobject obj, jint k1, jint k2, jint k3, jint k4)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeySequenceJBridge((int) k1, (int) k2, (int) k3, (int) k4));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeySequence_newTQKeySequence__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 TQKeySequenceJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeySequence_op_1at(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQKeySequence*) QtSupport::getQt(env, obj))->operator[]((uint) arg1);
	return xret;
}

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

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

