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

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

class QEventJBridge : public QEvent
{
public:
	QEventJBridge(QEvent::Type arg1) : QEvent(arg1) {};
	~QEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

