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

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

class QMoveEventJBridge : public QMoveEvent
{
public:
	QMoveEventJBridge(const QPoint& arg1,const QPoint& arg2) : QMoveEvent(arg1,arg2) {};
	~QMoveEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QMoveEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMoveEvent_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMoveEvent_newQMoveEvent(JNIEnv* env, jobject obj, jobject pos, jobject oldPos)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QMoveEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, oldPos)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMoveEvent_oldPos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QMoveEvent*) QtSupport::getQt(env, obj))->oldPos(), "org.kde.qt.QPoint");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMoveEvent_pos(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QMoveEvent*) QtSupport::getQt(env, obj))->pos(), "org.kde.qt.QPoint");
	return xret;
}

