//Auto-generated by kalyptus. DO NOT EDIT.
#include <kprocess.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qcstring.h>

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

class KProcessJBridge : public KProcess
{
public:
	KProcessJBridge(QObject* arg1,const char* arg2) : KProcess(arg1,arg2) {};
	KProcessJBridge(QObject* arg1) : KProcess(arg1) {};
	KProcessJBridge() : KProcess() {};
	void protected_setupEnvironment() {
		KProcess::setupEnvironment();
		return;
	}
	int protected_setupCommunication(KProcess::Communication arg1) {
		return (int) KProcess::setupCommunication(arg1);
	}
	int protected_commSetupDoneP() {
		return (int) KProcess::commSetupDoneP();
	}
	int protected_commSetupDoneC() {
		return (int) KProcess::commSetupDoneC();
	}
	void protected_processHasExited(int arg1) {
		KProcess::processHasExited(arg1);
		return;
	}
	void protected_commClose() {
		KProcess::commClose();
		return;
	}
	void protected_setBinaryExecutable(const char* arg1) {
		KProcess::setBinaryExecutable(arg1);
		return;
	}
	int protected_childOutput(int arg1) {
		return (int) KProcess::childOutput(arg1);
	}
	int protected_childError(int arg1) {
		return (int) KProcess::childError(arg1);
	}
	void protected_slotChildOutput(int arg1) {
		KProcess::slotChildOutput(arg1);
		return;
	}
	void protected_slotChildError(int arg1) {
		KProcess::slotChildError(arg1);
		return;
	}
	void protected_slotSendData(int arg1) {
		KProcess::slotSendData(arg1);
		return;
	}
	~KProcessJBridge() {QtSupport::qtKeyDeleted(this);}
	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;
	}
	void commClose() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KProcess","commClose")) {
			KProcess::commClose();
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KProcess",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_childError(JNIEnv* env, jobject obj, jint fdno)
{
	jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_childError((int) fdno);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_childOutput(JNIEnv* env, jobject obj, jint fdno)
{
	jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_childOutput((int) fdno);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_clearArguments(JNIEnv* env, jobject obj)
{
	((KProcess*) QtSupport::getQt(env, obj))->clearArguments();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_closeAll(JNIEnv* env, jobject obj)
{
	((KProcess*) QtSupport::getQt(env, obj))->closeAll();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closePty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closePty();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStderr(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStderr();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStdin(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStdin();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_closeStdout(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->closeStdout();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_commClose(JNIEnv* env, jobject obj)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commClose();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_commSetupDoneC(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commSetupDoneC();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_commSetupDoneP(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_commSetupDoneP();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_coreDumped(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->coreDumped();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_detach(JNIEnv* env, jobject obj)
{
	((KProcess*) QtSupport::getQt(env, obj))->detach();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KProcess_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_exitSignal(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->exitSignal();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_exitStatus(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->exitStatus();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KProcess*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KProcess*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_isRunning(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->isRunning();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_kill__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->kill();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_kill__I(JNIEnv* env, jobject obj, jint signo)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->kill((int) signo);
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_newKProcess__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KProcessJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_normalExit(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->normalExit();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProcess_op_1write__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg)
{
static QString* _qstring_arg = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const QString&)*(QString*) QtSupport::toQString(env, arg, &_qstring_arg)), "org.kde.koala.KProcess");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KProcess_op_1write___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args)
{
static QStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, args, &_qlist_args)), "org.kde.koala.KProcess");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_pid(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KProcess*) QtSupport::getQt(env, obj))->pid();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_processHasExited(JNIEnv* env, jobject obj, jint state)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_processHasExited((int) state);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KProcess_quote(JNIEnv* env, jclass cls, jstring arg)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_arg = 0;
	_qstring = KProcessJBridge::quote((const QString&)*(QString*) QtSupport::toQString(env, arg, &_qstring_arg));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_resume(JNIEnv* env, jobject obj)
{
	((KProcess*) QtSupport::getQt(env, obj))->resume();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_runPrivileged(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->runPrivileged();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setBinaryExecutable(JNIEnv* env, jobject obj, jstring filename)
{
static QCString* _qstring_filename = 0;
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setBinaryExecutable((const char*) QtSupport::toCharString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setEnvironment(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static QString* _qstring_name = 0;
static QString* _qstring_value = 0;
	((KProcess*) QtSupport::getQt(env, obj))->setEnvironment((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, value, &_qstring_value));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_setPriority(JNIEnv* env, jobject obj, jint prio)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->setPriority((int) prio);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setRunPrivileged(JNIEnv* env, jobject obj, jboolean keepPrivileges)
{
	((KProcess*) QtSupport::getQt(env, obj))->setRunPrivileged((bool) keepPrivileges);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setUseShell__Z(JNIEnv* env, jobject obj, jboolean useShell)
{
	((KProcess*) QtSupport::getQt(env, obj))->setUseShell((bool) useShell);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setUseShell__ZLjava_lang_String_2(JNIEnv* env, jobject obj, jboolean useShell, jstring shell)
{
static QCString* _qstring_shell = 0;
	((KProcess*) QtSupport::getQt(env, obj))->setUseShell((bool) useShell, (const char*) QtSupport::toCharString(env, shell, &_qstring_shell));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setWorkingDirectory(JNIEnv* env, jobject obj, jstring dir)
{
static QString* _qstring_dir = 0;
	((KProcess*) QtSupport::getQt(env, obj))->setWorkingDirectory((const QString&)*(QString*) QtSupport::toQString(env, dir, &_qstring_dir));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KProcess_setupCommunication(JNIEnv* env, jobject obj, jint comm)
{
	jint xret = (jint) ((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setupCommunication((KProcess::Communication) comm);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_setupEnvironment(JNIEnv* env, jobject obj)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_setupEnvironment();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_signalled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->signalled();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotChildError(JNIEnv* env, jobject obj, jint fdno)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotChildError((int) fdno);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotChildOutput(JNIEnv* env, jobject obj, jint fdno)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotChildOutput((int) fdno);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_slotSendData(JNIEnv* env, jobject obj, jint dummy)
{
	((KProcessJBridge*) QtSupport::getQt(env, obj))->protected_slotSendData((int) dummy);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__I(JNIEnv* env, jobject obj, jint runmode)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start((KProcess::RunMode) runmode);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_start__II(JNIEnv* env, jobject obj, jint runmode, jint comm)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->start((KProcess::RunMode) runmode, (KProcess::Communication) comm);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KProcess_suspend(JNIEnv* env, jobject obj)
{
	((KProcess*) QtSupport::getQt(env, obj))->suspend();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_waitThread__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->wait();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_waitThread__I(JNIEnv* env, jobject obj, jint timeout)
{
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->wait((int) timeout);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KProcess_writeStdin(JNIEnv* env, jobject obj, jstring buffer, jint buflen)
{
static QCString* _qstring_buffer = 0;
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->writeStdin((const char*) QtSupport::toCharString(env, buffer, &_qstring_buffer), (int) buflen);
	return xret;
}

