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

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

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

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

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

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

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

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

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

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

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

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

