/***************************************************************************
                            kde_KLibLoader.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_KLibLoader.h"
}

#include <klibloader.h>

class KLibLoaderBridge : public KLibLoader
{
public:
	~KLibLoaderBridge() {}
	KLibLoaderBridge(QObject* parent, const char* name) : KLibLoader(parent, name) {}
	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_KLibLoader( kde_KLibLoader* p ){
	delete (KLibLoaderBridge*) p;
}
kde_KLibFactory* kde_KLibLoader_factory( kde_KLibLoader* instPointer,char* libname){
	return (kde_KLibFactory*) ((KLibLoaderBridge*)instPointer)->factory((char*)libname);
}
kde_KLibrary* kde_KLibLoader_library( kde_KLibLoader* instPointer,char* libname){
	return (kde_KLibrary*) ((KLibLoaderBridge*)instPointer)->library((char*)libname);
}
kde_KLibrary* kde_KLibLoader_globalLibrary( kde_KLibLoader* instPointer,char* name){
	return (kde_KLibrary*) ((KLibLoaderBridge*)instPointer)->globalLibrary((char*)name);
}
qt_QString * kde_KLibLoader_lastErrorMessage( kde_KLibLoader* instPointer){
	return (qt_QString *)new QString(((KLibLoaderBridge*)instPointer)->lastErrorMessage());
}
void kde_KLibLoader_unloadLibrary( kde_KLibLoader* instPointer,char* libname){
	((KLibLoaderBridge*)instPointer)->unloadLibrary((char*)libname);
	return;
}
kde_KLibLoader* kde_KLibLoader_self( ){
	return (kde_KLibLoader*) KLibLoaderBridge::self();
}
void kde_KLibLoader_cleanUp( ){
	KLibLoaderBridge::cleanUp();
	return;
}
qt_QString * kde_KLibLoader_findLibrary( char* name, kde_KInstance* instance){
	return (qt_QString *)new QString(KLibLoaderBridge::findLibrary((char*)name, (KInstance*)instance));
}
kde_KLibLoader * kde_new_KLibLoader(qt_QObject * parent, char* name){
	return (kde_KLibLoader *) new KLibLoaderBridge((QObject*)parent, (char*)name);
}
