//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/slave.h>
#include <kio/global.h>
#include <qstring.h>
#include <kurl.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/Slave.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Slave_createSlave(JNIEnv* env, jclass cls, jstring protocol, jobject url, jintArray error, jobject error_text)
{
	(void) cls;
static QString* _qstring_protocol = 0;
	int* _int_error = QtSupport::toIntPtr(env, error);
static QString* _qstring_error_text = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KIO::Slave::createSlave((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol), (const KURL&)*(const KURL*) QtSupport::getQt(env, url),  (int&) *_int_error, (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, error_text, &_qstring_error_text)), "org.kde.koala.Slave");
	env->SetIntArrayRegion(error, 0, 1, (jint *) _int_error);
	QtSupport::fromQStringToStringBuffer(env, _qstring_error_text, error_text);
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Slave_holdSlave(JNIEnv* env, jclass cls, jstring protocol, jobject url)
{
	(void) cls;
static QString* _qstring_protocol = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KIO::Slave::holdSlave((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol), (const KURL&)*(const KURL*) QtSupport::getQt(env, url)), "org.kde.koala.Slave");
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Slave_host(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Slave*) QtSupport::getQt(env, obj))->host();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Slave_passwd(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Slave*) QtSupport::getQt(env, obj))->passwd();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Slave_protocol(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Slave*) QtSupport::getQt(env, obj))->protocol();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Slave_setProtocol(JNIEnv* env, jobject obj, jstring protocol)
{
static QString* _qstring_protocol = 0;
	((KIO::Slave*) QtSupport::getQt(env, obj))->setProtocol((const QString&)*(QString*) QtSupport::toQString(env, protocol, &_qstring_protocol));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Slave_slaveProtocol(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Slave*) QtSupport::getQt(env, obj))->slaveProtocol();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_Slave_user(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KIO::Slave*) QtSupport::getQt(env, obj))->user();
	return QtSupport::fromQString(env, &_qstring);
}

