/***************************************************************************
                            qt_QProcess.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QProcess.h"
}

#include <qprocess.h>

class QProcessBridge : public QProcess
{
public:
	QProcessBridge(QObject* parent, const char* name) : QProcess(parent, name) {}
	QProcessBridge(const QString& arg0, QObject* parent, const char* name) : QProcess(arg0, parent, name) {}
	QProcessBridge(const QStringList& args, QObject* parent, const char* name) : QProcess(args, parent, name) {}
	~QProcessBridge() {}
	void protected_connectNotify(const char* signal) {
		QProcess::connectNotify(signal);
		return;
	}
	void protected_disconnectNotify(const char* signal) {
		QProcess::disconnectNotify(signal);
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QProcess * qt_new_QProcess(qt_QObject * parent, char* name){
	return (qt_QProcess *) new QProcessBridge((QObject*)parent, (char*)name);
}
qt_QProcess * qt_new_QProcess1(qt_QString * arg0, qt_QObject * parent, char* name){
	return (qt_QProcess *) new QProcessBridge((QString&)* (QString*)arg0, (QObject*)parent, (char*)name);
}
qt_QProcess * qt_new_QProcess2(qt_QStringList* args, qt_QObject * parent, char* name){
	return (qt_QProcess *) new QProcessBridge((QStringList&)* (QStringList*)args, (QObject*)parent, (char*)name);
}
void qt_del_QProcess( qt_QProcess* p ){
	delete (QProcessBridge*) p;
}
qt_QStringList* qt_QProcess_arguments( qt_QProcess* instPointer){
	return (qt_QStringList*)new QStringList(((QProcessBridge*)instPointer)->arguments());
}
void qt_QProcess_clearArguments( qt_QProcess* instPointer){
	((QProcessBridge*)instPointer)->clearArguments();
	return;
}
void qt_QProcess_setArguments( qt_QProcess* instPointer,qt_QStringList* args){
	((QProcessBridge*)instPointer)->setArguments((QStringList&)* (QStringList*)args);
	return;
}
void qt_QProcess_addArgument( qt_QProcess* instPointer,qt_QString * arg){
	((QProcessBridge*)instPointer)->addArgument((QString&)* (QString*)arg);
	return;
}
qt_QDir * qt_QProcess_workingDirectory( qt_QProcess* instPointer){
	return (qt_QDir *)new QDir(((QProcessBridge*)instPointer)->workingDirectory());
}
void qt_QProcess_setWorkingDirectory( qt_QProcess* instPointer,qt_QDir * dir){
	((QProcessBridge*)instPointer)->setWorkingDirectory((QDir&)* (QDir*)dir);
	return;
}
void qt_QProcess_setCommunication( qt_QProcess* instPointer,int c){
	((QProcessBridge*)instPointer)->setCommunication((int)c);
	return;
}
int qt_QProcess_communication( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->communication();
}
int qt_QProcess_start( qt_QProcess* instPointer,qt_QStringList* env){
	return (int) ((QProcessBridge*)instPointer)->start((QStringList*)env);
}
int qt_QProcess_launch( qt_QProcess* instPointer,qt_QString * buf, qt_QStringList* env){
	return (int) ((QProcessBridge*)instPointer)->launch((QString&)* (QString*)buf, (QStringList*)env);
}
int qt_QProcess_launch1( qt_QProcess* instPointer,qt_QByteArray* buf, qt_QStringList* env){
	return (int) ((QProcessBridge*)instPointer)->launch((QByteArray&)* (QByteArray*)buf, (QStringList*)env);
}
int qt_QProcess_isRunning( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->isRunning();
}
int qt_QProcess_normalExit( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->normalExit();
}
int qt_QProcess_exitStatus( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->exitStatus();
}
qt_QByteArray* qt_QProcess_readStdout( qt_QProcess* instPointer){
	return (qt_QByteArray*)new QByteArray(((QProcessBridge*)instPointer)->readStdout());
}
qt_QByteArray* qt_QProcess_readStderr( qt_QProcess* instPointer){
	return (qt_QByteArray*)new QByteArray(((QProcessBridge*)instPointer)->readStderr());
}
int qt_QProcess_canReadLineStdout( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->canReadLineStdout();
}
int qt_QProcess_canReadLineStderr( qt_QProcess* instPointer){
	return (int) ((QProcessBridge*)instPointer)->canReadLineStderr();
}
qt_QString * qt_QProcess_readLineStdout( qt_QProcess* instPointer){
	return (qt_QString *)new QString(((QProcessBridge*)instPointer)->readLineStdout());
}
qt_QString * qt_QProcess_readLineStderr( qt_QProcess* instPointer){
	return (qt_QString *)new QString(((QProcessBridge*)instPointer)->readLineStderr());
}
long qt_QProcess_processIdentifier( qt_QProcess* instPointer){
	return (long) ((QProcessBridge*)instPointer)->processIdentifier();
}
void qt_QProcess_flushStdin( qt_QProcess* instPointer){
	((QProcessBridge*)instPointer)->flushStdin();
	return;
}
void qt_QProcess_tryTerminate( qt_QProcess* instPointer){
	((QProcessBridge*)instPointer)->tryTerminate();
	return;
}
void qt_QProcess_kill( qt_QProcess* instPointer){
	((QProcessBridge*)instPointer)->kill();
	return;
}
void qt_QProcess_writeToStdin( qt_QProcess* instPointer,qt_QByteArray* buf){
	((QProcessBridge*)instPointer)->writeToStdin((QByteArray&)* (QByteArray*)buf);
	return;
}
void qt_QProcess_writeToStdin1( qt_QProcess* instPointer,qt_QString * buf){
	((QProcessBridge*)instPointer)->writeToStdin((QString&)* (QString*)buf);
	return;
}
void qt_QProcess_closeStdin( qt_QProcess* instPointer){
	((QProcessBridge*)instPointer)->closeStdin();
	return;
}
void qt_QProcess_connectNotify( qt_QProcess* instPointer,char* signal){
	((QProcessBridge*)instPointer)->protected_connectNotify((char*)signal);
	return;
}
void qt_QProcess_disconnectNotify( qt_QProcess* instPointer,char* signal){
	((QProcessBridge*)instPointer)->protected_disconnectNotify((char*)signal);
	return;
}
