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

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

class TQChildEventJBridge : public TQChildEvent
{
public:
	TQChildEventJBridge(TQEvent::Type arg1,TQObject* arg2) : TQChildEvent(arg1,arg2) {};
	~TQChildEventJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QChildEvent_child(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQChildEvent*) QtSupport::getQt(env, obj))->child(), "org.trinitydesktop.qt.TQObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QChildEvent_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QChildEvent_finalize(env, obj);
	return;
}

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

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

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

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

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

