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

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

class StatJobJBridge : public TDEIO::StatJob
{
public:
	StatJobJBridge(const KURL& arg1,int arg2,const TQByteArray& arg3,bool arg4) : TDEIO::StatJob(arg1,arg2,arg3,arg4) {};
	void protected_slotRedirection(const KURL& arg1) {
		TDEIO::StatJob::slotRedirection(arg1);
		return;
	}
	void protected_slotFinished() {
		TDEIO::StatJob::slotFinished();
		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.StatJob","slotFinished")) {
			StatJob::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")) {
			StatJob::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.StatJob",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void putOnHold() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.StatJob","putOnHold")) {
			SimpleJob::putOnHold();
		}
		return;
	}
};

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_StatJob_newStatJob(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 StatJobJBridge((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_StatJob_setDetails(JNIEnv* env, jobject obj, jshort details)
{
	((TDEIO::StatJob*) QtSupport::getQt(env, obj))->setDetails((short int) details);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_StatJob_setSide(JNIEnv* env, jobject obj, jboolean source)
{
	((TDEIO::StatJob*) QtSupport::getQt(env, obj))->setSide((bool) source);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_StatJob_slotRedirection(JNIEnv* env, jobject obj, jobject url)
{
	((StatJobJBridge*) QtSupport::getQt(env, obj))->protected_slotRedirection((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

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

