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

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

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

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_DCOPClient_callAsync(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jstring remFun, jbyteArray data, jobject callBackObj, jstring callBackSlot)
{
static TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
static TQCString* _qcstring_remFun = 0;
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qstring_callBackSlot = 0;
	jint xret = (jint) ((DCOPClient*) QtSupport::getQt(env, obj))->callAsync((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remObj, &_qcstring_remObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remFun, &_qcstring_remFun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (TQObject*) QtSupport::getQt(env, callBackObj), (const char*) QtSupport::toCharString(env, callBackSlot, &_qstring_callBackSlot));
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_DCOPClient_dcopServerFile__(JNIEnv* env, jclass cls)
{
	TQCString  _qstring;
	(void) cls;
	_qstring = DCOPClientJBridge::dcopServerFile();
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_DCOPClient_dcopServerFile__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring hostname)
{
	TQCString  _qstring;
	(void) cls;
static TQCString* _qcstring_hostname = 0;
	_qstring = DCOPClientJBridge::dcopServerFile((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, hostname, &_qcstring_hostname));
	return QtSupport::fromTQCString(env, &_qstring);
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_DCOPClient_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_DCOPClient_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_DCOPClient_emitDCOPSignal__Ljava_lang_String_2Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring object, jstring signal, jbyteArray data)
{
static TQCString* _qcstring_object = 0;
static TQCString* _qcstring_signal = 0;
static TQByteArray* _qbyteArray_data = 0;
	((DCOPClient*) QtSupport::getQt(env, obj))->emitDCOPSignal((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, object, &_qcstring_object), (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_DCOPClient_emitDCOPSignal__Ljava_lang_String_2_3B(JNIEnv* env, jobject obj, jstring signal, jbyteArray data)
{
static TQCString* _qcstring_signal = 0;
static TQByteArray* _qbyteArray_data = 0;
	((DCOPClient*) 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_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_trinitydesktop_koala_DCOPClient_findLocalClient(JNIEnv* env, jclass cls, jstring _appId)
{
	(void) cls;
static TQCString* _qcstring__appId = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)DCOPClientJBridge::findLocalClient((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, _appId, &_qcstring__appId)), "org.trinitydesktop.koala.DCOPClient");
	return xret;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_DCOPClient_normalizeFunctionSignature(JNIEnv* env, jclass cls, jstring fun)
{
	TQCString  _qstring;
	(void) cls;
static TQCString* _qcstring_fun = 0;
	_qstring = DCOPClientJBridge::normalizeFunctionSignature((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, fun, &_qcstring_fun));
	return QtSupport::fromTQCString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_DCOPClient_processSocketData(JNIEnv* env, jobject obj, jint socknum)
{
	((DCOPClientJBridge*) QtSupport::getQt(env, obj))->protected_processSocketData((int) socknum);
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_DCOPClient_remoteFunctions__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp, jstring remObj)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteFunctions((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remObj, &_qcstring_remObj));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DCOPClient_remoteFunctions__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jbooleanArray ok)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteFunctions((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(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_trinitydesktop_koala_DCOPClient_remoteInterfaces__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp, jstring remObj)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteInterfaces((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remObj, &_qcstring_remObj));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DCOPClient_remoteInterfaces__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jstring remObj, jbooleanArray ok)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteInterfaces((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(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_trinitydesktop_koala_DCOPClient_remoteObjects__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring remApp)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteObjects((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp));
	return (jobject) KDESupport::arrayWithQCStringList(env, (QCStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_DCOPClient_remoteObjects__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring remApp, jbooleanArray ok)
{
	QCStringList  _qlist;
static TQCString* _qcstring_remApp = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qlist = ((DCOPClient*) QtSupport::getQt(env, obj))->remoteObjects((const TQCString&)*(TQCString*) QtSupport::toTQCString(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_trinitydesktop_koala_DCOPClient_resume(JNIEnv* env, jobject obj)
{
	((DCOPClient*) QtSupport::getQt(env, obj))->resume();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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 TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
static TQCString* _qcstring_remFun = 0;
static TQString* _qstring_data = 0;
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->send((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remObj, &_qcstring_remObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remFun, &_qcstring_remFun), (const TQString&)*(TQString*) QtSupport::toTQString(env, data, &_qstring_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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 TQCString* _qcstring_remApp = 0;
static TQCString* _qcstring_remObj = 0;
static TQCString* _qcstring_remFun = 0;
static TQByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((DCOPClient*) QtSupport::getQt(env, obj))->send((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remApp, &_qcstring_remApp), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remObj, &_qcstring_remObj), (const TQCString&)*(TQCString*) QtSupport::toTQCString(env, remFun, &_qcstring_remFun), (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

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

