//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/jobclasses.h>
#include <tdeio/global.h>
#include <tqstring.h>
#include <kurl.h>
#include <tqcstring.h>

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

class MultiGetJobJBridge : public TDEIO::MultiGetJob
{
public:
	MultiGetJobJBridge(const KURL& arg1,bool arg2) : TDEIO::MultiGetJob(arg1,arg2) {};
	void protected_slotRedirection(const KURL& arg1) {
		TDEIO::MultiGetJob::slotRedirection(arg1);
		return;
	}
	void protected_slotFinished() {
		TDEIO::MultiGetJob::slotFinished();
		return;
	}
	void protected_slotData(const TQByteArray& arg1) {
		TDEIO::MultiGetJob::slotData(arg1);
		return;
	}
	void protected_slotMimetype(const TQString& arg1) {
		TDEIO::MultiGetJob::slotMimetype(arg1);
		return;
	}
	void slotRedirection(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"slotRedirection",(void*)&arg1,"org.trinitydesktop.koala.KURL")) {
			MultiGetJob::slotRedirection(arg1);
		}
		return;
	}
	void slotNeedSubURLData() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.MultiGetJob","slotNeedSubURLData")) {
			TransferJob::slotNeedSubURLData();
		}
		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 slotFinished() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.MultiGetJob","slotFinished")) {
			MultiGetJob::slotFinished();
		}
		return;
	}
	void slotResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			TransferJob::slotResult(arg1);
		}
		return;
	}
	void start(TDEIO::Slave* arg1) {
		if (!QtSupport::eventDelegate(this,"start",(void*)arg1,"org.trinitydesktop.koala.Slave")) {
			MultiGetJob::start(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void slotDataReq() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.MultiGetJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.MultiGetJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.MultiGetJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_newMultiGetJob(JNIEnv* env, jobject obj, jobject url, jboolean showProgressInfo)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new MultiGetJobJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_slotData(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	((MultiGetJobJBridge*) QtSupport::getQt(env, obj))->protected_slotData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_slotFinished(JNIEnv* env, jobject obj)
{
	((MultiGetJobJBridge*) QtSupport::getQt(env, obj))->protected_slotFinished();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_slotMimetype(JNIEnv* env, jobject obj, jstring mimetype)
{
static TQString* _qstring_mimetype = 0;
	((MultiGetJobJBridge*) QtSupport::getQt(env, obj))->protected_slotMimetype((const TQString&)*(TQString*) QtSupport::toTQString(env, mimetype, &_qstring_mimetype));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_slotRedirection(JNIEnv* env, jobject obj, jobject url)
{
	((MultiGetJobJBridge*) QtSupport::getQt(env, obj))->protected_slotRedirection((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MultiGetJob_start(JNIEnv* env, jobject obj, jobject slave)
{
	((TDEIO::MultiGetJob*) QtSupport::getQt(env, obj))->start((TDEIO::Slave*) QtSupport::getQt(env, slave));
	return;
}

