/***************************************************************************
                            kde_KUniqueApplication.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_KUniqueApplication.h"
}

#include <kuniqueapplication.h>

class KUniqueApplicationBridge : public KUniqueApplication
{
public:
	KUniqueApplicationBridge(bool allowStyles, bool GUIenabled, bool configUnique) : KUniqueApplication(allowStyles, GUIenabled, configUnique) {}
	~KUniqueApplicationBridge() {}
	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_KUniqueApplication * kde_new_KUniqueApplication(int allowStyles, int GUIenabled, int configUnique){
	return (kde_KUniqueApplication *) new KUniqueApplicationBridge((bool)allowStyles, (bool)GUIenabled, (bool)configUnique);
}
void kde_del_KUniqueApplication( kde_KUniqueApplication* p ){
	delete (KUniqueApplicationBridge*) p;
}
int kde_KUniqueApplication_process( kde_KUniqueApplication* instPointer,qt_QCString* fun, qt_QByteArray* data, qt_QCString* replyType, qt_QByteArray* replyData){
	return (int) ((KUniqueApplicationBridge*)instPointer)->process((QCString&)* (QCString*)fun, (QByteArray&)* (QByteArray*)data, (QCString&)* (QCString*)replyType, (QByteArray&)* (QByteArray*)replyData);
}
int kde_KUniqueApplication_newInstance( kde_KUniqueApplication* instPointer){
	return (int) ((KUniqueApplicationBridge*)instPointer)->newInstance();
}
void kde_KUniqueApplication_addCmdLineOptions( ){
	KUniqueApplicationBridge::addCmdLineOptions();
	return;
}
int kde_KUniqueApplication_start( ){
	return (int) KUniqueApplicationBridge::start();
}
kde_DCOPObject* kde_KUniqueApplication_DCOPObject(kde_KUniqueApplication* instPointer){
	return (kde_DCOPObject*) (DCOPObject *) (KUniqueApplication *) instPointer;
}
kde_KApplication* kde_KUniqueApplication_KApplication(kde_KUniqueApplication* instPointer){
	return (kde_KApplication*) (KApplication *) (KUniqueApplication *) instPointer;
}
