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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KMimeTypeResolverHelper.h>

class KMimeTypeResolverHelperJBridge : public KMimeTypeResolverHelper
{
public:
	KMimeTypeResolverHelperJBridge(KMimeTypeResolverBase* arg1,QScrollView* arg2) : KMimeTypeResolverHelper(arg1,arg2) {};
	bool protected_eventFilter(QObject* arg1,QEvent* arg2) {
		return (bool) KMimeTypeResolverHelper::eventFilter(arg1,arg2);
	}
	~KMimeTypeResolverHelperJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KMimeTypeResolverHelper",object,event)) {
			return KMimeTypeResolverHelper::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KMimeTypeResolverHelper_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KMimeTypeResolverHelper_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KMimeTypeResolverHelper_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_kde_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), (QScrollView*) QtSupport::getQt(env, view)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

