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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/KXMLGUIFactory.h>

class KXMLGUIFactoryJBridge : public KXMLGUIFactory
{
public:
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1,TQObject* arg2,const char* arg3) : KXMLGUIFactory(arg1,arg2,arg3) {};
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1,TQObject* arg2) : KXMLGUIFactory(arg1,arg2) {};
	KXMLGUIFactoryJBridge(KXMLGUIBuilder* arg1) : KXMLGUIFactory(arg1) {};
	~KXMLGUIFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KXMLGUIFactory",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KXMLGUIFactory_configureShortcuts__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KXMLGUIFactory*) QtSupport::getQt(env, obj))->configureShortcuts();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KXMLGUIFactory_container__Ljava_lang_String_2Lorg_trinitydesktop_koala_KXMLGUIClientInterface_2(JNIEnv* env, jobject obj, jstring containerName, jobject client)
{
static TQString* _qstring_containerName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIFactory*) QtSupport::getQt(env, obj))->container((const TQString&)*(TQString*) QtSupport::toTQString(env, containerName, &_qstring_containerName), (KXMLGUIClient*) QtSupport::getQt(env, client)), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KXMLGUIFactory_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_documentToXML(JNIEnv* env, jclass cls, jobject doc)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KXMLGUIFactoryJBridge::documentToXML((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, doc));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_elementToXML(JNIEnv* env, jclass cls, jobject elem)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KXMLGUIFactoryJBridge::elementToXML((const TQDomElement&)*(const TQDomElement*) QtSupport::getQt(env, elem));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KXMLGUIFactory_findActionByName(JNIEnv* env, jclass cls, jobject elem, jstring sName, jboolean create)
{
	(void) cls;
static TQString* _qstring_sName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(KXMLGUIFactoryJBridge::findActionByName((TQDomElement&)*(TQDomElement*) QtSupport::getQt(env, elem), (const TQString&)*(TQString*) QtSupport::toTQString(env, sName, &_qstring_sName), (bool) create)), "org.trinitydesktop.qt.TQDomElement", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_newKXMLGUIFactory__Lorg_trinitydesktop_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_trinitydesktop_koala_KXMLGUIFactory_newKXMLGUIFactory__Lorg_trinitydesktop_koala_KXMLGUIBuilderInterface_2Lorg_trinitydesktop_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), (TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_newKXMLGUIFactory__Lorg_trinitydesktop_koala_KXMLGUIBuilderInterface_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject builder, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KXMLGUIFactoryJBridge((KXMLGUIBuilder*) QtSupport::getQt(env, builder), (TQObject*) 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_trinitydesktop_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filename)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2Lorg_trinitydesktop_koala_TDEInstanceInterface_2(JNIEnv* env, jclass cls, jstring filename, jobject instance)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TDEInstance*) QtSupport::getQt(env, instance));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring filename, jboolean never_null)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) never_null);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_readConfigFile__Ljava_lang_String_2ZLorg_trinitydesktop_koala_TDEInstanceInterface_2(JNIEnv* env, jclass cls, jstring filename, jboolean never_null, jobject instance)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_filename = 0;
	_qstring = KXMLGUIFactoryJBridge::readConfigFile((const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) never_null, (const TDEInstance*) QtSupport::getQt(env, instance));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KXMLGUIFactory_removeDOMComments(JNIEnv* env, jclass cls, jobject node)
{
	(void) cls;
	KXMLGUIFactoryJBridge::removeDOMComments((TQDomNode&)*(TQDomNode*) QtSupport::getQt(env, node));
	return;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KXMLGUIFactory_saveConfigFile__Lorg_trinitydesktop_qt_QDomDocument_2Ljava_lang_String_2Lorg_trinitydesktop_koala_TDEInstanceInterface_2(JNIEnv* env, jclass cls, jobject doc, jstring filename, jobject instance)
{
	(void) cls;
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) KXMLGUIFactoryJBridge::saveConfigFile((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, doc), (const TQString&)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (const TDEInstance*) QtSupport::getQt(env, instance));
	return xret;
}

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

