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

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

class TQEventJBridge : public TQEvent
{
public:
	TQEventJBridge(TQEvent::Type arg1) : TQEvent(arg1) {};
	~TQEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QEvent_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QEvent_newTQEvent(JNIEnv* env, jobject obj, jint type)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQEventJBridge((TQEvent::Type) type));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QEvent_spontaneous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQEvent*) QtSupport::getQt(env, obj))->spontaneous();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QEvent_type(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQEvent*) QtSupport::getQt(env, obj))->type();
	return xret;
}

