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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_FileCopyJob_destURL(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->destURL()), "org.kde.koala.KURL", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_FileCopyJob_setSourceSize64(JNIEnv* env, jobject obj, jlong size)
{
	((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->setSourceSize64((KIO::filesize_t) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_FileCopyJob_slotDataReq(JNIEnv* env, jobject obj, jobject arg1, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->slotDataReq((KIO::Job*) QtSupport::getQt(env, arg1), (TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_FileCopyJob_slotData(JNIEnv* env, jobject obj, jobject arg1, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->slotData((KIO::Job*) QtSupport::getQt(env, arg1), (const TQByteArray&)*(TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_FileCopyJob_slotStart(JNIEnv* env, jobject obj)
{
	((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->slotStart();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_FileCopyJob_srcURL(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(((KIO::FileCopyJob*) QtSupport::getQt(env, obj))->srcURL()), "org.kde.koala.KURL", TRUE);
	return xret;
}

