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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFocusEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QFocusEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFocusEvent_setReason(JNIEnv* env, jclass cls, jint reason)
{
	(void) cls;
	(void) env;
	QFocusEventJBridge::setReason((QFocusEvent::Reason) reason);
	return;
}

