//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/jobclasses.h>
#include <kio/global.h>
#include <qstring.h>
#include <qstringlist.h>

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Job_detailedErrorStrings__(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Job_detailedErrorStrings__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject reqUrl)
{
	QStringList  _qlist;
	_qlist = ((KIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings((const KURL*) QtSupport::getQt(env, reqUrl));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Job_detailedErrorStrings__Lorg_kde_koala_KURL_2I(JNIEnv* env, jobject obj, jobject reqUrl, jint method)
{
	QStringList  _qlist;
	_qlist = ((KIO::Job*) QtSupport::getQt(env, obj))->detailedErrorStrings((const KURL*) QtSupport::getQt(env, reqUrl), (int) method);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Job_errorString(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Job*) QtSupport::getQt(env, obj))->errorString();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Job_errorText(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Job*) QtSupport::getQt(env, obj))->errorText();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_Job_parentJob(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KIO::Job*) QtSupport::getQt(env, obj))->parentJob(), "org.kde.koala.Job");
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Job_queryMetaData(JNIEnv* env, jobject obj, jstring key)
{
	QString  _qstring;
static QString* _qstring_key = 0;
	_qstring = ((KIO::Job*) QtSupport::getQt(env, obj))->queryMetaData((const QString&)*(QString*) QtSupport::toQString(env, key, &_qstring_key));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Job_setWindow(JNIEnv* env, jobject obj, jobject window)
{
	((KIO::Job*) QtSupport::getQt(env, obj))->setWindow((QWidget*) QtSupport::getQt(env, window));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Job_showErrorDialog__Lorg_kde_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parent)
{
	((KIO::Job*) QtSupport::getQt(env, obj))->showErrorDialog((QWidget*) QtSupport::getQt(env, parent));
	return;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Job_window(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KIO::Job*) QtSupport::getQt(env, obj))->window(), "org.kde.qt.QWidget");
	return xret;
}

