//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/davjob.h>
#include <qstring.h>
#include <qdom.h>
#include <kurl.h>
#include <qcstring.h>

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

class DavJobJBridge : public KIO::DavJob
{
public:
	DavJobJBridge(const KURL& arg1,int arg2,const QString& arg3,bool arg4) : KIO::DavJob(arg1,arg2,arg3,arg4) {};
	void protected_slotFinished() {
		KIO::DavJob::slotFinished();
		return;
	}
	void protected_slotData(const QByteArray& arg1) {
		KIO::DavJob::slotData(arg1);
		return;
	}
	void slotRedirection(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"slotRedirection",(void*)&arg1,"org.kde.koala.KURL")) {
			TransferJob::slotRedirection(arg1);
		}
		return;
	}
	void slotNeedSubURLData() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.DavJob","slotNeedSubURLData")) {
			TransferJob::slotNeedSubURLData();
		}
		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 slotFinished() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.DavJob","slotFinished")) {
			DavJob::slotFinished();
		}
		return;
	}
	void slotResult(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"slotResult",(void*)arg1,"org.kde.koala.Job")) {
			TransferJob::slotResult(arg1);
		}
		return;
	}
	void start(KIO::Slave* arg1) {
		if (!QtSupport::eventDelegate(this,"start",(void*)arg1,"org.kde.koala.Slave")) {
			TransferJob::start(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void slotDataReq() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.DavJob","slotDataReq")) {
			TransferJob::slotDataReq();
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.DavJob",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.DavJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_DavJob_newDavJob(JNIEnv* env, jobject obj, jobject url, jint method, jstring request, jboolean showProgressInfo)
{
static QString* _qstring_request = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new DavJobJBridge((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (int) method, (const QString&)*(QString*) QtSupport::toQString(env, request, &_qstring_request), (bool) showProgressInfo));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DavJob_response(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(QDomDocument *) &((KIO::DavJob*) QtSupport::getQt(env, obj))->response(), "org.kde.qt.QDomDocument");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DavJob_slotData(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	((DavJobJBridge*) QtSupport::getQt(env, obj))->protected_slotData((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

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

