/***************************************************************************
                            kde_KXMLGUIClient.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_KXMLGUIClient.h"
}

#include <kxmlguiclient.h>

class KXMLGUIClientBridge : public KXMLGUIClient
{
public:
	KXMLGUIClientBridge() : KXMLGUIClient() {}
	KXMLGUIClientBridge(KXMLGUIClient* parent) : KXMLGUIClient(parent) {}
	~KXMLGUIClientBridge() {}
	void protected_setInstance(KInstance* instance) {
		KXMLGUIClient::setInstance(instance);
		return;
	}
	void protected_setXMLFile(const QString& file, bool merge, bool setXMLDoc) {
		KXMLGUIClient::setXMLFile(file, merge, setXMLDoc);
		return;
	}
	void protected_setLocalXMLFile(const QString& file) {
		KXMLGUIClient::setLocalXMLFile(file);
		return;
	}
	void protected_setXML(const QString& document, bool merge) {
		KXMLGUIClient::setXML(document, merge);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& document, bool merge) {
		KXMLGUIClient::setDOMDocument(document, merge);
		return;
	}
	void protected_conserveMemory() {
		KXMLGUIClient::conserveMemory();
		return;
	}
	void protected_stateChanged(const QString& newstate) {
		KXMLGUIClient::stateChanged(newstate);
		return;
	}
};

kde_KXMLGUIClient * kde_new_KXMLGUIClient(){
	return (kde_KXMLGUIClient *) new KXMLGUIClientBridge();
}
kde_KXMLGUIClient * kde_new_KXMLGUIClient1(kde_KXMLGUIClient* parent){
	return (kde_KXMLGUIClient *) new KXMLGUIClientBridge((KXMLGUIClient*)parent);
}
void kde_del_KXMLGUIClient( kde_KXMLGUIClient* p ){
	delete (KXMLGUIClientBridge*) p;
}
kde_KAction* kde_KXMLGUIClient_action( kde_KXMLGUIClient* instPointer,char* name){
	return (kde_KAction*) ((KXMLGUIClientBridge*)instPointer)->action((char*)name);
}
kde_KAction* kde_KXMLGUIClient_action1( kde_KXMLGUIClient* instPointer,qt_QDomElement* element){
	return (kde_KAction*) ((KXMLGUIClientBridge*)instPointer)->action((QDomElement&)* (QDomElement*)element);
}
kde_KActionCollection* kde_KXMLGUIClient_actionCollection( kde_KXMLGUIClient* instPointer){
	return (kde_KActionCollection*) ((KXMLGUIClientBridge*)instPointer)->actionCollection();
}
kde_KInstance* kde_KXMLGUIClient_instance( kde_KXMLGUIClient* instPointer){
	return (kde_KInstance*) ((KXMLGUIClientBridge*)instPointer)->instance();
}
qt_QDomDocument* kde_KXMLGUIClient_domDocument( kde_KXMLGUIClient* instPointer){
	return (qt_QDomDocument*)new QDomDocument(((KXMLGUIClientBridge*)instPointer)->domDocument());
}
qt_QString * kde_KXMLGUIClient_xmlFile( kde_KXMLGUIClient* instPointer){
	return (qt_QString *)new QString(((KXMLGUIClientBridge*)instPointer)->xmlFile());
}
qt_QString * kde_KXMLGUIClient_localXMLFile( kde_KXMLGUIClient* instPointer){
	return (qt_QString *)new QString(((KXMLGUIClientBridge*)instPointer)->localXMLFile());
}
void kde_KXMLGUIClient_setXMLGUIBuildDocument( kde_KXMLGUIClient* instPointer,qt_QDomDocument* doc){
	((KXMLGUIClientBridge*)instPointer)->setXMLGUIBuildDocument((QDomDocument&)* (QDomDocument*)doc);
	return;
}
qt_QDomDocument* kde_KXMLGUIClient_xmlguiBuildDocument( kde_KXMLGUIClient* instPointer){
	return (qt_QDomDocument*)new QDomDocument(((KXMLGUIClientBridge*)instPointer)->xmlguiBuildDocument());
}
void kde_KXMLGUIClient_setFactory( kde_KXMLGUIClient* instPointer,kde_KXMLGUIFactory* factory){
	((KXMLGUIClientBridge*)instPointer)->setFactory((KXMLGUIFactory*)factory);
	return;
}
kde_KXMLGUIFactory* kde_KXMLGUIClient_factory( kde_KXMLGUIClient* instPointer){
	return (kde_KXMLGUIFactory*) ((KXMLGUIClientBridge*)instPointer)->factory();
}
kde_KXMLGUIClient* kde_KXMLGUIClient_parentClient( kde_KXMLGUIClient* instPointer){
	return (kde_KXMLGUIClient*) ((KXMLGUIClientBridge*)instPointer)->parentClient();
}
void kde_KXMLGUIClient_insertChildClient( kde_KXMLGUIClient* instPointer,kde_KXMLGUIClient* child){
	((KXMLGUIClientBridge*)instPointer)->insertChildClient((KXMLGUIClient*)child);
	return;
}
void kde_KXMLGUIClient_removeChildClient( kde_KXMLGUIClient* instPointer,kde_KXMLGUIClient* child){
	((KXMLGUIClientBridge*)instPointer)->removeChildClient((KXMLGUIClient*)child);
	return;
}
void kde_KXMLGUIClient_setClientBuilder( kde_KXMLGUIClient* instPointer,kde_KXMLGUIBuilder* builder){
	((KXMLGUIClientBridge*)instPointer)->setClientBuilder((KXMLGUIBuilder*)builder);
	return;
}
kde_KXMLGUIBuilder* kde_KXMLGUIClient_clientBuilder( kde_KXMLGUIClient* instPointer){
	return (kde_KXMLGUIBuilder*) ((KXMLGUIClientBridge*)instPointer)->clientBuilder();
}
void kde_KXMLGUIClient_reloadXML( kde_KXMLGUIClient* instPointer){
	((KXMLGUIClientBridge*)instPointer)->reloadXML();
	return;
}
void kde_KXMLGUIClient_unplugActionList( kde_KXMLGUIClient* instPointer,qt_QString * name){
	((KXMLGUIClientBridge*)instPointer)->unplugActionList((QString&)* (QString*)name);
	return;
}
void kde_KXMLGUIClient_addStateActionEnabled( kde_KXMLGUIClient* instPointer,qt_QString * state, qt_QString * action){
	((KXMLGUIClientBridge*)instPointer)->addStateActionEnabled((QString&)* (QString*)state, (QString&)* (QString*)action);
	return;
}
void kde_KXMLGUIClient_addStateActionDisabled( kde_KXMLGUIClient* instPointer,qt_QString * state, qt_QString * action){
	((KXMLGUIClientBridge*)instPointer)->addStateActionDisabled((QString&)* (QString*)state, (QString&)* (QString*)action);
	return;
}
//StateChange kde_KXMLGUIClient_getActionsToChangeForState( kde_KXMLGUIClient* instPointer,qt_QString * state){
//	return (StateChange) ((KXMLGUIClientBridge*)instPointer)->getActionsToChangeForState((QString&)* (QString*)state);
//}
qt_QString * kde_KXMLGUIClient_findMostRecentXMLFile( qt_QStringList* files, qt_QString * doc){
	return (qt_QString *)new QString(KXMLGUIClientBridge::findMostRecentXMLFile((QStringList&)* (QStringList*)files, (QString&)* (QString*)doc));
}
void kde_KXMLGUIClient_setInstance( kde_KXMLGUIClient* instPointer,kde_KInstance* instance){
	((KXMLGUIClientBridge*)instPointer)->protected_setInstance((KInstance*)instance);
	return;
}
void kde_KXMLGUIClient_setXMLFile( kde_KXMLGUIClient* instPointer,qt_QString * file, int merge, int setXMLDoc){
	((KXMLGUIClientBridge*)instPointer)->protected_setXMLFile((QString&)* (QString*)file, (bool)merge, (bool)setXMLDoc);
	return;
}
void kde_KXMLGUIClient_setLocalXMLFile( kde_KXMLGUIClient* instPointer,qt_QString * file){
	((KXMLGUIClientBridge*)instPointer)->protected_setLocalXMLFile((QString&)* (QString*)file);
	return;
}
void kde_KXMLGUIClient_setXML( kde_KXMLGUIClient* instPointer,qt_QString * document, int merge){
	((KXMLGUIClientBridge*)instPointer)->protected_setXML((QString&)* (QString*)document, (bool)merge);
	return;
}
void kde_KXMLGUIClient_setDOMDocument( kde_KXMLGUIClient* instPointer,qt_QDomDocument* document, int merge){
	((KXMLGUIClientBridge*)instPointer)->protected_setDOMDocument((QDomDocument&)* (QDomDocument*)document, (bool)merge);
	return;
}
void kde_KXMLGUIClient_conserveMemory( kde_KXMLGUIClient* instPointer){
	((KXMLGUIClientBridge*)instPointer)->protected_conserveMemory();
	return;
}
void kde_KXMLGUIClient_stateChanged( kde_KXMLGUIClient* instPointer,qt_QString * newstate){
	((KXMLGUIClientBridge*)instPointer)->protected_stateChanged((QString&)* (QString*)newstate);
	return;
}
