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

#include <qtjava/QtSupport.h>
#include <qtjava/TQSocket.h>

class TQSocketJBridge : public TQSocket
{
public:
	TQSocketJBridge(TQObject* arg1,const char* arg2) : TQSocket(arg1,arg2) {};
	TQSocketJBridge(TQObject* arg1) : TQSocket(arg1) {};
	TQSocketJBridge() : TQSocket() {};
	void protected_sn_read(bool arg1) {
		TQSocket::sn_read(arg1);
		return;
	}
	void protected_sn_read() {
		TQSocket::sn_read();
		return;
	}
	void protected_sn_write() {
		TQSocket::sn_write();
		return;
	}
	~TQSocketJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_setFlags(int arg1) {
		TQIODevice::setFlags(arg1);
		return;
	}
	void protected_setType(int arg1) {
		TQIODevice::setType(arg1);
		return;
	}
	void protected_setMode(int arg1) {
		TQIODevice::setMode(arg1);
		return;
	}
	void protected_setState(int arg1) {
		TQIODevice::setState(arg1);
		return;
	}
	void protected_setStatus(int arg1) {
		TQIODevice::setStatus(arg1);
		return;
	}
	void setSocketDevice(TQSocketDevice* arg1) {
		if (!QtSupport::eventDelegate(this,"setSocketDevice",(void*)arg1,"org.trinitydesktop.qt.TQSocketDevice")) {
			TQSocket::setSocketDevice(arg1);
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void sn_write() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQSocket","sn_write")) {
			TQSocket::sn_write();
		}
		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.qt.TQSocket",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSocket_address(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQHostAddress(((TQSocket*) QtSupport::getQt(env, obj))->address()), "org.trinitydesktop.qt.TQHostAddress", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_atEnd(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSocket*) QtSupport::getQt(env, obj))->atEnd();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_at__(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->at();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_at__J(JNIEnv* env, jobject obj, jlong arg1)
{
	jboolean xret = (jboolean) ((TQSocket*) QtSupport::getQt(env, obj))->at((TQIODevice::Offset) arg1);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_bytesAvailable(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->bytesAvailable();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_bytesToWrite(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->bytesToWrite();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_canReadLine(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSocket*) QtSupport::getQt(env, obj))->canReadLine();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_clearPendingData(JNIEnv* env, jobject obj)
{
	((TQSocket*) QtSupport::getQt(env, obj))->clearPendingData();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_close(JNIEnv* env, jobject obj)
{
	((TQSocket*) QtSupport::getQt(env, obj))->close();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_connectToHost(JNIEnv* env, jobject obj, jstring host, jshort port)
{
static TQString* _qstring_host = 0;
	((TQSocket*) QtSupport::getQt(env, obj))->connectToHost((const TQString&)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (TQ_UINT16) port);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSocket_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_flags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->flags();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_flush(JNIEnv* env, jobject obj)
{
	((TQSocket*) QtSupport::getQt(env, obj))->flush();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_getch(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSocket*) QtSupport::getQt(env, obj))->getch();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isAsynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isAsynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isBuffered(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isBuffered();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isCombinedAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isCombinedAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isDirectAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isDirectAccess();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isInactive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isInactive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isOpen(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isOpen();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isRaw(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isRaw();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isReadWrite(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isReadWrite();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isSequentialAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isSequentialAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isSynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isSynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isTranslated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isTranslated();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_isWritable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->isWritable();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_newTQSocket__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSocketJBridge((TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_open(JNIEnv* env, jobject obj, jint mode)
{
	jboolean xret = (jboolean) ((TQSocket*) QtSupport::getQt(env, obj))->open((int) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSocket_peerAddress(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQHostAddress(((TQSocket*) QtSupport::getQt(env, obj))->peerAddress()), "org.trinitydesktop.qt.TQHostAddress", true);
	return xret;
}

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

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_qt_QSocket_peerPort(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((TQSocket*) QtSupport::getQt(env, obj))->peerPort();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_qt_QSocket_port(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((TQSocket*) QtSupport::getQt(env, obj))->port();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_putch(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQSocket*) QtSupport::getQt(env, obj))->putch((int) arg1);
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QSocket_readAll(JNIEnv* env, jobject obj)
{
	TQByteArray _qbyteArray;
	_qbyteArray = ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->readAll();
	return QtSupport::fromTQByteArray(env, &_qbyteArray);
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_readBlock(JNIEnv* env, jobject obj, jobject data, jlong maxlen)
{
static TQCString* _qstring_data = 0;
	if (_qstring_data == 0) { _qstring_data = new TQCString(); }
	_qstring_data->resize((uint) maxlen);
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (TQ_ULONG) maxlen);
	QtSupport::fromTQCStringToStringBuffer(env, _qstring_data, data);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_readBufferSize(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->readBufferSize();
	return xret;
}

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

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_readLine__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong maxlen)
{
static TQCString* _qstring_data = 0;
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->readLine((char*) QtSupport::toCharString(env, data, &_qstring_data), (TQ_ULONG) maxlen);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_resetStatus(JNIEnv* env, jobject obj)
{
	((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->resetStatus();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSocket_reset(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->reset();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setFlags(JNIEnv* env, jobject obj, jint f)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_setFlags((int) f);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setMode(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_setMode((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setReadBufferSize(JNIEnv* env, jobject obj, jlong arg1)
{
	((TQSocket*) QtSupport::getQt(env, obj))->setReadBufferSize((TQ_ULONG) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setSocketDevice(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQSocket*) QtSupport::getQt(env, obj))->setSocketDevice((TQSocketDevice*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setSocket(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSocket*) QtSupport::getQt(env, obj))->setSocket((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setState(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_setState((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setStatus(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_setStatus((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_setType(JNIEnv* env, jobject obj, jint arg1)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_setType((int) arg1);
	return;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_size(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->size();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_sn_1read__(JNIEnv* env, jobject obj)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_sn_read();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_sn_1read__Z(JNIEnv* env, jobject obj, jboolean force)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_sn_read((bool) force);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSocket_sn_1write(JNIEnv* env, jobject obj)
{
	((TQSocketJBridge*) QtSupport::getQt(env, obj))->protected_sn_write();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSocket_socketDevice(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSocket*) QtSupport::getQt(env, obj))->socketDevice(), "org.trinitydesktop.qt.TQSocketDevice");
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_state(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSocket*) QtSupport::getQt(env, obj))->state();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_status(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->status();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSocket_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQSocketJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSocket_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQSocketJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSocket_ungetch(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQSocket*) QtSupport::getQt(env, obj))->ungetch((int) arg1);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_waitForMore__I(JNIEnv* env, jobject obj, jint msecs)
{
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->waitForMore((int) msecs);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_waitForMore__I_3Z(JNIEnv* env, jobject obj, jint msecs, jbooleanArray timeout)
{
	bool* _bool_timeout = QtSupport::toBooleanPtr(env, timeout);
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->waitForMore((int) msecs,  (bool*) _bool_timeout);
	env->SetBooleanArrayRegion(timeout, 0, 1, (jboolean*) _bool_timeout);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len)
{
static TQCString* _qstring_data = 0;
	jlong xret = (jlong) ((TQSocket*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (TQ_ULONG) len);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QSocket_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	jlong xret = (jlong) ((TQIODevice*)(TQSocket*) QtSupport::getQt(env, obj))->writeBlock((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

