/***************************************************************************
                            kde_KInstance.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_KInstance.h"
}

#include <kinstance.h>

class KInstanceBridge : public KInstance
{
public:
	KInstanceBridge(const QCString& instanceName) : KInstance(instanceName) {}
	KInstanceBridge(const KAboutData* aboutData) : KInstance(aboutData) {}
	KInstanceBridge(KInstance* src) : KInstance(src) {}
	~KInstanceBridge() {}
//	KInstanceBridge(const KInstance& arg1) : KInstance(arg1) {}
};

kde_KInstance * kde_new_KInstance(qt_QCString* instanceName){
	return (kde_KInstance *) new KInstanceBridge((QCString&)* (QCString*)instanceName);
}
kde_KInstance * kde_new_KInstance1(kde_KAboutData* aboutData){
	return (kde_KInstance *) new KInstanceBridge((KAboutData*)aboutData);
}
kde_KInstance * kde_new_KInstance2(kde_KInstance* src){
	return (kde_KInstance *) new KInstanceBridge((KInstance*)src);
}
void kde_del_KInstance( kde_KInstance* p ){
	delete (KInstanceBridge*) p;
}
kde_KStandardDirs* kde_KInstance_dirs( kde_KInstance* instPointer){
	return (kde_KStandardDirs*) ((KInstanceBridge*)instPointer)->dirs();
}
kde_KConfig* kde_KInstance_config( kde_KInstance* instPointer){
	return (kde_KConfig*) ((KInstanceBridge*)instPointer)->config();
}
kde_KIconLoader* kde_KInstance_iconLoader( kde_KInstance* instPointer){
	return (kde_KIconLoader*) ((KInstanceBridge*)instPointer)->iconLoader();
}
void kde_KInstance_newIconLoader( kde_KInstance* instPointer){
	((KInstanceBridge*)instPointer)->newIconLoader();
	return;
}
//kde_KCharsets* kde_KInstance_charsets( kde_KInstance* instPointer){
//	return (kde_KCharsets*) ((KInstanceBridge*)instPointer)->charsets();
//}
kde_KAboutData* kde_KInstance_aboutData( kde_KInstance* instPointer){
	return (kde_KAboutData*) ((KInstanceBridge*)instPointer)->aboutData();
}
qt_QCString* kde_KInstance_instanceName( kde_KInstance* instPointer){
	return (qt_QCString*)new QCString(((KInstanceBridge*)instPointer)->instanceName());
}
kde_KMimeSourceFactory* kde_KInstance_mimeSourceFactory( kde_KInstance* instPointer){
	return (kde_KMimeSourceFactory*) ((KInstanceBridge*)instPointer)->mimeSourceFactory();
}
//kde_KInstance * kde_new_KInstance3(kde_KInstance* arg1){
//	return (kde_KInstance *) new KInstanceBridge((KInstance&)* (KInstance*)arg1);
//}
