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

#include <qtjava/QtSupport.h>
#include <qtjava/QProcess.h>

class QProcessJBridge : public QProcess
{
public:
	QProcessJBridge(QObject* arg1,const char* arg2) : QProcess(arg1,arg2) {};
	QProcessJBridge(QObject* arg1) : QProcess(arg1) {};
	QProcessJBridge() : QProcess() {};
	QProcessJBridge(const QString& arg1,QObject* arg2,const char* arg3) : QProcess(arg1,arg2,arg3) {};
	QProcessJBridge(const QString& arg1,QObject* arg2) : QProcess(arg1,arg2) {};
	QProcessJBridge(const QString& arg1) : QProcess(arg1) {};
	QProcessJBridge(const QStringList& arg1,QObject* arg2,const char* arg3) : QProcess(arg1,arg2,arg3) {};
	QProcessJBridge(const QStringList& arg1,QObject* arg2) : QProcess(arg1,arg2) {};
	QProcessJBridge(const QStringList& arg1) : QProcess(arg1) {};
	void public_closeStdin() {
		QProcess::closeStdin();
		return;
	}
	void protected_connectNotify(const char* arg1) {
		QProcess::connectNotify(arg1);
		return;
	}
	void protected_disconnectNotify(const char* arg1) {
		QProcess::disconnectNotify(arg1);
		return;
	}
	~QProcessJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void setWorkingDirectory(const QDir& arg1) {
		if (!QtSupport::eventDelegate(this,"setWorkingDirectory",(void*)&arg1,"org.kde.qt.QDir")) {
			QProcess::setWorkingDirectory(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void closeStdin() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QProcess","closeStdin")) {
			QProcess::closeStdin();
		}
		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.qt.QProcess",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_addArgument(JNIEnv* env, jobject obj, jstring arg)
{
static QString* _qstring_arg = 0;
	((QProcess*) QtSupport::getQt(env, obj))->addArgument((const QString&)*(QString*) QtSupport::toQString(env, arg, &_qstring_arg));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QProcess_arguments(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QProcess*) QtSupport::getQt(env, obj))->arguments();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_canReadLineStderr(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->canReadLineStderr();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_canReadLineStdout(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->canReadLineStdout();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_closeStdin(JNIEnv* env, jobject obj)
{
	((QProcessJBridge*) QtSupport::getQt(env, obj))->public_closeStdin();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QProcess_communication(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QProcess*) QtSupport::getQt(env, obj))->communication();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_connectNotify(JNIEnv* env, jobject obj, jstring signal)
{
static QCString* _qstring_signal = 0;
	((QProcessJBridge*) QtSupport::getQt(env, obj))->protected_connectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_disconnectNotify(JNIEnv* env, jobject obj, jstring signal)
{
static QCString* _qstring_signal = 0;
	((QProcessJBridge*) QtSupport::getQt(env, obj))->protected_disconnectNotify((const char*) QtSupport::toCharString(env, signal, &_qstring_signal));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QProcess_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_flushStdin(JNIEnv* env, jobject obj)
{
	((QProcess*) QtSupport::getQt(env, obj))->flushStdin();
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_kill(JNIEnv* env, jobject obj)
{
	((QProcess*) QtSupport::getQt(env, obj))->kill();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_launch__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf)
{
static QString* _qstring_buf = 0;
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->launch((const QString&)*(QString*) QtSupport::toQString(env, buf, &_qstring_buf));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_launch__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf, jobjectArray arg2)
{
static QString* _qstring_buf = 0;
static QStringList* _qlist_arg2 = 0;
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->launch((const QString&)*(QString*) QtSupport::toQString(env, buf, &_qstring_buf), (QStringList*) QtSupport::toQStringList(env, arg2, &_qlist_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_launch___3B(JNIEnv* env, jobject obj, jbyteArray buf)
{
static QByteArray* _qbyteArray_buf = 0;
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->launch((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, buf, &_qbyteArray_buf));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_launch___3B_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray buf, jobjectArray arg2)
{
static QByteArray* _qbyteArray_buf = 0;
static QStringList* _qlist_arg2 = 0;
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->launch((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, buf, &_qbyteArray_buf), (QStringList*) QtSupport::toQStringList(env, arg2, &_qlist_arg2));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg0)
{
static QString* _qstring_arg0 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QProcessJBridge((const QString&)*(QString*) QtSupport::toQString(env, arg0, &_qstring_arg0)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess__Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring arg0, jobject parent)
{
static QString* _qstring_arg0 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QProcessJBridge((const QString&)*(QString*) QtSupport::toQString(env, arg0, &_qstring_arg0), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess__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 QProcessJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args)
{
static QStringList* _qlist_args = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QProcessJBridge((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, args, &_qlist_args)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess___3Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobjectArray args, jobject parent)
{
static QStringList* _qlist_args = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QProcessJBridge((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, args, &_qlist_args), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_newQProcess___3Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray args, jobject parent, jstring name)
{
static QStringList* _qlist_args = 0;
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QProcessJBridge((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, args, &_qlist_args), (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_qt_QProcess_normalExit(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->normalExit();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QProcess_processIdentifier(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((QProcess*) QtSupport::getQt(env, obj))->processIdentifier();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QProcess_readLineStderr(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QProcess*) QtSupport::getQt(env, obj))->readLineStderr();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QProcess_readLineStdout(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QProcess*) QtSupport::getQt(env, obj))->readLineStdout();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QProcess_readStderr(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((QProcess*) QtSupport::getQt(env, obj))->readStderr();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QProcess_readStdout(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((QProcess*) QtSupport::getQt(env, obj))->readStdout();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_setArguments(JNIEnv* env, jobject obj, jobjectArray args)
{
static QStringList* _qlist_args = 0;
	((QProcess*) QtSupport::getQt(env, obj))->setArguments((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, args, &_qlist_args));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_setCommunication(JNIEnv* env, jobject obj, jint c)
{
	((QProcess*) QtSupport::getQt(env, obj))->setCommunication((int) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_setWorkingDirectory(JNIEnv* env, jobject obj, jobject dir)
{
	((QProcess*) QtSupport::getQt(env, obj))->setWorkingDirectory((const QDir&)*(const QDir*) QtSupport::getQt(env, dir));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QProcess_start___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray arg1)
{
static QStringList* _qlist_arg1 = 0;
	jboolean xret = (jboolean) ((QProcess*) QtSupport::getQt(env, obj))->start((QStringList*) QtSupport::toQStringList(env, arg1, &_qlist_arg1));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QProcess_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QProcessJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QProcess_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QProcessJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_tryTerminate(JNIEnv* env, jobject obj)
{
	((QProcess*) QtSupport::getQt(env, obj))->tryTerminate();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QProcess_workingDirectory(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDir(((QProcess*) QtSupport::getQt(env, obj))->workingDirectory()), "org.kde.qt.QDir", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_writeToStdin__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring buf)
{
static QString* _qstring_buf = 0;
	((QProcess*) QtSupport::getQt(env, obj))->writeToStdin((const QString&)*(QString*) QtSupport::toQString(env, buf, &_qstring_buf));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QProcess_writeToStdin___3B(JNIEnv* env, jobject obj, jbyteArray buf)
{
static QByteArray* _qbyteArray_buf = 0;
	((QProcess*) QtSupport::getQt(env, obj))->writeToStdin((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, buf, &_qbyteArray_buf));
	return;
}

