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

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

class DCOPClientJBridge : public DCOPClient
{
public:
	DCOPClientJBridge() : DCOPClient() {};
	void protected_processSocketData(int arg1) {
		DCOPClient::processSocketData(arg1);
		return;
	}
	~DCOPClientJBridge() {QtSupport::qtKeyDeleted(this);}
	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;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.DCOPClient",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_acceptCalls(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->acceptCalls();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_appId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPClient*) QtSupport::getQt(env, obj))->appId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_attach(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->attach();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_bindToApp(JNIEnv* env, jobject obj)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->bindToApp();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_DCOPClient_callAsync(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jbyteArray data, jobject callBackObj, jstring callBackSlot)
{
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
static QCString* _qcstring_remFun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qstring_callBackSlot = 0;
	jint xret = (jint) ((DCOPClient*) QtSupport::getQt(env, obj))->callAsync((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, remFun, &_qcstring_remFun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QObject*) QtSupport::getQt(env, callBackObj), (const char*) QtSupport::toCharString(env, callBackSlot, &_qstring_callBackSlot));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_call(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jbyteArray data, jobject replyType, jbyteArray replyData, jboolean useEventLoop, jint timeout)
{
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
static QCString* _qcstring_remFun = 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) ((DCOPClient*) QtSupport::getQt(env, obj))->call((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, remFun, &_qcstring_remFun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_replyType, (QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, replyData, &_qbyteArray_replyData), (bool) useEventLoop, (int) timeout);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_replyType, replyType);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_connectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring receiverObj, jstring slot, jboolean Volatile)
{
static QCString* _qcstring_sender = 0;
static QCString* _qcstring_senderObj = 0;
static QCString* _qcstring_signal = 0;
static QCString* _qcstring_receiverObj = 0;
static QCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPClient*) 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, receiverObj, &_qcstring_receiverObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, slot, &_qcstring_slot), (bool) Volatile);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_dcopServerFile__(JNIEnv* env, jclass cls)
{
	QCString  _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::dcopServerFile();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_dcopServerFile__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring hostname)
{
	QCString  _qstring;
	(void) cls;
static QCString* _qcstring_hostname = 0;
	_qstring = DCOPClientJBridge::dcopServerFile((const QCString&)*(QCString*) QtSupport::toQCString(env, hostname, &_qcstring_hostname));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_defaultObject(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPClient*) QtSupport::getQt(env, obj))->defaultObject();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_detach(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->detach();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_disconnectDCOPSignal(JNIEnv* env, jobject obj, jstring sender, jstring senderObj, jstring signal, jstring receiverObj, jstring slot)
{
static QCString* _qcstring_sender = 0;
static QCString* _qcstring_senderObj = 0;
static QCString* _qcstring_signal = 0;
static QCString* _qcstring_receiverObj = 0;
static QCString* _qcstring_slot = 0;
	jboolean xret = (jboolean) ((DCOPClient*) 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, receiverObj, &_qcstring_receiverObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, slot, &_qcstring_slot));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_DCOPClient_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_emergencyClose(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	DCOPClientJBridge::emergencyClose();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_emitDCOPSignal__Ljava_lang_String_2Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring object, jstring signal, jbyteArray data)
{
static QCString* _qcstring_object = 0;
static QCString* _qcstring_signal = 0;
static QByteArray* _qbyteArray_data = 0;
	((DCOPClient*) QtSupport::getQt(env, obj))->emitDCOPSignal((const QCString&)*(QCString*) QtSupport::toQCString(env, object, &_qcstring_object), (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_DCOPClient_emitDCOPSignal__Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static QCString* _qcstring_signal = 0;
static QByteArray* _qbyteArray_data = 0;
	((DCOPClient*) 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_DCOPClient_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((DCOPClient*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (DCOPClient*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_findLocalClient(JNIEnv* env, jclass cls, jstring _appId)
{
	(void) cls;
static QCString* _qcstring__appId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPClientJBridge::findLocalClient((const QCString&)*(QCString*) QtSupport::toQCString(env, _appId, &_qcstring__appId)), "org.kde.koala.DCOPClient");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_findObject(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jbyteArray data, jobject foundApp, jobject foundObj, jboolean useEventLoop, jint timeout)
{
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
static QCString* _qcstring_remFun = 0;
static QByteArray* _qbyteArray_data = 0;
static QCString* _qcstring_foundApp = 0;
	if (_qcstring_foundApp == 0) {
		_qcstring_foundApp = new QCString();
	}
static QCString* _qcstring_foundObj = 0;
	if (_qcstring_foundObj == 0) {
		_qcstring_foundObj = new QCString();
	}
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->findObject((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, remFun, &_qcstring_remFun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (QCString&)*(QCString*) _qcstring_foundApp, (QCString&)*(QCString*) _qcstring_foundObj, (bool) useEventLoop, (int) timeout);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_foundApp, foundApp);
	QtSupport::fromQCStringToStringBuffer(env, _qcstring_foundObj, foundObj);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_find(JNIEnv* env, jobject obj, jstring app, jstring arg2, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_app = 0;
static QCString* _qcstring_arg2 = 0;
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) ((DCOPClient*) QtSupport::getQt(env, obj))->find((const QCString&)*(QCString*) QtSupport::toQCString(env, app, &_qcstring_app), (const QCString&)*(QCString*) QtSupport::toQCString(env, arg2, &_qcstring_arg2), (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 jstring JNICALL
Java_org_kde_koala_DCOPClient_iceauthPath(JNIEnv* env, jclass cls)
{
	QCString  _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::iceauthPath();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_isApplicationRegistered(JNIEnv* env, jobject obj, jstring remApp)
{
static QCString* _qcstring_remApp = 0;
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->isApplicationRegistered((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_isAttachedToForeignServer(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->isAttachedToForeignServer();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_isAttached(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->isAttached();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_isRegistered(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->isRegistered();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_isSuspended(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->isSuspended();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_mainClient(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPClientJBridge::mainClient(), "org.kde.koala.DCOPClient");
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_normalizeFunctionSignature(JNIEnv* env, jclass cls, jstring fun)
{
	QCString  _qstring;
	(void) cls;
static QCString* _qcstring_fun = 0;
	_qstring = DCOPClientJBridge::normalizeFunctionSignature((const QCString&)*(QCString*) QtSupport::toQCString(env, fun, &_qcstring_fun));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_postMortemFunction(JNIEnv* env, jclass cls)
{
	const char* _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::postMortemFunction();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_postMortemObject(JNIEnv* env, jclass cls)
{
	const char* _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::postMortemObject();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_postMortemSender(JNIEnv* env, jclass cls)
{
	const char* _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::postMortemSender();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_processSocketData(JNIEnv* env, jobject obj, jint socknum)
{
	((DCOPClientJBridge*) QtSupport::getQt(env, obj))->protected_processSocketData((int) socknum);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_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) ((DCOPClient*) 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_DCOPClient_qtBridgeEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->qtBridgeEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_receive(JNIEnv* env, jobject obj, jstring app, jstring arg2, jstring fun, jbyteArray data, jobject replyType, jbyteArray replyData)
{
static QCString* _qcstring_app = 0;
static QCString* _qcstring_arg2 = 0;
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) ((DCOPClient*) QtSupport::getQt(env, obj))->receive((const QCString&)*(QCString*) QtSupport::toQCString(env, app, &_qcstring_app), (const QCString&)*(QCString*) QtSupport::toQCString(env, arg2, &_qcstring_arg2), (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 jstring JNICALL
Java_org_kde_koala_DCOPClient_registerAs__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring appId)
{
	QCString  _qstring;
static QCString* _qcstring_appId = 0;
	_qstring = ((DCOPClient*) QtSupport::getQt(env, obj))->registerAs((const QCString&)*(QCString*) QtSupport::toQCString(env, appId, &_qcstring_appId));
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_registerAs__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring appId, jboolean addPID)
{
	QCString  _qstring;
static QCString* _qcstring_appId = 0;
	_qstring = ((DCOPClient*) QtSupport::getQt(env, obj))->registerAs((const QCString&)*(QCString*) QtSupport::toQCString(env, appId, &_qcstring_appId), (bool) addPID);
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_registeredApplications(JNIEnv* env, jobject obj)
{
	QCStringList  _qlist;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->registeredApplications();
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteFunctions__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp, jstring remObj)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteFunctions((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteFunctions__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jbooleanArray ok)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteFunctions((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteInterfaces__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp, jstring remObj)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteInterfaces((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteInterfaces__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jbooleanArray ok)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteInterfaces((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteObjects__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteObjects((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DCOPClient_remoteObjects__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jbooleanArray ok)
{
	QCStringList  _qlist;
static QCString* _qcstring_remApp = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteObjects((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_resume(JNIEnv* env, jobject obj)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->resume();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_send__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jstring data)
{
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
static QCString* _qcstring_remFun = 0;
static QString* _qstring_data = 0;
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->send((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, remFun, &_qcstring_remFun), (const QString&)*(QString*) QtSupport::toQString(env, data, &_qstring_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_DCOPClient_send__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jbyteArray data)
{
static QCString* _qcstring_remApp = 0;
static QCString* _qcstring_remObj = 0;
static QCString* _qcstring_remFun = 0;
static QByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->send((const QCString&)*(QCString*) QtSupport::toQCString(env, remApp, &_qcstring_remApp), (const QCString&)*(QCString*) QtSupport::toQCString(env, remObj, &_qcstring_remObj), (const QCString&)*(QCString*) QtSupport::toQCString(env, remFun, &_qcstring_remFun), (const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_DCOPClient_senderId(JNIEnv* env, jobject obj)
{
	QCString  _qstring;
	_qstring = ((DCOPClient*) QtSupport::getQt(env, obj))->senderId();
	return QtSupport::fromQCString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setAcceptCalls(JNIEnv* env, jobject obj, jboolean b)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->setAcceptCalls((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setDaemonMode(JNIEnv* env, jobject obj, jboolean daemonMode)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->setDaemonMode((bool) daemonMode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setDefaultObject(JNIEnv* env, jobject obj, jstring objId)
{
static QCString* _qcstring_objId = 0;
	((DCOPClient*) QtSupport::getQt(env, obj))->setDefaultObject((const QCString&)*(QCString*) QtSupport::toQCString(env, objId, &_qcstring_objId));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setMainClient(JNIEnv* env, jclass cls, jobject mainClient)
{
	(void) cls;
	DCOPClientJBridge::setMainClient((DCOPClient*) QtSupport::getQt(env, mainClient));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setNotifications(JNIEnv* env, jobject obj, jboolean enabled)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->setNotifications((bool) enabled);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setPriorityCall(JNIEnv* env, jobject obj, jboolean arg1)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->setPriorityCall((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setQtBridgeEnabled(JNIEnv* env, jobject obj, jboolean b)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->setQtBridgeEnabled((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_setServerAddress(JNIEnv* env, jclass cls, jstring addr)
{
	(void) cls;
static QCString* _qcstring_addr = 0;
	DCOPClientJBridge::setServerAddress((const QCString&)*(QCString*) QtSupport::toQCString(env, addr, &_qcstring_addr));
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_DCOPClient_socket(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DCOPClient*) QtSupport::getQt(env, obj))->socket();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_DCOPClient_suspend(JNIEnv* env, jobject obj)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->suspend();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_DCOPClient_transactionId(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DCOPClient*) QtSupport::getQt(env, obj))->transactionId();
	return xret;
}

