//Auto-generated by kalyptus. DO NOT EDIT.
#include <qglobal.h>
#include <ksycoca.h>
#include <dcopclient.h>
#include <qstring.h>
#include <qstringlist.h>
#include <dcopobject.h>
#include <ksycocatype.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/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(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.KSycoca",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_koala_KSycoca_closeDatabase(JNIEnv* env, jobject obj)
{
	((KSycocaJBridge*) QtSupport::getQt(env, obj))->protected_closeDatabase();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSycoca_determineRelativePath(JNIEnv* env, jclass cls, jstring _fullpath, jstring _resource)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring__fullpath = 0;
static QCString* _qstring__resource = 0;
	_qstring = KSycocaJBridge::determineRelativePath((const QString&)*(QString*) QtSupport::toQString(env, _fullpath, &_qstring__fullpath), (const char*) QtSupport::toCharString(env, _resource, &_qstring__resource));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KSycoca_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSycoca_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSycoca_emitDCOPSignal(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static QCString* _qcstring_signal = 0;
static QByteArray* _qbyteArray_data = 0;
	((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->emitDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, signal, &_qcstring_signal), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_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.kde.qt.QDataStream");
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_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_kde_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_kde_koala_KSycoca_hasObject(JNIEnv* env, jclass cls, jstring objId)
{
	(void) cls;
static QCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) KSycocaJBridge::hasObject((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_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_kde_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_kde_koala_KSycoca_isBuilding(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSycoca*) QtSupport::getQt(env, obj))->isBuilding();
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_koala_KSycoca_objId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->objId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSycoca_objectName(JNIEnv* env, jclass cls, jobject arg1)
{
	QCString  _qstring;
	(void) cls;
	_qstring = KSycocaJBridge::objectName((QObject*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQCString(env, &_qstring);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_koala_KSycoca_processDynamic(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->processDynamic((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSycoca_process(JNIEnv* env, jobject obj, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_fun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_replyType = 0;
	if (_qcstring_replyType == 0) {
		_qcstring_replyType = new QCString();
	}
static QByteArray* _qbyteArray_replyData = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->process((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData));
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSycoca_setObjId(JNIEnv* env, jobject obj, jstring objId)
{
static QCString* _qcstring_objId = 0;
	jboolean xret = (jboolean) ((DCOPObject*)(KSycoca*) QtSupport::getQt(env, obj))->setObjId((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
	return xret;
}

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

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

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

