/***************************************************************************
                            kde_KProcIO.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_KProcIO.h"
}

#include <kprocio.h>

class KProcIOBridge : public KProcIO
{
public:
	KProcIOBridge(QTextCodec* codec) : KProcIO(codec) {}
	void protected_controlledEmission() {
		KProcIO::controlledEmission();
		return;
	}
	void protected_received(KProcess* proc, char* buffer, int buflen) {
		KProcIO::received(proc, buffer, buflen);
		return;
	}
	void protected_sent(KProcess* arg1) {
		KProcIO::sent(arg1);
		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;
	}
};

kde_KProcIO * kde_new_KProcIO(qt_QTextCodec* codec){
	return (kde_KProcIO *) new KProcIOBridge((QTextCodec*)codec);
}
int kde_KProcIO_start( kde_KProcIO* instPointer,int runmode, int includeStderr){
	return (int) ((KProcIOBridge*)instPointer)->start((KProcIO::RunMode)runmode, (bool)includeStderr);
}
int kde_KProcIO_writeStdin( kde_KProcIO* instPointer,qt_QString * line, int AppendNewLine){
	return (int) ((KProcIOBridge*)instPointer)->writeStdin((QString&)* (QString*)line, (bool)AppendNewLine);
}
int kde_KProcIO_fputs( kde_KProcIO* instPointer,qt_QString * line, int AppendNewLine){
	return (int) ((KProcIOBridge*)instPointer)->fputs((QString&)* (QString*)line, (bool)AppendNewLine);
}
int kde_KProcIO_readln( kde_KProcIO* instPointer,qt_QString * line, int autoAck, int* partial){
	return (int) ((KProcIOBridge*)instPointer)->readln((QString&)* (QString*)line, (bool)autoAck, (bool*)partial);
}
int kde_KProcIO_fgets( kde_KProcIO* instPointer,qt_QString * line, int autoAck){
	return (int) ((KProcIOBridge*)instPointer)->fgets((QString&)* (QString*)line, (bool)autoAck);
}
void kde_KProcIO_resetAll( kde_KProcIO* instPointer){
	((KProcIOBridge*)instPointer)->resetAll();
	return;
}
void kde_KProcIO_ackRead( kde_KProcIO* instPointer){
	((KProcIOBridge*)instPointer)->ackRead();
	return;
}
void kde_KProcIO_enableReadSignals( kde_KProcIO* instPointer,int enable){
	((KProcIOBridge*)instPointer)->enableReadSignals((bool)enable);
	return;
}
void kde_KProcIO_controlledEmission( kde_KProcIO* instPointer){
	((KProcIOBridge*)instPointer)->protected_controlledEmission();
	return;
}
void kde_KProcIO_received( kde_KProcIO* instPointer,kde_KProcess* proc, char* buffer, int buflen){
	((KProcIOBridge*)instPointer)->protected_received((KProcess*)proc, (char*)buffer, (int)buflen);
	return;
}
void kde_KProcIO_sent( kde_KProcIO* instPointer,kde_KProcess* arg1){
	((KProcIOBridge*)instPointer)->protected_sent((KProcess*)arg1);
	return;
}
