//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqglobal.h>
#include <tdesycoca.h>
#include <dcopclient.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <dcopobject.h>
#include <tdesycocatype.h>
#include <tqcstring.h>

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

class KSycocaJBridge : public KSycoca
{
public:
	KSycocaJBridge() : KSycoca() {};
	KSycocaJBridge(bool arg1) : KSycoca(arg1) {};
	bool protected_checkVersion(bool arg1) {
		return (bool) KSycoca::checkVersion(arg1);
	}
	bool protected_checkVersion() {
		return (bool) KSycoca::checkVersion();
	}
	bool protected_openDatabase(bool arg1) {
		return (bool) KSycoca::openDatabase(arg1);
	}
	bool protected_openDatabase() {
		return (bool) KSycoca::openDatabase();
	}
	void protected_closeDatabase() {
		KSycoca::closeDatabase();
		return;
	}
	~KSycocaJBridge() {QtSupport::qtKeyDeleted(this);}
	bool isBuilding() {
		return QtSupport::booleanDelegate(this,"isBuilding");
	}
	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.KSycoca",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_allResourceDirs(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KSycoca*) QtSupport::getQt(env, obj))->allResourceDirs();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_callingDcopClient(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->callingDcopClient(), "org.trinitydesktop.koala.DCOPClient");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_checkVersion__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_checkVersion();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_checkVersion__Z(JNIEnv* env, jobject obj, jboolean abortOnError)
{
	jboolean xret = (jboolean) ((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_checkVersion((bool) abortOnError);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_closeDatabase(JNIEnv* env, jobject obj)
{
	((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_closeDatabase();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot, jboolean Volatile)
{
static TQCString* _qcstring_sender = 0;
static TQCString* _qcstring_senderObj = 0;
static TQCString* _qcstring_signal = 0;
static TQCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->connectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot), (bool) Volatile);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSycoca_determineRelativePath(JNIEnv* env, jclass cls, jstring _fullpath, jstring _resource)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring__fullpath = 0;
static TQCString* _qstring__resource = 0;
	_qstring = KSycocaJBridge::determineRelativePath((const TQString&)*(TQString*) QtSupport::toTQString(env, _fullpath, &_qstring__fullpath), (const char*) QtSupport::toCharString(env, _resource, &_qstring__resource));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_disableAutoRebuild(JNIEnv* env, jobject obj)
{
	((KSycoca*) QtSupport::getQt(env, obj))->disableAutoRebuild();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_disconnectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring slot)
{
static TQCString* _qcstring_sender = 0;
static TQCString* _qcstring_senderObj = 0;
static TQCString* _qcstring_signal = 0;
static TQCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->disconnectDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, sender, &_qcstring_sender), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, senderObj, &_qcstring_senderObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, slot, &_qcstring_slot));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSycoca_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static TQCString* _qcstring_signal = 0;
static TQByteArray* _qbyteArray_data = 0;
	((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->emitDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, signal, &_qcstring_signal), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_findEntry(JNIEnv* env, jobject obj, jint offset, jint type)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KSycoca*) QtSupport::getQt(env, obj))->findEntry((int) offset, (KSycocaType&) type), "org.trinitydesktop.qt.TQDataStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_findFactory(JNIEnv* env, jobject obj, jint id)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KSycoca*) QtSupport::getQt(env, obj))->findFactory((KSycocaFactoryId) id), "org.trinitydesktop.qt.TQDataStream");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_find(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static TQCString* _qcstring_objId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSycocaJBridge::find((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId)), "org.trinitydesktop.koala.DCOPObjectInterface");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_flagError(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KSycocaJBridge::flagError();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_functionsDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->functionsDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_functions(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->functions();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_hasObject(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static TQCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) KSycocaJBridge::hasObject((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_interfacesDynamic(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->interfacesDynamic();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_interfaces(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->interfaces();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_isBuilding(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSycoca*) QtSupport::getQt(env, obj))->isBuilding();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_isChanged(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQCString* _qstring_type = 0;
	jboolean xret = (jboolean) KSycocaJBridge::isChanged((const char*) QtSupport::toCharString(env, type, &_qstring_type));
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSycoca_kfsstnd_1prefixes(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KSycoca*) QtSupport::getQt(env, obj))->kfsstnd_prefixes();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSycoca_language(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KSycoca*) QtSupport::getQt(env, obj))->language();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_newKSycoca__Z(JNIEnv* env, jobject obj, jboolean arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSycocaJBridge((bool) arg1));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSycoca_objId(JNIEnv* env, jobject obj)
{
	TQCString  _qstring;
	_qstring = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->objId();
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSycoca_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
	TQCString  _qstring;
	(void) cls;
	_qstring = KSycocaJBridge::objectName((TQObject*) QtSupport::getQt(env, arg1));
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_openDatabase__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_openDatabase();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_openDatabase__Z(JNIEnv* env, jobject obj, jboolean openDummyIfNotFound)
{
	jboolean xret = (jboolean) ((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_openDatabase((bool) openDummyIfNotFound);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static TQCString* _qcstring_fun = 0;
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new TQCString();
	}
static TQByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->processDynamic((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static TQCString* _qcstring_fun = 0;
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new TQCString();
	}
static TQByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->process((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQCString&)*(TQCString*) _qcstring_replyType, (TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromTQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_readError(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KSycocaJBridge::readError();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSycoca_self(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSycocaJBridge::self(), "org.trinitydesktop.koala.KSycoca");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSycoca_setCallingDcopClient(JNIEnv* env, jobject obj, jobject arg1)
{
	((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->setCallingDcopClient((DCOPClient*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSycoca_setObjId(JNIEnv* env, jobject obj, jstring objId)
{
static TQCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->setObjId((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KSycoca_timeStamp(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KSycoca*) QtSupport::getQt(env, obj))->timeStamp();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KSycoca_updateSignature(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KSycoca*) QtSupport::getQt(env, obj))->updateSignature();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KSycoca_version(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) KSycocaJBridge::version();
	return xret;
}

