//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/slave.h>
#include <tdeio/global.h>
#include <tqstring.h>
#include <kurl.h>
#include <tqcstring.h>

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Slave_createSlave(JNIEnv* env, jclass cls, jstring protocol, jobject url, jintArray error, jobject error_text)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	int* _int_error = QtSupport::toIntPtr(env, error);
static TQString* _qstring_error_text = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEIO::Slave::createSlave((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol), (const KURL&)*(const KURL*) QtSupport::getQt(env, url),  (int&) *_int_error, (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, error_text, &_qstring_error_text)), "org.trinitydesktop.koala.Slave");
	env->SetIntArrayRegion(error, 0, 1, (jint *) _int_error);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_error_text, error_text);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_deref(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->deref();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_gotInput(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->gotInput();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Slave_holdSlave(JNIEnv* env, jclass cls, jstring protocol, jobject url)
{
	(void) cls;
static TQString* _qstring_protocol = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TDEIO::Slave::holdSlave((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol), (const KURL&)*(const KURL*) QtSupport::getQt(env, url)), "org.trinitydesktop.koala.Slave");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_hold(JNIEnv* env, jobject obj, jobject url)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->hold((const KURL&)*(const KURL*) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Slave_host(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Slave*) QtSupport::getQt(env, obj))->host();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Slave_idleTime(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->idleTime();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Slave_isAlive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->isAlive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Slave_isConnected(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->isConnected();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_kill(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->kill();
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Slave_passwd(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Slave*) QtSupport::getQt(env, obj))->passwd();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Slave_port(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->port();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Slave_protocol(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Slave*) QtSupport::getQt(env, obj))->protocol();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_ref(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->ref();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_resetHost(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->resetHost();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_resume(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->resume();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_send__I(JNIEnv* env, jobject obj, jint cmd)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->send((int) cmd);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_send__I_3B(JNIEnv* env, jobject obj, jint cmd, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->send((int) cmd, (const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_setConnected(JNIEnv* env, jobject obj, jboolean c)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->setConnected((bool) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_setHost(JNIEnv* env, jobject obj, jstring host, jint port, jstring user, jstring passwd)
{
static TQString* _qstring_host = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_passwd = 0;
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->setHost((const TQString&)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (int) port, (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, passwd, &_qstring_passwd));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_setIdle(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->setIdle();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_setPID(JNIEnv* env, jobject obj, jint arg1)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->setPID((pid_t) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_setProtocol(JNIEnv* env, jobject obj, jstring protocol)
{
static TQString* _qstring_protocol = 0;
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->setProtocol((const TQString&)*(TQString*) QtSupport::toTQString(env, protocol, &_qstring_protocol));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Slave_slaveProtocol(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Slave*) QtSupport::getQt(env, obj))->slaveProtocol();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_Slave_slave_1pid(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->slave_pid();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Slave_suspended(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEIO::Slave*) QtSupport::getQt(env, obj))->suspended();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Slave_timeout(JNIEnv* env, jobject obj)
{
	((TDEIO::Slave*) QtSupport::getQt(env, obj))->timeout();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Slave_user(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDEIO::Slave*) QtSupport::getQt(env, obj))->user();
	return QtSupport::fromTQString(env, &_qstring);
}

