/***************************************************************************
                            kde_KXMLGUIBuilder.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_KXMLGUIBuilder.h"
}

#include <kxmlguibuilder.h>

class KXMLGUIBuilderBridge : public KXMLGUIBuilder
{
public:
	KXMLGUIBuilderBridge(QWidget* widget) : KXMLGUIBuilder(widget) {}
	~KXMLGUIBuilderBridge() {}
};

kde_KXMLGUIBuilder * kde_new_KXMLGUIBuilder(qt_QWidget * widget){
	return (kde_KXMLGUIBuilder *) new KXMLGUIBuilderBridge((QWidget*)widget);
}
void kde_del_KXMLGUIBuilder( kde_KXMLGUIBuilder* p ){
	delete (KXMLGUIBuilderBridge*) p;
}
kde_KXMLGUIClient* kde_KXMLGUIBuilder_builderClient( kde_KXMLGUIBuilder* instPointer){
	return (kde_KXMLGUIClient*) ((KXMLGUIBuilderBridge*)instPointer)->builderClient();
}
void kde_KXMLGUIBuilder_setBuilderClient( kde_KXMLGUIBuilder* instPointer,kde_KXMLGUIClient* client){
	((KXMLGUIBuilderBridge*)instPointer)->setBuilderClient((KXMLGUIClient*)client);
	return;
}
kde_KInstance* kde_KXMLGUIBuilder_builderInstance( kde_KXMLGUIBuilder* instPointer){
	return (kde_KInstance*) ((KXMLGUIBuilderBridge*)instPointer)->builderInstance();
}
void kde_KXMLGUIBuilder_setBuilderInstance( kde_KXMLGUIBuilder* instPointer,kde_KInstance* instance){
	((KXMLGUIBuilderBridge*)instPointer)->setBuilderInstance((KInstance*)instance);
	return;
}
qt_QStringList* kde_KXMLGUIBuilder_containerTags( kde_KXMLGUIBuilder* instPointer){
	return (qt_QStringList*)new QStringList(((KXMLGUIBuilderBridge*)instPointer)->containerTags());
}
qt_QWidget * kde_KXMLGUIBuilder_createContainer( kde_KXMLGUIBuilder* instPointer,qt_QWidget * parent, int index, qt_QDomElement* element, int identifier){
	return (qt_QWidget *) ((KXMLGUIBuilderBridge*)instPointer)->createContainer((QWidget*)parent, (int)index, (QDomElement&)* (QDomElement*)element, (int&)identifier);
}
void kde_KXMLGUIBuilder_removeContainer( kde_KXMLGUIBuilder* instPointer,qt_QWidget * container, qt_QWidget * parent, qt_QDomElement* element, int identifier){
	((KXMLGUIBuilderBridge*)instPointer)->removeContainer((QWidget*)container, (QWidget*)parent, (QDomElement&)* (QDomElement*)element, (int)identifier);
	return;
}
qt_QStringList* kde_KXMLGUIBuilder_customTags( kde_KXMLGUIBuilder* instPointer){
	return (qt_QStringList*)new QStringList(((KXMLGUIBuilderBridge*)instPointer)->customTags());
}
int kde_KXMLGUIBuilder_createCustomElement( kde_KXMLGUIBuilder* instPointer,qt_QWidget * parent, int index, qt_QDomElement* element){
	return (int) ((KXMLGUIBuilderBridge*)instPointer)->createCustomElement((QWidget*)parent, (int)index, (QDomElement&)* (QDomElement*)element);
}
void kde_KXMLGUIBuilder_removeCustomElement( kde_KXMLGUIBuilder* instPointer,qt_QWidget * parent, int identifier){
	((KXMLGUIBuilderBridge*)instPointer)->removeCustomElement((QWidget*)parent, (int)identifier);
	return;
}
void kde_KXMLGUIBuilder_finalizeGUI( kde_KXMLGUIBuilder* instPointer,kde_KXMLGUIClient* client){
	((KXMLGUIBuilderBridge*)instPointer)->finalizeGUI((KXMLGUIClient*)client);
	return;
}
