//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/metainfojob.h>
#include <tdeparts/browserextension.h>
#include <tqstringlist.h>

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

class MetaInfoJobJBridge : public TDEIO::MetaInfoJob
{
public:
	MetaInfoJobJBridge(const KFileItemList& arg1,bool arg2) : TDEIO::MetaInfoJob(arg1,arg2) {};
	MetaInfoJobJBridge(const KFileItemList& arg1) : TDEIO::MetaInfoJob(arg1) {};
	void protected_getMetaInfo() {
		TDEIO::MetaInfoJob::getMetaInfo();
		return;
	}
	void protected_slotResult(TDEIO::Job* arg1) {
		TDEIO::MetaInfoJob::slotResult(arg1);
		return;
	}
	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 slotResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			MetaInfoJob::slotResult(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.MetaInfoJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_availablePlugins(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = MetaInfoJobJBridge::availablePlugins();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_getMetaInfo(JNIEnv* env, jobject obj)
{
	((MetaInfoJobJBridge*) QtSupport::getQt(env, obj))->protected_getMetaInfo();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_newMetaInfoJob__Ljava_util_ArrayList_2(JNIEnv* env, jobject obj, jobjectArray items)
{
static KFileItemList* _qlist_items = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new MetaInfoJobJBridge((const KFileItemList&)*(TQStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_newMetaInfoJob__Ljava_util_ArrayList_2Z(JNIEnv* env, jobject obj, jobjectArray items, jboolean deleteItems)
{
static KFileItemList* _qlist_items = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new MetaInfoJobJBridge((const KFileItemList&)*(TQStrList*) KDESupport::toKFileItemList(env, items, &_qlist_items), (bool) deleteItems));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_removeItem(JNIEnv* env, jobject obj, jobject item)
{
	((TDEIO::MetaInfoJob*) QtSupport::getQt(env, obj))->removeItem((const KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_slotResult(JNIEnv* env, jobject obj, jobject job)
{
	((MetaInfoJobJBridge*) QtSupport::getQt(env, obj))->protected_slotResult((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_MetaInfoJob_supportedMimeTypes(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = MetaInfoJobJBridge::supportedMimeTypes();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

