//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/global.h>
#include <tdeio/scheduler.h>
#include <dcopclient.h>
#include <tqstring.h>
#include <dcopobject.h>
#include <kurl.h>
#include <tqcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/JavaSlot.h>
#include <tdejava/TDESupport.h>
#include <tdejava/Scheduler.h>

class SchedulerJBridge : public TDEIO::Scheduler
{
public:
	void protected_setupSlave(TDEIO::Slave* arg1,const KURL& arg2,const TQString& arg3,const TQString& arg4,bool arg5) {
		TDEIO::Scheduler::setupSlave(arg1,arg2,arg3,arg4,arg5);
		return;
	}
	bool protected_startJobDirect() {
		return (bool) TDEIO::Scheduler::startJobDirect();
	}
	SchedulerJBridge() : TDEIO::Scheduler() {};
	void protected_startStep() {
		TDEIO::Scheduler::startStep();
		return;
	}
	void protected_slotCleanIdleSlaves() {
		TDEIO::Scheduler::slotCleanIdleSlaves();
		return;
	}
	void protected_slotSlaveConnected() {
		TDEIO::Scheduler::slotSlaveConnected();
		return;
	}
	void protected_slotSlaveError(int arg1,const TQString& arg2) {
		TDEIO::Scheduler::slotSlaveError(arg1,arg2);
		return;
	}
	void protected_slotScheduleCoSlave() {
		TDEIO::Scheduler::slotScheduleCoSlave();
		return;
	}
	void protected_slotUnregisterWindow(TQObject* arg1) {
		TDEIO::Scheduler::slotUnregisterWindow(arg1);
		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 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.Scheduler",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_assignJobToSlave(JNIEnv* env, jclass cls, jobject slave, jobject job)
{
	(void) cls;
	jboolean xret = (jboolean) SchedulerJBridge::assignJobToSlave((TDEIO::Slave*) QtSupport::getQt(env, slave), (TDEIO::SimpleJob*) QtSupport::getQt(env, job));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_callingDcopClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->callingDcopClient(), "org.trinitydesktop.koala.DCOPClient");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_cancelJob(JNIEnv* env, jclass cls, jobject job)
{
	(void) cls;
	SchedulerJBridge::cancelJob((TDEIO::SimpleJob*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_checkSlaveOnHold(JNIEnv* env, jclass cls, jboolean b)
{
	(void) cls;
	(void) env;
	SchedulerJBridge::checkSlaveOnHold((bool) b);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot, jboolean Volatile)
{
static TQCString* _qcstring_sender = 0;
static TQCString* _qcstring_senderObj = 0;
static TQCString* _qcstring_signal = 0;
static TQCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->connectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot), (bool) Volatile);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_connect__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject sender, jstring signal, jobject receiver, jstring member)
{
	(void) cls;
static TQCString* _qstring_signal = 0;
	jboolean xret = (jboolean) SchedulerJBridge::connect((const TQObject*) QtSupport::getQt(env, sender), (const char*) QtSupport::toCharString(env, signal, &_qstring_signal), (const TQObject*) QtSupport::slotForReceiver(env, receiver, member), "1invoke()");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_debug_1info(JNIEnv* env, jobject obj)
{
	((TDEIO::Scheduler*) QtSupport::getQt(env, obj))->debug_info();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_disconnectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot)
{
static TQCString* _qcstring_sender = 0;
static TQCString* _qcstring_senderObj = 0;
static TQCString* _qcstring_signal = 0;
static TQCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_disconnectSlave(JNIEnv* env, jclass cls, jobject slave)
{
	(void) cls;
	jboolean xret = (jboolean) SchedulerJBridge::disconnectSlave((TDEIO::Slave*) QtSupport::getQt(env, slave));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_doJob(JNIEnv* env, jclass cls, jobject job)
{
	(void) cls;
	SchedulerJBridge::doJob((TDEIO::SimpleJob*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static TQCString* _qcstring_signal = 0;
static TQByteArray* _qbyteArray_data = 0;
	((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->emitDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_find(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static TQCString* _qcstring_objId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)SchedulerJBridge::find((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId)), "org.trinitydesktop.koala.DCOPObjectInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_functionsDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->functionsDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_functions(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((TDEIO::Scheduler*) QtSupport::getQt(env, obj))->functions();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_getConnectedSlave(JNIEnv* env, jclass cls, jobject url)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)SchedulerJBridge::getConnectedSlave((const KURL&)*(const KURL*) QtSupport::getQt(env, url)), "org.trinitydesktop.koala.Slave");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_hasObject(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static TQCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) SchedulerJBridge::hasObject((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_interfacesDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->interfacesDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Scheduler_interfaces(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->interfaces();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_jobFinished(JNIEnv* env, jclass cls, jobject job, jobject slave)
{
	(void) cls;
	SchedulerJBridge::jobFinished((TDEIO::SimpleJob*) QtSupport::getQt(env, job), (TDEIO::Slave*) QtSupport::getQt(env, slave));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_newScheduler(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new SchedulerJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Scheduler_objId(JNIEnv* env, jobject obj)
{
	TQCString  _qstring;
	_qstring = ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->objId();
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Scheduler_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
	TQCString  _qstring;
	(void) cls;
	_qstring = SchedulerJBridge::objectName((TQObject*) QtSupport::getQt(env, arg1));
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static TQCString* _qcstring_fun = 0;
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new TQCString();
	}
static TQByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->processDynamic((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static TQCString* _qcstring_fun = 0;
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new TQCString();
	}
static TQByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((TDEIO::Scheduler*) QtSupport::getQt(env, obj))->process((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_publishSlaveOnHold(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	SchedulerJBridge::publishSlaveOnHold();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_putSlaveOnHold(JNIEnv* env, jclass cls, jobject job, jobject url)
{
	(void) cls;
	SchedulerJBridge::putSlaveOnHold((TDEIO::SimpleJob*) QtSupport::getQt(env, job), (const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_registerWindow(JNIEnv* env, jclass cls, jobject wid)
{
	(void) cls;
	SchedulerJBridge::registerWindow((TQWidget*) QtSupport::getQt(env, wid));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_removeSlaveOnHold(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	SchedulerJBridge::removeSlaveOnHold();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_scheduleJob(JNIEnv* env, jclass cls, jobject job)
{
	(void) cls;
	SchedulerJBridge::scheduleJob((TDEIO::SimpleJob*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_setCallingDcopClient(JNIEnv* env, jobject obj, jobject arg1)
{
	((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->setCallingDcopClient((DCOPClient*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_setObjId(JNIEnv* env, jobject obj, jstring objId)
{
static TQCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(TDEIO::Scheduler*) QtSupport::getQt(env, obj))->setObjId((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_setupSlave(JNIEnv* env, jobject obj, jobject slave, jobject url, jstring protocol, jstring proxy, jboolean newSlave)
{
static TQString* _qstring_protocol = 0;
static TQString* _qstring_proxy = 0;
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_setupSlave((TDEIO::Slave*) QtSupport::getQt(env, slave), (const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol), (const TQString&)*(TQString*) QtSupport::toTQString(env, proxy, &_qstring_proxy), (bool) newSlave);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotCleanIdleSlaves(JNIEnv* env, jobject obj)
{
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_slotCleanIdleSlaves();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotScheduleCoSlave(JNIEnv* env, jobject obj)
{
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_slotScheduleCoSlave();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotSlaveConnected(JNIEnv* env, jobject obj)
{
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_slotSlaveConnected();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotSlaveDied(JNIEnv* env, jobject obj, jobject slave)
{
	((TDEIO::Scheduler*) QtSupport::getQt(env, obj))->slotSlaveDied((TDEIO::Slave*) QtSupport::getQt(env, slave));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotSlaveError(JNIEnv* env, jobject obj, jint error, jstring errorMsg)
{
static TQString* _qstring_errorMsg = 0;
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_slotSlaveError((int) error, (const TQString&)*(TQString*) QtSupport::toTQString(env, errorMsg, &_qstring_errorMsg));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotSlaveStatus(JNIEnv* env, jobject obj, jint pid, jstring protocol, jstring host, jboolean connected)
{
static TQCString* _qcstring_protocol = 0;
static TQString* _qstring_host = 0;
	((TDEIO::Scheduler*) QtSupport::getQt(env, obj))->slotSlaveStatus((pid_t) pid, (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, protocol, &_qcstring_protocol), (const TQString&)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (bool) connected);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_slotUnregisterWindow(JNIEnv* env, jobject obj, jobject arg1)
{
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_slotUnregisterWindow((TQObject*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_startJobDirect(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_startJobDirect();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_startStep(JNIEnv* env, jobject obj)
{
	((SchedulerJBridge*) QtSupport::getQt(env, obj))->protected_startStep();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Scheduler_unregisterWindow(JNIEnv* env, jclass cls, jobject wid)
{
	(void) cls;
	SchedulerJBridge::unregisterWindow((TQObject*) QtSupport::getQt(env, wid));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_connect__Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring signal, jobject receiver, jstring member)
{
	(void) cls;
	JavaSlot *		javaSlot = QtSupport::slotForReceiver(env, receiver, member);
	TQString			qtSignalName(javaSlot->javaToQtSignalName(env, signal, 0));
	jboolean xret = (jboolean) SchedulerJBridge::connect((const char*) qtSignalName, (const TQObject*) javaSlot, javaSlot->javaToQtSlotName(env, member, qtSignalName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_connect__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject sender, jstring signal, jstring member)
{
	return QtSupport::connect(env, sender, signal, obj, member);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Scheduler_disconnect(JNIEnv *env, jclass cls, jobject sender, jstring signal, jobject receiver, jstring member)
{
	(void) cls;
	return QtSupport::disconnect(env, sender, signal, receiver, member);
}

