/***************************************************************************
                            kde_KProcessRunner.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_KProcessRunner.h"
}

#include <krun.h>

class KProcessRunnerBridge : public KProcessRunner
{
public:
	~KProcessRunnerBridge() {}
	void protected_slotProcessExited(KProcess* arg1) {
		KProcessRunner::slotProcessExited(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;
	}
};

void kde_del_KProcessRunner( kde_KProcessRunner* p ){
	delete (KProcessRunnerBridge*) p;
}
long kde_KProcessRunner_pid( kde_KProcessRunner* instPointer){
	return (long) ((KProcessRunnerBridge*)instPointer)->pid();
}
long kde_KProcessRunner_run( kde_KProcess* arg1, qt_QString * binName){
	return (long) KProcessRunnerBridge::run((KProcess*)arg1, (QString&)* (QString*)binName);
}
long kde_KProcessRunner_run1( kde_KProcess* arg1, qt_QString * binName, kde_KStartupInfoId* identifier){
	return (long) KProcessRunnerBridge::run((KProcess*)arg1, (QString&)* (QString*)binName, (KStartupInfoId&)* (KStartupInfoId*)identifier);
}
void kde_KProcessRunner_slotProcessExited( kde_KProcessRunner* instPointer,kde_KProcess* arg1){
	((KProcessRunnerBridge*)instPointer)->protected_slotProcessExited((KProcess*)arg1);
	return;
}
