//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/global.h>
#include <kio/scheduler.h>
#include <dcopclient.h>
#include <qstring.h>
#include <dcopobject.h>
#include <kurl.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/JavaSlot.h>
#include <kdejava/KDESupport.h>
#include <kdejava/Scheduler.h>

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Scheduler_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static QCString* _qcstring_signal = 0;
static QByteArray* _qbyteArray_data = 0;
	((DCOPObject*)(KIO::Scheduler*) QtSupport::getQt(env, obj))->emitDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_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.kde.koala.Slave");
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_Scheduler_objId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPObject*)(KIO::Scheduler*) QtSupport::getQt(env, obj))->objId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Scheduler_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
	QCString  _qstring;
	(void) cls;
	_qstring = SchedulerJBridge::objectName((QObject*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Scheduler_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KIO::Scheduler*) QtSupport::getQt(env, obj))->processDynamic((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Scheduler_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((KIO::Scheduler*) QtSupport::getQt(env, obj))->process((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Scheduler_slotSlaveStatus(JNIEnv* env, jobject obj, jint pid, jstring protocol, jstring host, jboolean connected)
{
static QCString* _qcstring_protocol = 0;
static QString* _qstring_host = 0;
	((KIO::Scheduler*) QtSupport::getQt(env, obj))->slotSlaveStatus((pid_t) pid, (const QCString&)*(QCString*) QtSupport::toQCString(env, protocol, &_qcstring_protocol), (const QString&)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (bool) connected);
	return;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Scheduler_connect__Ljava_lang_String_2Lorg_kde_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);
	QString			qtSignalName(javaSlot->javaToQtSignalName(env, signal, 0));
	jboolean xret = (jboolean) SchedulerJBridge::connect((const char*) qtSignalName, (const QObject*) javaSlot, javaSlot->javaToQtSlotName(env, member, qtSignalName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Scheduler_connect__Lorg_kde_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_kde_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);
}

