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

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

class StoredTransferJobJBridge : public TDEIO::StoredTransferJob
{
public:
	StoredTransferJobJBridge(const KURL& arg1,int arg2,const TQByteArray& arg3,const TQByteArray& arg4,bool arg5) : TDEIO::StoredTransferJob(arg1,arg2,arg3,arg4,arg5) {};
	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.StoredTransferJob","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.StoredTransferJob","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.StoredTransferJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.StoredTransferJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.StoredTransferJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_koala_StoredTransferJob_data(JNIEnv* env, jobject obj)
{
	TQByteArray _qbyteArray;
	_qbyteArray = ((TDEIO::StoredTransferJob*) QtSupport::getQt(env, obj))->data();
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_StoredTransferJob_newStoredTransferJob(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 StoredTransferJobJBridge((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 void JNICALL
Java_org_trinitydesktop_koala_StoredTransferJob_setData(JNIEnv* env, jobject obj, jbyteArray arr)
{
static TQByteArray* _qbyteArray_arr = 0;
	((TDEIO::StoredTransferJob*) QtSupport::getQt(env, obj))->setData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, arr, &_qbyteArray_arr));
	return;
}

