//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/jobclasses.h>
#include <tdeio/global.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class JobJBridge : public TDEIO::Job
{
public:
	void public_kill() {
		TDEIO::Job::kill();
		return;
	}
	JobJBridge(bool arg1) : TDEIO::Job(arg1) {};
	void protected_addSubjob(TDEIO::Job* arg1,bool arg2) {
		TDEIO::Job::addSubjob(arg1,arg2);
		return;
	}
	void protected_addSubjob(TDEIO::Job* arg1) {
		TDEIO::Job::addSubjob(arg1);
		return;
	}
	void protected_removeSubjob(TDEIO::Job* arg1) {
		TDEIO::Job::removeSubjob(arg1);
		return;
	}
	void protected_removeSubjob(TDEIO::Job* arg1,bool arg2,bool arg3) {
		TDEIO::Job::removeSubjob(arg1,arg2,arg3);
		return;
	}
	void protected_emitPercent(TDEIO::filesize_t arg1,TDEIO::filesize_t arg2) {
		TDEIO::Job::emitPercent(arg1,arg2);
		return;
	}
	void protected_emitSpeed(unsigned long arg1) {
		TDEIO::Job::emitSpeed(arg1);
		return;
	}
	void protected_emitResult() {
		TDEIO::Job::emitResult();
		return;
	}
	void protected_setProcessedSize(TDEIO::filesize_t arg1) {
		TDEIO::Job::setProcessedSize(arg1);
		return;
	}
	int& protected_extraFlags() {
		return (int&) TDEIO::Job::extraFlags();
	}
	void protected_slotResult(TDEIO::Job* arg1) {
		TDEIO::Job::slotResult(arg1);
		return;
	}
	void protected_slotSpeed(TDEIO::Job* arg1,unsigned long arg2) {
		TDEIO::Job::slotSpeed(arg1,arg2);
		return;
	}
	void protected_slotInfoMessage(TDEIO::Job* arg1,const TQString& arg2) {
		TDEIO::Job::slotInfoMessage(arg1,arg2);
		return;
	}
	void protected_slotSpeedTimeout() {
		TDEIO::Job::slotSpeedTimeout();
		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 slotResult(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			Job::slotResult(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.Job",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_addMetaData(JNIEnv* env, jobject obj, jstring key, jstring value)
{
static TQString* _qstring_key = 0;
static TQString* _qstring_value = 0;
	((TDEIO::Job*) QtSupport::getQt(env, obj))->addMetaData((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key), (const TQString&)*(TQString*) QtSupport::toTQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_addSubjob__Lorg_trinitydesktop_koala_Job_2(JNIEnv* env, jobject obj, jobject job)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_addSubjob((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_addSubjob__Lorg_trinitydesktop_koala_Job_2Z(JNIEnv* env, jobject obj, jobject job, jboolean inheritMetaData)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_addSubjob((TDEIO::Job*) QtSupport::getQt(env, job), (bool) inheritMetaData);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Job_detailedErrorStrings__(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDEIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Job_detailedErrorStrings__Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jobject obj, jobject reqUrl)
{
	TQStringList  _qlist;
	_qlist = ((TDEIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings((const KURL*) QtSupport::getQt(env, reqUrl));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Job_detailedErrorStrings__Lorg_trinitydesktop_koala_KURL_2I(JNIEnv* env, jobject obj, jobject reqUrl, jint method)
{
	TQStringList  _qlist;
	_qlist = ((TDEIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings((const KURL*) QtSupport::getQt(env, reqUrl), (int) method);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_emitPercent(JNIEnv* env, jobject obj, jlong processedSize, jlong totalSize)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_emitPercent((TDEIO::filesize_t) processedSize, (TDEIO::filesize_t) totalSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_emitResult(JNIEnv* env, jobject obj)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_emitResult();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Job_errorString(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Job*) QtSupport::getQt(env, obj))->errorString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Job_errorText(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Job*) QtSupport::getQt(env, obj))->errorText();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Job_error(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::Job*) QtSupport::getQt(env, obj))->error();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Job_extraFlags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((JobJBridge*) QtSupport::getQt(env, obj))->protected_extraFlags();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_Job_getProcessedSize(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TDEIO::Job*) QtSupport::getQt(env, obj))->getProcessedSize();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Job_isAutoErrorHandlingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Job*) QtSupport::getQt(env, obj))->isAutoErrorHandlingEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Job_isAutoWarningHandlingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Job*) QtSupport::getQt(env, obj))->isAutoWarningHandlingEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Job_isInteractive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Job*) QtSupport::getQt(env, obj))->isInteractive();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_newJob(JNIEnv* env, jobject obj, jboolean showProgressInfo)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new JobJBridge((bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Job_progressId(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::Job*) QtSupport::getQt(env, obj))->progressId();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Job_queryMetaData(JNIEnv* env, jobject obj, jstring key)
{
	TQString  _qstring;
static TQString* _qstring_key = 0;
	_qstring = ((TDEIO::Job*) QtSupport::getQt(env, obj))->queryMetaData((const TQString&)*(TQString*) QtSupport::toTQString(env, key, &_qstring_key));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_removeSubjob__Lorg_trinitydesktop_koala_Job_2(JNIEnv* env, jobject obj, jobject job)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_removeSubjob((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_removeSubjob__Lorg_trinitydesktop_koala_Job_2ZZ(JNIEnv* env, jobject obj, jobject job, jboolean mergeMetaData, jboolean emitResultIfLast)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_removeSubjob((TDEIO::Job*) QtSupport::getQt(env, job), (bool) mergeMetaData, (bool) emitResultIfLast);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setAutoErrorHandlingEnabled__Z(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setAutoErrorHandlingEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setAutoErrorHandlingEnabled__ZLorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jboolean enable, jobject parentWidget)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setAutoErrorHandlingEnabled((bool) enable, (TQWidget*) QtSupport::getQt(env, parentWidget));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setAutoWarningHandlingEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setAutoWarningHandlingEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setInteractive(JNIEnv* env, jobject obj, jboolean enable)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setInteractive((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setParentJob(JNIEnv* env, jobject obj, jobject parentJob)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setParentJob((TDEIO::Job*) QtSupport::getQt(env, parentJob));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setProcessedSize(JNIEnv* env, jobject obj, jlong size)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_setProcessedSize((TDEIO::filesize_t) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_setWindow(JNIEnv* env, jobject obj, jobject window)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->setWindow((TQWidget*) QtSupport::getQt(env, window));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_showErrorDialog__(JNIEnv* env, jobject obj)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->showErrorDialog();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_showErrorDialog__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parent)
{
	((TDEIO::Job*) QtSupport::getQt(env, obj))->showErrorDialog((TQWidget*) QtSupport::getQt(env, parent));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_slotInfoMessage(JNIEnv* env, jobject obj, jobject job, jstring msg)
{
static TQString* _qstring_msg = 0;
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_slotInfoMessage((TDEIO::Job*) QtSupport::getQt(env, job), (const TQString&)*(TQString*) QtSupport::toTQString(env, msg, &_qstring_msg));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_slotResult(JNIEnv* env, jobject obj, jobject job)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_slotResult((TDEIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_slotSpeedTimeout(JNIEnv* env, jobject obj)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_slotSpeedTimeout();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Job_slotSpeed(JNIEnv* env, jobject obj, jobject job, jlong speed)
{
	((JobJBridge*) QtSupport::getQt(env, obj))->protected_slotSpeed((TDEIO::Job*) QtSupport::getQt(env, job), (unsigned long) speed);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Job_window(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEIO::Job*) QtSupport::getQt(env, obj))->window(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

