//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qdom.h>
#include <kxmlguifactory.h>

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

class KXMLGUIFactoryJBridge : public KXMLGUIFactory
{
public:
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1,QObject* arg2,const char* arg3) : KXMLGUIFactory(arg1,arg2,arg3) {};
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1,QObject* arg2) : KXMLGUIFactory(arg1,arg2) {};
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1) : KXMLGUIFactory(arg1) {};
	~KXMLGUIFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		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.KXMLGUIFactory",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KXMLGUIFactory_actionPropertiesElement(JNIEnv* env, jclass cls, jobject doc)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDomElement(KXMLGUIFactoryJBridge::actionPropertiesElement((QDomDocument&)*(QDomDocument*) QtSupport::getQt(env, doc))), "org.kde.qt.QDomElement", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_addClient(JNIEnv* env, jobject obj, jobject client)
{
	((KXMLGUIFactory*) QtSupport::getQt(env, obj))->addClient((KXMLGUIClient*) QtSupport::getQt(env, client));
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KXMLGUIFactory_configureShortcuts__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KXMLGUIFactory*) QtSupport::getQt(env, obj))->configureShortcuts();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KXMLGUIFactory_configureShortcuts__Z(JNIEnv* env, jobject obj, jboolean bAllowLetterShortcuts)
{
	jint xret = (jint) ((KXMLGUIFactory*) QtSupport::getQt(env, obj))->configureShortcuts((bool) bAllowLetterShortcuts);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KXMLGUIFactory_configureShortcuts__ZZ(JNIEnv* env, jobject obj, jboolean bAllowLetterShortcuts, jboolean bSaveSettings)
{
	jint xret = (jint) ((KXMLGUIFactory*) QtSupport::getQt(env, obj))->configureShortcuts((bool) bAllowLetterShortcuts, (bool) bSaveSettings);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KXMLGUIFactory_container__Ljava_lang_String_2Lorg_kde_koala_KXMLGUIClientInterface_2(JNIEnv* env, jobject obj, jstring containerName, jobject client)
{
static QString* _qstring_containerName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIFactory*) QtSupport::getQt(env, obj))->container((const QString&)*(QString*) QtSupport::toQString(env, containerName, &_qstring_containerName), (KXMLGUIClient*) QtSupport::getQt(env, client)), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KXMLGUIFactory_container__Ljava_lang_String_2Lorg_kde_koala_KXMLGUIClientInterface_2Z(JNIEnv* env, jobject obj, jstring containerName, jobject client, jboolean useTagName)
{
static QString* _qstring_containerName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIFactory*) QtSupport::getQt(env, obj))->container((const QString&)*(QString*) QtSupport::toQString(env, containerName, &_qstring_containerName), (KXMLGUIClient*) QtSupport::getQt(env, client), (bool) useTagName), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KXMLGUIFactory_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_documentToXML(JNIEnv* env, jclass cls, jobject doc)
{
	QString  _qstring;
	(void) cls;
	_qstring = KXMLGUIFactoryJBridge::documentToXML((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, doc));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_elementToXML(JNIEnv* env, jclass cls, jobject elem)
{
	QString  _qstring;
	(void) cls;
	_qstring = KXMLGUIFactoryJBridge::elementToXML((const QDomElement&)*(const QDomElement*) QtSupport::getQt(env, elem));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KXMLGUIFactory*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KXMLGUIFactory*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KXMLGUIFactory_findActionByName(JNIEnv* env, jclass cls, jobject elem, jstring sName, jboolean create)
{
	(void) cls;
static QString* _qstring_sName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDomElement(KXMLGUIFactoryJBridge::findActionByName((QDomElement&)*(QDomElement*) QtSupport::getQt(env, elem), (const QString&)*(QString*) QtSupport::toQString(env, sName, &_qstring_sName), (bool) create)), "org.kde.qt.QDomElement", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KXMLGUIFactory_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filename)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jclass cls, jstring filename, jobject instance)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const KInstance*) QtSupport::getQt(env, instance));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring filename, jboolean never_null)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (bool) never_null);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2ZLorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jclass cls, jstring filename, jboolean never_null, jobject instance)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (bool) never_null, (const KInstance*) QtSupport::getQt(env, instance));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_removeClient(JNIEnv* env, jobject obj, jobject client)
{
	((KXMLGUIFactory*) QtSupport::getQt(env, obj))->removeClient((KXMLGUIClient*) QtSupport::getQt(env, client));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_removeDOMComments(JNIEnv* env, jclass cls, jobject node)
{
	(void) cls;
	KXMLGUIFactoryJBridge::removeDOMComments((QDomNode&)*(QDomNode*) QtSupport::getQt(env, node));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_resetContainer__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring containerName)
{
static QString* _qstring_containerName = 0;
	((KXMLGUIFactory*) QtSupport::getQt(env, obj))->resetContainer((const QString&)*(QString*) QtSupport::toQString(env, containerName, &_qstring_containerName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_resetContainer__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring containerName, jboolean useTagName)
{
static QString* _qstring_containerName = 0;
	((KXMLGUIFactory*) QtSupport::getQt(env, obj))->resetContainer((const QString&)*(QString*) QtSupport::toQString(env, containerName, &_qstring_containerName), (bool) useTagName);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KXMLGUIFactory_reset(JNIEnv* env, jobject obj)
{
	((KXMLGUIFactory*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KXMLGUIFactory_saveConfigFile__Lorg_kde_qt_QDomDocument_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject doc, jstring filename)
{
	(void) cls;
static QString* _qstring_filename = 0;
	jboolean xret = (jboolean) KXMLGUIFactoryJBridge::saveConfigFile((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, doc), (const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KXMLGUIFactory_saveConfigFile__Lorg_kde_qt_QDomDocument_2Ljava_lang_String_2Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jclass cls, jobject doc, jstring filename, jobject instance)
{
	(void) cls;
static QString* _qstring_filename = 0;
	jboolean xret = (jboolean) KXMLGUIFactoryJBridge::saveConfigFile((const QDomDocument&)*(const QDomDocument*) QtSupport::getQt(env, doc), (const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const KInstance*) QtSupport::getQt(env, instance));
	return xret;
}

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

