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

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

class TQTimerEventJBridge : public TQTimerEvent
{
public:
	TQTimerEventJBridge(int arg1) : TQTimerEvent(arg1) {};
	~TQTimerEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QTimerEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QTimerEvent_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QTimerEvent_timerId(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTimerEvent*) QtSupport::getQt(env, obj))->timerId();
	return xret;
}

