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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QFocusEvent_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_gotFocus(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFocusEvent*) QtSupport::getQt(env, obj))->gotFocus();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_lostFocus(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQFocusEvent*) QtSupport::getQt(env, obj))->lostFocus();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_reason(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQFocusEventJBridge::reason();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_resetReason(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQFocusEventJBridge::resetReason();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QFocusEvent_setReason(JNIEnv* env, jclass cls, jint reason)
{
	(void) cls;
	(void) env;
	TQFocusEventJBridge::setReason((TQFocusEvent::Reason) reason);
	return;
}

