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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_SlaveInterface_connection(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->connection(), "org.kde.koala.Connection");
	return xret;
}

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_SlaveInterface_offset(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->offset();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_SlaveInterface_progressId(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->progressId();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_SlaveInterface_sendResumeAnswer(JNIEnv* env, jobject obj, jboolean resume)
{
	((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->sendResumeAnswer((bool) resume);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_SlaveInterface_setConnection(JNIEnv* env, jobject obj, jobject connection)
{
	((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->setConnection((KIO::Connection*) QtSupport::getQt(env, connection));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_SlaveInterface_setOffset(JNIEnv* env, jobject obj, jlong offset)
{
	((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->setOffset((KIO::filesize_t) offset);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_SlaveInterface_setProgressId(JNIEnv* env, jobject obj, jint id)
{
	((KIO::SlaveInterface*) QtSupport::getQt(env, obj))->setProgressId((int) id);
	return;
}

