//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/jobclasses.h>
#include <kio/global.h>
#include <qstring.h>
#include <kurl.h>
#include <qcstring.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 QByteArray& arg3,const QByteArray& 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 QByteArray& arg1) {
		KIO::TransferJob::slotData(arg1);
		return;
	}
	void protected_slotDataReq() {
		KIO::TransferJob::slotDataReq();
		return;
	}
	void protected_slotMimetype(const QString& arg1) {
		KIO::TransferJob::slotMimetype(arg1);
		return;
	}
	void protected_slotNeedSubURLData() {
		KIO::TransferJob::slotNeedSubURLData();
		return;
	}
	void protected_slotSubURLData(KIO::Job* arg1,const QByteArray& 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(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 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(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void slotDataReq() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.TransferJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.TransferJob",object,event)) {
			return QObject::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.QMetaObject");
	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 QByteArray* _qbyteArray_packedArgs = 0;
static QByteArray* _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 QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, packedArgs, &_qbyteArray_packedArgs), (const QByteArray&)*(QByteArray*) 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 QByteArray* _qbyteArray_data = 0;
	((KIO::TransferJob*) QtSupport::getQt(env, obj))->sendAsyncData((const QByteArray&)*(QByteArray*) 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 QByteArray* _qbyteArray_data = 0;
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotData((const QByteArray&)*(QByteArray*) 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 QString* _qstring_mimetype = 0;
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotMimetype((const QString&)*(QString*) 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 QByteArray* _qbyteArray_arg2 = 0;
	((TransferJobJBridge*) QtSupport::getQt(env, obj))->protected_slotSubURLData((KIO::Job*) QtSupport::getQt(env, arg1), (const QByteArray&)*(QByteArray*) 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;
}

