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

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

class QCustomEventJBridge : public QCustomEvent
{
public:
	QCustomEventJBridge(int arg1) : QCustomEvent(arg1) {};
	~QCustomEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QCustomEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCustomEvent_finalize(env, obj);
	return;
}

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

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

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

