/***************************************************************************
                            kde_KJavaProcess.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_KJavaProcess.h"
}

#include <kjavaprocess.h>

class KJavaProcessBridge : public KJavaProcess
{
public:
	KJavaProcessBridge() : KJavaProcess() {}
	~KJavaProcessBridge() {}
	 bool  protected_invokeJVM() {
		return ( bool ) KJavaProcess::invokeJVM();
	}
	void protected_killJVM() {
		KJavaProcess::killJVM();
		return;
	}
	QByteArray*  protected_addArgs(char cmd_code, const QStringList& args) {
		return (QByteArray* ) KJavaProcess::addArgs(cmd_code, args);
	}
	void protected_popBuffer() {
		KJavaProcess::popBuffer();
		return;
	}
	void protected_sendBuffer(QByteArray* buff) {
		KJavaProcess::sendBuffer(buff);
		return;
	}
	void protected_storeSize(QByteArray* buff) {
		KJavaProcess::storeSize(buff);
		return;
	}
	void protected_slotWroteData() {
		KJavaProcess::slotWroteData();
		return;
	}
	void protected_slotReceivedData(int arg1, int& arg2) {
		KJavaProcess::slotReceivedData(arg1, arg2);
		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_KJavaProcess * kde_new_KJavaProcess(){
	return (kde_KJavaProcess *) new KJavaProcessBridge();
}
void kde_del_KJavaProcess( kde_KJavaProcess* p ){
	delete (KJavaProcessBridge*) p;
}
int kde_KJavaProcess_startJava( kde_KJavaProcess* instPointer){
	return (int) ((KJavaProcessBridge*)instPointer)->startJava();
}
void kde_KJavaProcess_stopJava( kde_KJavaProcess* instPointer){
	((KJavaProcessBridge*)instPointer)->stopJava();
	return;
}
int kde_KJavaProcess_isRunning( kde_KJavaProcess* instPointer){
	return (int) ((KJavaProcessBridge*)instPointer)->isRunning();
}
void kde_KJavaProcess_setJVMPath( kde_KJavaProcess* instPointer,qt_QString * path){
	((KJavaProcessBridge*)instPointer)->setJVMPath((QString&)* (QString*)path);
	return;
}
void kde_KJavaProcess_setClasspath( kde_KJavaProcess* instPointer,qt_QString * classpath){
	((KJavaProcessBridge*)instPointer)->setClasspath((QString&)* (QString*)classpath);
	return;
}
void kde_KJavaProcess_setSystemProperty( kde_KJavaProcess* instPointer,qt_QString * name, qt_QString * value){
	((KJavaProcessBridge*)instPointer)->setSystemProperty((QString&)* (QString*)name, (QString&)* (QString*)value);
	return;
}
void kde_KJavaProcess_setMainClass( kde_KJavaProcess* instPointer,qt_QString * clazzName){
	((KJavaProcessBridge*)instPointer)->setMainClass((QString&)* (QString*)clazzName);
	return;
}
void kde_KJavaProcess_setExtraArgs( kde_KJavaProcess* instPointer,qt_QString * args){
	((KJavaProcessBridge*)instPointer)->setExtraArgs((QString&)* (QString*)args);
	return;
}
void kde_KJavaProcess_setClassArgs( kde_KJavaProcess* instPointer,qt_QString * classArgs){
	((KJavaProcessBridge*)instPointer)->setClassArgs((QString&)* (QString*)classArgs);
	return;
}
void kde_KJavaProcess_send( kde_KJavaProcess* instPointer,char cmd_code, qt_QStringList* args){
	((KJavaProcessBridge*)instPointer)->send((char)cmd_code, (QStringList&)* (QStringList*)args);
	return;
}
void kde_KJavaProcess_send1( kde_KJavaProcess* instPointer,char cmd_code, qt_QStringList* args, qt_QByteArray* data){
	((KJavaProcessBridge*)instPointer)->send((char)cmd_code, (QStringList&)* (QStringList*)args, (QByteArray&)* (QByteArray*)data);
	return;
}
int kde_KJavaProcess_invokeJVM( kde_KJavaProcess* instPointer){
	return (int) ((KJavaProcessBridge*)instPointer)->protected_invokeJVM();
}
void kde_KJavaProcess_killJVM( kde_KJavaProcess* instPointer){
	((KJavaProcessBridge*)instPointer)->protected_killJVM();
	return;
}
qt_QByteArray* kde_KJavaProcess_addArgs( kde_KJavaProcess* instPointer,char cmd_code, qt_QStringList* args){
	return (qt_QByteArray*) ((KJavaProcessBridge*)instPointer)->protected_addArgs((char)cmd_code, (QStringList&)* (QStringList*)args);
}
void kde_KJavaProcess_popBuffer( kde_KJavaProcess* instPointer){
	((KJavaProcessBridge*)instPointer)->protected_popBuffer();
	return;
}
void kde_KJavaProcess_sendBuffer( kde_KJavaProcess* instPointer,qt_QByteArray* buff){
	((KJavaProcessBridge*)instPointer)->protected_sendBuffer((QByteArray*)buff);
	return;
}
void kde_KJavaProcess_storeSize( kde_KJavaProcess* instPointer,qt_QByteArray* buff){
	((KJavaProcessBridge*)instPointer)->protected_storeSize((QByteArray*)buff);
	return;
}
void kde_KJavaProcess_slotWroteData( kde_KJavaProcess* instPointer){
	((KJavaProcessBridge*)instPointer)->protected_slotWroteData();
	return;
}
void kde_KJavaProcess_slotReceivedData( kde_KJavaProcess* instPointer,int arg1, int arg2){
	((KJavaProcessBridge*)instPointer)->protected_slotReceivedData((int)arg1, (int&)arg2);
	return;
}
