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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_copy(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_del(JNIEnv* env, jclass cls, jobject url, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::del((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_dircopy__Ljava_util_ArrayList_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::dircopy((const KURL::List&)*(KURL::List*) KDESupport::toKURLList(env, src, &_qlist_src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_dircopy__Ljava_util_ArrayList_2Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target, jobject window)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::dircopy((const KURL::List&)*(KURL::List*) KDESupport::toKURLList(env, src, &_qlist_src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_dircopy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::dircopy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_download(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
static TQString* _qstring_target = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::download((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, target, &_qstring_target), (TQWidget*) QtSupport::getQt(env, window));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_target, target);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_exists(JNIEnv* env, jclass cls, jobject url, jboolean source, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::exists((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (bool) source, (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1copy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject dest)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, dest));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1copy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2I(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, dest), (int) permissions);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1copy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZ(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, dest), (int) permissions, (bool) overwrite);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1copy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZZ(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite, jboolean resume)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, dest), (int) permissions, (bool) overwrite, (bool) resume);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1copy__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZZLorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite, jboolean resume, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_copy((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, dest), (int) permissions, (bool) overwrite, (bool) resume, (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject target)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2I(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (int) permissions);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZ(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (int) permissions, (bool) overwrite);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZZ(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite, jboolean resume)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (int) permissions, (bool) overwrite, (bool) resume);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_file_1move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2IZZLorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite, jboolean resume, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::file_move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (int) permissions, (bool) overwrite, (bool) resume, (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_NetAccess_fish_1execute(JNIEnv* env, jclass cls, jobject url, jstring command, jobject window)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_command = 0;
	_qstring = TDEIO::NetAccess::fish_execute((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString)*(TQString*) QtSupport::toTQString(env, command, &_qstring_command), (TQWidget*) QtSupport::getQt(env, window));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_NetAccess_lastErrorString(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDEIO::NetAccess::lastErrorString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_NetAccess_lastError(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TDEIO::NetAccess::lastError();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_NetAccess_mimetype(JNIEnv* env, jclass cls, jobject url, jobject window)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDEIO::NetAccess::mimetype((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_mkdir__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject url, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::mkdir((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_mkdir__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jclass cls, jobject url, jobject window, jint permissions)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::mkdir((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window), (int) permissions);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NetAccess_mostLocalURL(JNIEnv* env, jclass cls, jobject url, jobject window)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KURL(TDEIO::NetAccess::mostLocalURL((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window))), "org.trinitydesktop.koala.KURL", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_move__Ljava_util_ArrayList_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::move((const KURL::List&)*(KURL::List*) KDESupport::toKURLList(env, src, &_qlist_src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_move__Ljava_util_ArrayList_2Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target, jobject window)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::move((const KURL::List&)*(KURL::List*) KDESupport::toKURLList(env, src, &_qlist_src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject target)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_move__Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_koala_KURL_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::move((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_NetAccess_removeTempFile(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static TQString* _qstring_name = 0;
	TDEIO::NetAccess::removeTempFile((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_synchronousRun__Lorg_trinitydesktop_koala_Job_2Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject job, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) TDEIO::NetAccess::synchronousRun((TDEIO::Job*) QtSupport::getQt(env, job), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_synchronousRun__Lorg_trinitydesktop_koala_Job_2Lorg_trinitydesktop_qt_QWidget_2_3B(JNIEnv* env, jclass cls, jobject job, jobject window, jbyteArray data)
{
	(void) cls;
static TQByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::synchronousRun((TDEIO::Job*) QtSupport::getQt(env, job), (TQWidget*) QtSupport::getQt(env, window), (TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_synchronousRun__Lorg_trinitydesktop_koala_Job_2Lorg_trinitydesktop_qt_QWidget_2_3BLorg_trinitydesktop_koala_KURL_2(JNIEnv* env, jclass cls, jobject job, jobject window, jbyteArray data, jobject finalURL)
{
	(void) cls;
static TQByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::synchronousRun((TDEIO::Job*) QtSupport::getQt(env, job), (TQWidget*) QtSupport::getQt(env, window), (TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (KURL*) QtSupport::getQt(env, finalURL));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_NetAccess_upload(JNIEnv* env, jclass cls, jstring src, jobject target, jobject window)
{
	(void) cls;
static TQString* _qstring_src = 0;
	jboolean xret = (jboolean) TDEIO::NetAccess::upload((const TQString&)*(TQString*) QtSupport::toTQString(env, src, &_qstring_src), (const KURL&)*(const KURL*) QtSupport::getQt(env, target), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

