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

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

class TransferJobJBridge : public KIO::TransferJob
{
public:
	TransferJobJBridge(const KURL& arg1,int arg2,const TQByteArray& arg3,const TQByteArray& arg4,bool arg5) : KIO::TransferJob(arg1,arg2,arg3,arg4,arg5) {};
	void protected_slotRedirection(const KURL& arg1) {
		KIO::TransferJob::slotRedirection(arg1);
		return;
	}
	void protected_slotFinished() {
		KIO::TransferJob::slotFinished();
		return;
	}
	void protected_slotData(const TQByteArray& arg1) {
		KIO::TransferJob::slotData(arg1);
		return;
	}
	void protected_slotDataReq() {
		KIO::TransferJob::slotDataReq();
		return;
	}
	void protected_slotMimetype(const TQString& arg1) {
		KIO::TransferJob::slotMimetype(arg1);
		return;
	}
	void protected_slotNeedSubURLData() {
		KIO::TransferJob::slotNeedSubURLData();
		return;
	}
	void protected_slotSubURLData(KIO::Job* arg1,const TQByteArray& arg2) {
		KIO::TransferJob::slotSubURLData(arg1,arg2);
		return;
	}
	void protected_slotErrorPage() {
		KIO::TransferJob::slotErrorPage();
		return;
	}
	void protected_slotCanResume(KIO::filesize_t arg1) {
		KIO::TransferJob::slotCanResume(arg1);
		return;
	}
	void protected_slotPostRedirection() {
		KIO::TransferJob::slotPostRedirection();
		return;
	}
	void slotRedirection(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"slotRedirection",(void*)&arg1,"org.kde.koala.KURL")) {
			TransferJob::slotRedirection(arg1);
		}
		return;
	}
	void slotNeedSubURLData() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.TransferJob","slotNeedSubURLData")) {
			TransferJob::slotNeedSubURLData();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void slotFinished() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.TransferJob","slotFinished")) {
			TransferJob::slotFinished();
		}
		return;
	}
	void slotResult(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.kde.koala.Job")) {
			TransferJob::slotResult(arg1);
		}
		return;
	}
	void start(KIO::Slave* arg1) {
		if (!QtSupport::eventDelegate(this,"start",(void*)arg1,"org.kde.koala.Slave")) {
			TransferJob::start(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void slotDataReq() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.TransferJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.TransferJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.TransferJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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::toQByteArray(env, packedArgs, &_qbyteArray_packedArgs), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, _staticData, &_qbyteArray__staticData), (bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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::toQString(env, mimetype, &_qstring_mimetype));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_TransferJob_slotResult(JNIEnv* env, jobject obj, jobject job)
{
	((KIO::TransferJob*) QtSupport::getQt(env, obj))->slotResult((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

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

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

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

