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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QServerSocket_newConnection(JNIEnv* env, jobject obj, jint socket)
{
	((TQServerSocket*) QtSupport::getQt(env, obj))->newConnection((int) socket);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QServerSocket_ok(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQServerSocket*) QtSupport::getQt(env, obj))->ok();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QServerSocket_setSocket(JNIEnv* env, jobject obj, jint socket)
{
	((TQServerSocket*) QtSupport::getQt(env, obj))->setSocket((int) socket);
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QServerSocket_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 = TQServerSocket::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

