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

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

class QChildEventJBridge : public QChildEvent
{
public:
	QChildEventJBridge(QEvent::Type arg1,QObject* arg2) : QChildEvent(arg1,arg2) {};
	~QChildEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QChildEvent_child(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QChildEvent*) QtSupport::getQt(env, obj))->child(), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QChildEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QChildEvent_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QChildEvent_inserted(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QChildEvent*) QtSupport::getQt(env, obj))->inserted();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QChildEvent_removed(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QChildEvent*) QtSupport::getQt(env, obj))->removed();
	return xret;
}

