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

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

class TQKeyEventJBridge : public TQKeyEvent
{
public:
	TQKeyEventJBridge(TQEvent::Type arg1,int arg2,int arg3,int arg4,const TQString& arg5,bool arg6,ushort arg7) : TQKeyEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	TQKeyEventJBridge(TQEvent::Type arg1,int arg2,int arg3,int arg4,const TQString& arg5,bool arg6) : TQKeyEvent(arg1,arg2,arg3,arg4,arg5,arg6) {};
	TQKeyEventJBridge(TQEvent::Type arg1,int arg2,int arg3,int arg4,const TQString& arg5) : TQKeyEvent(arg1,arg2,arg3,arg4,arg5) {};
	TQKeyEventJBridge(TQEvent::Type arg1,int arg2,int arg3,int arg4) : TQKeyEvent(arg1,arg2,arg3,arg4) {};
	~TQKeyEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_accept(JNIEnv* env, jobject obj)
{
	((TQKeyEvent*) QtSupport::getQt(env, obj))->accept();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_ascii(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQKeyEvent*) QtSupport::getQt(env, obj))->ascii();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QKeyEvent_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_ignore(JNIEnv* env, jobject obj)
{
	((TQKeyEvent*) QtSupport::getQt(env, obj))->ignore();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_isAccepted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQKeyEvent*) QtSupport::getQt(env, obj))->isAccepted();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_isAutoRepeat(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQKeyEvent*) QtSupport::getQt(env, obj))->isAutoRepeat();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_key(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQKeyEvent*) QtSupport::getQt(env, obj))->key();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_newTQKeyEvent__IIII(JNIEnv* env, jobject obj, jint type, jint key, jint ascii, jint state)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeyEventJBridge((TQEvent::Type) type, (int) key, (int) ascii, (int) state));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_newTQKeyEvent__IIIILjava_lang_String_2(JNIEnv* env, jobject obj, jint type, jint key, jint ascii, jint state, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeyEventJBridge((TQEvent::Type) type, (int) key, (int) ascii, (int) state, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_newTQKeyEvent__IIIILjava_lang_String_2Z(JNIEnv* env, jobject obj, jint type, jint key, jint ascii, jint state, jstring text, jboolean autorep)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeyEventJBridge((TQEvent::Type) type, (int) key, (int) ascii, (int) state, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (bool) autorep));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_newTQKeyEvent__IIIILjava_lang_String_2ZS(JNIEnv* env, jobject obj, jint type, jint key, jint ascii, jint state, jstring text, jboolean autorep, jshort count)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQKeyEventJBridge((TQEvent::Type) type, (int) key, (int) ascii, (int) state, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (bool) autorep, (ushort) count));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_stateAfter(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQKeyEvent*) QtSupport::getQt(env, obj))->stateAfter();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QKeyEvent_state(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQKeyEvent*) QtSupport::getQt(env, obj))->state();
	return xret;
}

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

