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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KMimeTypeResolverHelper.h>

class KMimeTypeResolverHelperJBridge : public KMimeTypeResolverHelper
{
public:
	KMimeTypeResolverHelperJBridge(KMimeTypeResolverBase* arg1,TQScrollView* arg2) : KMimeTypeResolverHelper(arg1,arg2) {};
	bool protected_eventFilter(TQObject* arg1,TQEvent* arg2) {
		return (bool) KMimeTypeResolverHelper::eventFilter(arg1,arg2);
	}
	~KMimeTypeResolverHelperJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KMimeTypeResolverHelper",object,event)) {
			return KMimeTypeResolverHelper::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KMimeTypeResolverHelper*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_eventFilter(JNIEnv* env, jobject obj, jobject o, jobject e)
{
	jboolean xret = (jboolean) ((KMimeTypeResolverHelperJBridge*) QtSupport::getQt(env, obj))->protected_eventFilter((TQObject*) QtSupport::getQt(env, o), (TQEvent*) QtSupport::getQt(env, e));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KMimeTypeResolverHelper*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KMimeTypeResolverHelper*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KMimeTypeResolverHelper*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_newKMimeTypeResolverHelper(JNIEnv* env, jobject obj, jobject resolver, jobject view)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KMimeTypeResolverHelperJBridge((KMimeTypeResolverBase*) QtSupport::getQt(env, resolver), (TQScrollView*) QtSupport::getQt(env, view)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KMimeTypeResolverHelper_start(JNIEnv* env, jobject obj, jint delay, jboolean singleShot)
{
	((KMimeTypeResolverHelper*) QtSupport::getQt(env, obj))->start((int) delay, (bool) singleShot);
	return;
}

