//Auto-generated by kalyptus. DO NOT EDIT.
#include <kxmlguiclient.h>
#include <kparts/plugin.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qdom.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/Plugin.h>

class PluginJBridge : public KParts::Plugin
{
public:
	PluginJBridge(QObject* arg1,const char* arg2) : KParts::Plugin(arg1,arg2) {};
	PluginJBridge(QObject* arg1) : KParts::Plugin(arg1) {};
	PluginJBridge() : KParts::Plugin() {};
	void protected_setInstance(KInstance* arg1) {
		KParts::Plugin::setInstance(arg1);
		return;
	}
	static KParts::Plugin* protected_loadPlugin(QObject* arg1,const char* arg2) {
		return (KParts::Plugin*) KParts::Plugin::loadPlugin(arg1,arg2);
	}
	void protected_setXMLFile(const QString& arg1,bool arg2,bool arg3) {
		KXMLGUIClient::setXMLFile(arg1,arg2,arg3);
		return;
	}
	void protected_setXMLFile(const QString& arg1,bool arg2) {
		KXMLGUIClient::setXMLFile(arg1,arg2);
		return;
	}
	void protected_setXMLFile(const QString& arg1) {
		KXMLGUIClient::setXMLFile(arg1);
		return;
	}
	void protected_setLocalXMLFile(const QString& arg1) {
		KXMLGUIClient::setLocalXMLFile(arg1);
		return;
	}
	void protected_setXML(const QString& arg1,bool arg2) {
		KXMLGUIClient::setXML(arg1,arg2);
		return;
	}
	void protected_setXML(const QString& arg1) {
		KXMLGUIClient::setXML(arg1);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& arg1,bool arg2) {
		KXMLGUIClient::setDOMDocument(arg1,arg2);
		return;
	}
	void protected_setDOMDocument(const QDomDocument& arg1) {
		KXMLGUIClient::setDOMDocument(arg1);
		return;
	}
	void protected_conserveMemory() {
		KXMLGUIClient::conserveMemory();
		return;
	}
	void protected_stateChanged(const QString& arg1,KXMLGUIClient::ReverseStateChange arg2) {
		KXMLGUIClient::stateChanged(arg1,arg2);
		return;
	}
	void protected_stateChanged(const QString& arg1) {
		KXMLGUIClient::stateChanged(arg1);
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void conserveMemory() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.Plugin","conserveMemory")) {
			KXMLGUIClient::conserveMemory();
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.Plugin",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void setInstance(KInstance* arg1) {
		if (!QtSupport::eventDelegate(this,"setInstance",(void*)arg1,"org.kde.koala.KInstanceInterface")) {
			Plugin::setInstance(arg1);
		}
		return;
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_actionCollection(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->actionCollection(), "org.kde.koala.KActionCollection");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_action__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->action((const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_action__Lorg_kde_qt_QDomElement_2(JNIEnv* env, jobject obj, jobject element)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->action((const QDomElement&)*(const QDomElement*) QtSupport::getQt(env, element)), "org.kde.koala.KAction");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_addStateActionDisabled(JNIEnv* env, jobject obj, jstring state, jstring action)
{
static QString* _qstring_state = 0;
static QString* _qstring_action = 0;
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->addStateActionDisabled((const QString&)*(QString*) QtSupport::toQString(env, state, &_qstring_state), (const QString&)*(QString*) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_addStateActionEnabled(JNIEnv* env, jobject obj, jstring state, jstring action)
{
static QString* _qstring_state = 0;
static QString* _qstring_action = 0;
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->addStateActionEnabled((const QString&)*(QString*) QtSupport::toQString(env, state, &_qstring_state), (const QString&)*(QString*) QtSupport::toQString(env, action, &_qstring_action));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_beginXMLPlug(JNIEnv* env, jobject obj, jobject arg1)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->beginXMLPlug((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Plugin_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::Plugin*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_clientBuilder(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->clientBuilder(), "org.kde.koala.KXMLGUIBuilderInterface");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_conserveMemory(JNIEnv* env, jobject obj)
{
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_conserveMemory();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_domDocument(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDomDocument(((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->domDocument()), "org.kde.qt.QDomDocument", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_endXMLPlug(JNIEnv* env, jobject obj)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->endXMLPlug();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_factory(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->factory(), "org.kde.koala.KXMLGUIFactory");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Plugin_findMostRecentXMLFile(JNIEnv* env, jclass cls, jobjectArray files, jobject doc)
{
	QString  _qstring;
	(void) cls;
static QStringList* _qlist_files = 0;
static QString* _qstring_doc = 0;
	_qstring = PluginJBridge::findMostRecentXMLFile((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, files, &_qlist_files), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, doc, &_qstring_doc));
	QtSupport::fromQStringToStringBuffer(env, _qstring_doc, doc);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_insertChildClient(JNIEnv* env, jobject obj, jobject child)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->insertChildClient((KXMLGUIClient*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.KInstanceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_loadPlugin(JNIEnv* env, jclass cls, jobject parent, jstring libname)
{
	(void) cls;
static QCString* _qstring_libname = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)PluginJBridge::protected_loadPlugin((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, libname, &_qstring_libname)), "org.kde.koala.Plugin");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_loadPlugins__Lorg_kde_qt_QObject_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jclass cls, jobject parent, jobject instance)
{
	(void) cls;
	PluginJBridge::loadPlugins((QObject*) QtSupport::getQt(env, parent), (const KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_loadPlugins__Lorg_kde_qt_QObject_2Lorg_kde_koala_KXMLGUIClientInterface_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jclass cls, jobject parent, jobject parentGUIClient, jobject instance)
{
	(void) cls;
	PluginJBridge::loadPlugins((QObject*) QtSupport::getQt(env, parent), (KXMLGUIClient*) QtSupport::getQt(env, parentGUIClient), (KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_loadPlugins__Lorg_kde_qt_QObject_2Lorg_kde_koala_KXMLGUIClientInterface_2Lorg_kde_koala_KInstanceInterface_2Z(JNIEnv* env, jclass cls, jobject parent, jobject parentGUIClient, jobject instance, jboolean enableNewPluginsByDefault)
{
	(void) cls;
	PluginJBridge::loadPlugins((QObject*) QtSupport::getQt(env, parent), (KXMLGUIClient*) QtSupport::getQt(env, parentGUIClient), (KInstance*) QtSupport::getQt(env, instance), (bool) enableNewPluginsByDefault);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Plugin_localXMLFile(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KParts::Plugin*) QtSupport::getQt(env, obj))->localXMLFile();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Plugin*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_newPlugin__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PluginJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_newPlugin__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PluginJBridge((QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_newPlugin__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PluginJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_parentClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->parentClient(), "org.kde.koala.KXMLGUIClientInterface");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_prepareXMLUnplug(JNIEnv* env, jobject obj, jobject arg1)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->prepareXMLUnplug((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_reloadXML(JNIEnv* env, jobject obj)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->reloadXML();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_removeChildClient(JNIEnv* env, jobject obj, jobject child)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->removeChildClient((KXMLGUIClient*) QtSupport::getQt(env, child));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setClientBuilder(JNIEnv* env, jobject obj, jobject builder)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->setClientBuilder((KXMLGUIBuilder*) QtSupport::getQt(env, builder));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setDOMDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* env, jobject obj, jobject document)
{
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, document));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setDOMDocument__Lorg_kde_qt_QDomDocument_2Z(JNIEnv* env, jobject obj, jobject document, jboolean merge)
{
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setFactory(JNIEnv* env, jobject obj, jobject factory)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->setFactory((KXMLGUIFactory*) QtSupport::getQt(env, factory));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setInstance(JNIEnv* env, jobject obj, jobject instance)
{
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setLocalXMLFile(JNIEnv* env, jobject obj, jstring file)
{
static QString* _qstring_file = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setLocalXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXMLFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring file)
{
static QString* _qstring_file = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXMLFile__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring file, jboolean merge)
{
static QString* _qstring_file = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXMLFile__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring file, jboolean merge, jboolean setXMLDoc)
{
static QString* _qstring_file = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const QString&)*(QString*) QtSupport::toQString(env, file, &_qstring_file), (bool) merge, (bool) setXMLDoc);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXMLGUIBuildDocument(JNIEnv* env, jobject obj, jobject doc)
{
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->setXMLGUIBuildDocument((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, doc));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXML__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring document)
{
static QString* _qstring_document = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setXML((const QString&)*(QString*) QtSupport::toQString(env, document, &_qstring_document));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_setXML__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring document, jboolean merge)
{
static QString* _qstring_document = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_setXML((const QString&)*(QString*) QtSupport::toQString(env, document, &_qstring_document), (bool) merge);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_stateChanged__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring newstate)
{
static QString* _qstring_newstate = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((const QString&)*(QString*) QtSupport::toQString(env, newstate, &_qstring_newstate));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_stateChanged__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring newstate, jint reverse)
{
static QString* _qstring_newstate = 0;
	((PluginJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((const QString&)*(QString*) QtSupport::toQString(env, newstate, &_qstring_newstate), (KXMLGUIClient::ReverseStateChange) reverse);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Plugin_unplugActionList(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->unplugActionList((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Plugin_xmlFile(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KParts::Plugin*) QtSupport::getQt(env, obj))->xmlFile();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Plugin_xmlguiBuildDocument(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDomDocument(((KXMLGUIClient*)(KParts::Plugin*) QtSupport::getQt(env, obj))->xmlguiBuildDocument()), "org.kde.qt.QDomDocument", TRUE);
	return xret;
}

