/***************************************************************************
                            kde_KJavaAppletContext.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_KJavaAppletContext.h"
}

#include <qstringlist.h>
#include <kjavaappletcontext.h>

class KJavaAppletContextBridge : public KJavaAppletContext
{
public:
	KJavaAppletContextBridge() : KJavaAppletContext() {}
	~KJavaAppletContextBridge() {}
	void protected_received(const QString& cmd, const QStringList& arg) {
		KJavaAppletContext::received(cmd, arg);
		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_KJavaAppletContext * kde_new_KJavaAppletContext(){
	return (kde_KJavaAppletContext *) new KJavaAppletContextBridge();
}
void kde_del_KJavaAppletContext( kde_KJavaAppletContext* p ){
	delete (KJavaAppletContextBridge*) p;
}
int kde_KJavaAppletContext_contextId( kde_KJavaAppletContext* instPointer){
	return (int) ((KJavaAppletContextBridge*)instPointer)->contextId();
}
void kde_KJavaAppletContext_setContextId( kde_KJavaAppletContext* instPointer,int identifier){
	((KJavaAppletContextBridge*)instPointer)->setContextId((int)identifier);
	return;
}
void kde_KJavaAppletContext_create( kde_KJavaAppletContext* instPointer,kde_KJavaApplet* arg1){
	((KJavaAppletContextBridge*)instPointer)->create((KJavaApplet*)arg1);
	return;
}
void kde_KJavaAppletContext_destroy( kde_KJavaAppletContext* instPointer,kde_KJavaApplet* arg1){
	((KJavaAppletContextBridge*)instPointer)->destroy((KJavaApplet*)arg1);
	return;
}
void kde_KJavaAppletContext_init( kde_KJavaAppletContext* instPointer,kde_KJavaApplet* arg1){
	((KJavaAppletContextBridge*)instPointer)->init((KJavaApplet*)arg1);
	return;
}
void kde_KJavaAppletContext_start( kde_KJavaAppletContext* instPointer,kde_KJavaApplet* arg1){
	((KJavaAppletContextBridge*)instPointer)->start((KJavaApplet*)arg1);
	return;
}
void kde_KJavaAppletContext_stop( kde_KJavaAppletContext* instPointer,kde_KJavaApplet* arg1){
	((KJavaAppletContextBridge*)instPointer)->stop((KJavaApplet*)arg1);
	return;
}
void kde_KJavaAppletContext_processCmd( kde_KJavaAppletContext* instPointer,qt_QString * cmd, qt_QStringList* args){
	((KJavaAppletContextBridge*)instPointer)->processCmd((QString)* (QString*)cmd, (QStringList)* (QStringList*)args);
	return;
}
void kde_KJavaAppletContext_received( kde_KJavaAppletContext* instPointer,qt_QString * cmd, qt_QStringList* arg){
	((KJavaAppletContextBridge*)instPointer)->protected_received((QString&)* (QString*)cmd, (QStringList&)* (QStringList*)arg);
	return;
}
