/***************************************************************************
                            kde_KJavaAppletServer.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_KJavaAppletServer.h"
}

#include <kjavaappletserver.h>

class KJavaAppletServerBridge : public KJavaAppletServer
{
public:
	KJavaAppletServerBridge() : KJavaAppletServer() {}
	~KJavaAppletServerBridge() {}
	void protected_setupJava(KJavaProcess* p) {
		KJavaAppletServer::setupJava(p);
		return;
	}
	void protected_slotJavaRequest(const QByteArray& qb) {
		KJavaAppletServer::slotJavaRequest(qb);
		return;
	}
	void protected_checkShutdown() {
		KJavaAppletServer::checkShutdown();
		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_KJavaAppletServer * kde_new_KJavaAppletServer(){
	return (kde_KJavaAppletServer *) new KJavaAppletServerBridge();
}
void kde_del_KJavaAppletServer( kde_KJavaAppletServer* p ){
	delete (KJavaAppletServerBridge*) p;
}
void kde_KJavaAppletServer_createContext( kde_KJavaAppletServer* instPointer,int contextId, kde_KJavaAppletContext* context){
	((KJavaAppletServerBridge*)instPointer)->createContext((int)contextId, (KJavaAppletContext*)context);
	return;
}
void kde_KJavaAppletServer_destroyContext( kde_KJavaAppletServer* instPointer,int contextId){
	((KJavaAppletServerBridge*)instPointer)->destroyContext((int)contextId);
	return;
}
void kde_KJavaAppletServer_initApplet( kde_KJavaAppletServer* instPointer,int contextId, int appletId){
	((KJavaAppletServerBridge*)instPointer)->initApplet((int)contextId, (int)appletId);
	return;
}
void kde_KJavaAppletServer_destroyApplet( kde_KJavaAppletServer* instPointer,int contextId, int appletId){
	((KJavaAppletServerBridge*)instPointer)->destroyApplet((int)contextId, (int)appletId);
	return;
}
void kde_KJavaAppletServer_startApplet( kde_KJavaAppletServer* instPointer,int contextId, int appletId){
	((KJavaAppletServerBridge*)instPointer)->startApplet((int)contextId, (int)appletId);
	return;
}
void kde_KJavaAppletServer_stopApplet( kde_KJavaAppletServer* instPointer,int contextId, int appletId){
	((KJavaAppletServerBridge*)instPointer)->stopApplet((int)contextId, (int)appletId);
	return;
}
void kde_KJavaAppletServer_sendURLData( kde_KJavaAppletServer* instPointer,qt_QString * loaderID, qt_QString * url, qt_QByteArray* data){
	((KJavaAppletServerBridge*)instPointer)->sendURLData((QString&)* (QString*)loaderID, (QString&)* (QString*)url, (QByteArray&)* (QByteArray*)data);
	return;
}
void kde_KJavaAppletServer_quit( kde_KJavaAppletServer* instPointer){
	((KJavaAppletServerBridge*)instPointer)->quit();
	return;
}
qt_QString * kde_KJavaAppletServer_appletLabel( kde_KJavaAppletServer* instPointer){
	return (qt_QString *)new QString(((KJavaAppletServerBridge*)instPointer)->appletLabel());
}
kde_KJavaAppletServer* kde_KJavaAppletServer_allocateJavaServer( ){
	return (kde_KJavaAppletServer*) KJavaAppletServerBridge::allocateJavaServer();
}
void kde_KJavaAppletServer_freeJavaServer( ){
	KJavaAppletServerBridge::freeJavaServer();
	return;
}
qt_QString * kde_KJavaAppletServer_getAppletLabel( ){
	return (qt_QString *)new QString(KJavaAppletServerBridge::getAppletLabel());
}
void kde_KJavaAppletServer_setupJava( kde_KJavaAppletServer* instPointer,kde_KJavaProcess* p){
	((KJavaAppletServerBridge*)instPointer)->protected_setupJava((KJavaProcess*)p);
	return;
}
void kde_KJavaAppletServer_slotJavaRequest( kde_KJavaAppletServer* instPointer,qt_QByteArray* qb){
	((KJavaAppletServerBridge*)instPointer)->protected_slotJavaRequest((QByteArray&)* (QByteArray*)qb);
	return;
}
void kde_KJavaAppletServer_checkShutdown( kde_KJavaAppletServer* instPointer){
	((KJavaAppletServerBridge*)instPointer)->protected_checkShutdown();
	return;
}
