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

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

class DeleteJobJBridge : public KIO::DeleteJob
{
public:
	DeleteJobJBridge(const KURL::List& arg1,bool arg2,bool arg3) : KIO::DeleteJob(arg1,arg2,arg3) {};
	void protected_slotStart() {
		KIO::DeleteJob::slotStart();
		return;
	}
	void protected_slotResult(KIO::Job* arg1) {
		KIO::DeleteJob::slotResult(arg1);
		return;
	}
	void protected_slotProcessedSize(KIO::Job* arg1,KIO::filesize_t arg2) {
		KIO::DeleteJob::slotProcessedSize(arg1,arg2);
		return;
	}
	void protected_slotReport() {
		KIO::DeleteJob::slotReport();
		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")) {
			DeleteJob::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.DeleteJob",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_DeleteJob_newDeleteJob(JNIEnv* env, jobject obj, jobjectArray src, jboolean shred, jboolean showProgressInfo)
{
static KURL::List* _qlist_src = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new DeleteJobJBridge((const KURL::List&)*(KURL::List*) KDESupport::toKURLList(env, src, &_qlist_src), (bool) shred, (bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DeleteJob_slotProcessedSize(JNIEnv* env, jobject obj, jobject arg1, jlong data_size)
{
	((DeleteJobJBridge*) QtSupport::getQt(env, obj))->protected_slotProcessedSize((KIO::Job*) QtSupport::getQt(env, arg1), (KIO::filesize_t) data_size);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DeleteJob_slotReport(JNIEnv* env, jobject obj)
{
	((DeleteJobJBridge*) QtSupport::getQt(env, obj))->protected_slotReport();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_DeleteJob_slotStart(JNIEnv* env, jobject obj)
{
	((DeleteJobJBridge*) QtSupport::getQt(env, obj))->protected_slotStart();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DeleteJob_urls(JNIEnv* env, jobject obj)
{
	KURL::List  _qlist;
	_qlist = ((KIO::DeleteJob*) QtSupport::getQt(env, obj))->urls();
	return (jobject) KDESupport::arrayWithKURLList(env, (KURL::List*) &_qlist);
}

