//Auto-generated by kalyptus. DO NOT EDIT.
#include <kprocess.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqcstring.h>

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

class KProcessJBridge : public KProcess
{
public:
	KProcessJBridge(TQObject* arg1,const char* arg2) : KProcess(arg1,arg2) {};
	KProcessJBridge(TQObject* 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(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void commClose() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KProcess","commClose")) {
			KProcess::commClose();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KProcess",object,event)) {
			return TQObject::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.TQMetaObject");
	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((TQObject*) 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 TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KProcessJBridge((TQObject*) 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 TQString* _qstring_arg = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const TQString&)*(TQString*) 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 TQStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KProcess *) &((KProcess*) QtSupport::getQt(env, obj))->operator<<((const TQStringList&)*(TQStringList*) 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)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_arg = 0;
	_qstring = KProcessJBridge::quote((const TQString&)*(TQString*) 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 TQCString* _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 TQString* _qstring_name = 0;
static TQString* _qstring_value = 0;
	((KProcess*) QtSupport::getQt(env, obj))->setEnvironment((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name), (const TQString&)*(TQString*) 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 TQCString* _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 TQString* _qstring_dir = 0;
	((KProcess*) QtSupport::getQt(env, obj))->setWorkingDirectory((const TQString&)*(TQString*) 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 TQCString* _qstring_buffer = 0;
	jboolean xret = (jboolean) ((KProcess*) QtSupport::getQt(env, obj))->writeStdin((const char*) QtSupport::toCharString(env, buffer, &_qstring_buffer), (int) buflen);
	return xret;
}

