//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/TransferJob.h>

class TransferJobJBridge : public TDEIO::TransferJob
{
public:
	TransferJobJBridge(const KURL& arg1,int arg2,const TQByteArray& arg3,const TQByteArray& arg4,bool arg5) : TDEIO::TransferJob(arg1,arg2,arg3,arg4,arg5) {};
	void protected_slotRedirection(const KURL& arg1) {
		TDEIO::TransferJob::slotRedirection(arg1);
		return;
	}
	void protected_slotFinished() {
		TDEIO::TransferJob::slotFinished();
		return;
	}
	void protected_slotData(const TQByteArray& arg1) {
		TDEIO::TransferJob::slotData(arg1);
		return;
	}
	void protected_slotDataReq() {
		TDEIO::TransferJob::slotDataReq();
		return;
	}
	void protected_slotMimetype(const TQString& arg1) {
		TDEIO::TransferJob::slotMimetype(arg1);
		return;
	}
	void protected_slotNeedSubURLData() {
		TDEIO::TransferJob::slotNeedSubURLData();
		return;
	}
	void protected_slotSubURLData(TDEIO::Job* arg1,const TQByteArray& arg2) {
		TDEIO::TransferJob::slotSubURLData(arg1,arg2);
		return;
	}
	void protected_slotErrorPage() {
		TDEIO::TransferJob::slotErrorPage();
		return;
	}
	void protected_slotCanResume(TDEIO::filesize_t arg1) {
		TDEIO::TransferJob::slotCanResume(arg1);
		return;
	}
	void protected_slotPostRedirection() {
		TDEIO::TransferJob::slotPostRedirection();
		return;
	}
	void slotRedirection(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"slotRedirection",(void*)&arg1,"org.trinitydesktop.koala.KURL")) {
			TransferJob::slotRedirection(arg1);
		}
		return;
	}
	void slotNeedSubURLData() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TransferJob","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.TransferJob","slotFinished")) {
			TransferJob::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")) {
			TransferJob::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.TransferJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.TransferJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.TransferJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TransferJob_isErrorPage(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->isErrorPage();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TransferJob_isSuspended(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->isSuspended();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_newTransferJob(JNIEnv* env, jobject obj, jobject url, jint command, jbyteArray packedArgs, jbyteArray _staticData, jboolean showProgressInfo)
{
static TQByteArray* _qbyteArray_packedArgs = 0;
static TQByteArray* _qbyteArray__staticData = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TransferJobJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (int) command, (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, packedArgs, &_qbyteArray_packedArgs), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, _staticData, &_qbyteArray__staticData), (bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TransferJob_reportDataSent(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->reportDataSent();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_resume(JNIEnv* env, jobject obj)
{
	((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->resume();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_setAsyncDataEnabled(JNIEnv* env, jobject obj, jboolean enabled)
{
	((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->setAsyncDataEnabled((bool) enabled);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_setReportDataSent(JNIEnv* env, jobject obj, jboolean enabled)
{
	((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->setReportDataSent((bool) enabled);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotCanResume(JNIEnv* env, jobject obj, jlong offset)
{
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotCanResume((TDEIO::filesize_t) offset);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotDataReq(JNIEnv* env, jobject obj)
{
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotDataReq();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotErrorPage(JNIEnv* env, jobject obj)
{
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotErrorPage();
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotNeedSubURLData(JNIEnv* env, jobject obj)
{
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotNeedSubURLData();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotPostRedirection(JNIEnv* env, jobject obj)
{
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotPostRedirection();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotResult(JNIEnv* env, jobject obj, jobject job)
{
	((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->slotResult((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_slotSubURLData(JNIEnv* env, jobject obj, jobject arg1, jbyteArray arg2)
{
static TQByteArray* _qbyteArray_arg2 = 0;
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotSubURLData((TDEIO::Job*) QtSupport::getQt(env, arg1), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, arg2, &_qbyteArray_arg2));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TransferJob_suspend(JNIEnv* env, jobject obj)
{
	((TDEIO::TransferJob*) QtSupport::getQt(env, obj))->suspend();
	return;
}

