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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSocket_address(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QHostAddress(((QSocket*) QtSupport::getQt(env, obj))->address()), "org.kde.qt.QHostAddress", TRUE);
	return xret;
}

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_connectToHost(JNIEnv* env, jobject obj, jstring host, jshort port)
{
static QString* _qstring_host = 0;
	((QSocket*) QtSupport::getQt(env, obj))->connectToHost((const QString&)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (Q_UINT16) port);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSocket_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSocket_flags(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->flags();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isAsynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isAsynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isBuffered(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isBuffered();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isCombinedAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isCombinedAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isDirectAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isDirectAccess();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isInactive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isInactive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isOpen(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isOpen();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isRaw(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isRaw();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isReadWrite(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isReadWrite();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isSequentialAccess(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isSequentialAccess();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isSynchronous(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isSynchronous();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isTranslated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isTranslated();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_isWritable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->isWritable();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSocket_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_newQSocket__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSocketJBridge((QObject*) 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_kde_qt_QSocket_open(JNIEnv* env, jobject obj, jint mode)
{
	jboolean xret = (jboolean) ((QSocket*) QtSupport::getQt(env, obj))->open((int) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSocket_peerAddress(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QHostAddress(((QSocket*) QtSupport::getQt(env, obj))->peerAddress()), "org.kde.qt.QHostAddress", TRUE);
	return xret;
}

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

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

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

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

JNIEXPORT jbyteArray JNICALL
Java_org_kde_qt_QSocket_readAll(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->readAll();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QSocket_readBlock(JNIEnv* env, jobject obj, jobject data, jlong maxlen)
{
static QCString* _qstring_data = 0;
	if (_qstring_data == 0) { _qstring_data = new QCString(); }
	_qstring_data->resize((uint) maxlen);
	jlong xret = (jlong) ((QSocket*) QtSupport::getQt(env, obj))->readBlock((char*) _qstring_data->data(), (Q_ULONG) maxlen);
	QtSupport::fromQCStringToStringBuffer(env, _qstring_data, data);
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_resetStatus(JNIEnv* env, jobject obj)
{
	((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->resetStatus();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSocket_reset(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->reset();
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_setReadBufferSize(JNIEnv* env, jobject obj, jlong arg1)
{
	((QSocket*) QtSupport::getQt(env, obj))->setReadBufferSize((Q_ULONG) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSocket_setSocketDevice(JNIEnv* env, jobject obj, jobject arg1)
{
	((QSocket*) QtSupport::getQt(env, obj))->setSocketDevice((QSocketDevice*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSocket_socketDevice(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSocket*) QtSupport::getQt(env, obj))->socketDevice(), "org.kde.qt.QSocketDevice");
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSocket_status(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->status();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSocket_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QSocketJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSocket_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QSocketJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QSocket_waitForMore__I_3Z(JNIEnv* env, jobject obj, jint msecs, jbooleanArray timeout)
{
	bool* _bool_timeout = QtSupport::toBooleanPtr(env, timeout);
	jlong xret = (jlong) ((QSocket*) 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_kde_qt_QSocket_writeBlock__Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring data, jlong len)
{
static QCString* _qstring_data = 0;
	jlong xret = (jlong) ((QSocket*) QtSupport::getQt(env, obj))->writeBlock((const char*) QtSupport::toCharString(env, data, &_qstring_data), (Q_ULONG) len);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_qt_QSocket_writeBlock___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static QByteArray* _qbyteArray_data = 0;
	jlong xret = (jlong) ((QIODevice*)(QSocket*) QtSupport::getQt(env, obj))->writeBlock((const QByteArray&)*(QByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

