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

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

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

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

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

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

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

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

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

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

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

