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

class SimpleJobJBridge : public TDEIO::SimpleJob
{
public:
	SimpleJobJBridge(const KURL& arg1,int arg2,const TQByteArray& arg3,bool arg4) : TDEIO::SimpleJob(arg1,arg2,arg3,arg4) {};
	void public_kill() {
		TDEIO::SimpleJob::kill();
		return;
	}
	void public_putOnHold() {
		TDEIO::SimpleJob::putOnHold();
		return;
	}
	void protected_storeSSLSessionFromJob(const KURL& arg1) {
		TDEIO::SimpleJob::storeSSLSessionFromJob(arg1);
		return;
	}
	void protected_slotFinished() {
		TDEIO::SimpleJob::slotFinished();
		return;
	}
	void protected_slotWarning(const TQString& arg1) {
		TDEIO::SimpleJob::slotWarning(arg1);
		return;
	}
	void protected_slotInfoMessage(const TQString& arg1) {
		TDEIO::SimpleJob::slotInfoMessage(arg1);
		return;
	}
	void protected_slotConnected() {
		TDEIO::SimpleJob::slotConnected();
		return;
	}
	void protected_slotProcessedSize(TDEIO::filesize_t arg1) {
		TDEIO::SimpleJob::slotProcessedSize(arg1);
		return;
	}
	void protected_slotSpeed(unsigned long arg1) {
		TDEIO::SimpleJob::slotSpeed(arg1);
		return;
	}
	void protected_slotNeedProgressId() {
		TDEIO::SimpleJob::slotNeedProgressId();
		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.SimpleJob","slotFinished")) {
			SimpleJob::slotFinished();
		}
		return;
	}
	void slotResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			Job::slotResult(arg1);
		}
		return;
	}
	void start(TDEIO::Slave* arg1) {
		if (!QtSupport::eventDelegate(this,"start",(void*)arg1,"org.trinitydesktop.koala.Slave")) {
			SimpleJob::start(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.SimpleJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.SimpleJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_SimpleJob_command(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->command();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_kill__(JNIEnv* env, jobject obj)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->public_kill();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_kill__Z(JNIEnv* env, jobject obj, jboolean quietly)
{
	((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->kill((bool) quietly);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_putOnHold(JNIEnv* env, jobject obj)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->public_putOnHold();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_removeOnHold(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	SimpleJobJBridge::removeOnHold();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slaveDone(JNIEnv* env, jobject obj)
{
	((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->slaveDone();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slave(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->slave(), "org.trinitydesktop.koala.Slave");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotConnected(JNIEnv* env, jobject obj)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotConnected();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotError(JNIEnv* env, jobject obj, jint arg1, jstring arg2)
{
static TQString* _qstring_arg2 = 0;
	((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->slotError((int) arg1, (const TQString&)*(TQString*) QtSupport::toTQString(env, arg2, &_qstring_arg2));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotInfoMessage(JNIEnv* env, jobject obj, jstring s)
{
static TQString* _qstring_s = 0;
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotInfoMessage((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotNeedProgressId(JNIEnv* env, jobject obj)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotNeedProgressId();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotProcessedSize(JNIEnv* env, jobject obj, jlong data_size)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotProcessedSize((TDEIO::filesize_t) data_size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotSpeed(JNIEnv* env, jobject obj, jlong speed)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotSpeed((unsigned long) speed);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotTotalSize(JNIEnv* env, jobject obj, jlong data_size)
{
	((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->slotTotalSize((TDEIO::filesize_t) data_size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_slotWarning(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_slotWarning((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_SimpleJob_storeSSLSessionFromJob(JNIEnv* env, jobject obj, jobject m_redirectionURL)
{
	((SimpleJobJBridge*) QtSupport::getQt(env, obj))->protected_storeSSLSessionFromJob((const KURL&)*(const KURL*) QtSupport::getQt(env, m_redirectionURL));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_SimpleJob_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KURL *) &((TDEIO::SimpleJob*) QtSupport::getQt(env, obj))->url(), "org.trinitydesktop.koala.KURL");
	return xret;
}

