//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qevent.h>
#include <qnamespace.h>

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

class QKeyEventJBridge : public QKeyEvent
{
public:
	QKeyEventJBridge(QEvent::Type arg1,int arg2,int arg3,int arg4,const QString& arg5,bool arg6,ushort arg7) : QKeyEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	QKeyEventJBridge(QEvent::Type arg1,int arg2,int arg3,int arg4,const QString& arg5,bool arg6) : QKeyEvent(arg1,arg2,arg3,arg4,arg5,arg6) {};
	QKeyEventJBridge(QEvent::Type arg1,int arg2,int arg3,int arg4,const QString& arg5) : QKeyEvent(arg1,arg2,arg3,arg4,arg5) {};
	QKeyEventJBridge(QEvent::Type arg1,int arg2,int arg3,int arg4) : QKeyEvent(arg1,arg2,arg3,arg4) {};
	~QKeyEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QKeyEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QKeyEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QKeyEvent_newQKeyEvent__IIIILjava_lang_String_2(JNIEnv* env, jobject obj, jint type, jint key, jint ascii, jint state, jstring text)
{
static QString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QKeyEventJBridge((QEvent::Type) type, (int) key, (int) ascii, (int) state, (const QString&)*(QString*) QtSupport::toQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

