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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_NetAccess_copy(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_del(JNIEnv* env, jclass cls, jobject url, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::NetAccess::del((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (TQWidget*) QtSupport::getQt(env, window));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_NetAccess_dircopy__Ljava_util_ArrayList_2Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_dircopy__Ljava_util_ArrayList_2Lorg_kde_koala_KURL_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target, jobject window)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_dircopy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_download(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
static TQString* _qstring_target = 0;
	jboolean xret = (jboolean) KIO::NetAccess::download((const KURL&)*(const KURL*) QtSupport::getQt(env, src), (TQString&)*(TQString*) QtSupport::toQStringFromStringBuffer(env, target, &_qstring_target), (TQWidget*) QtSupport::getQt(env, window));
	QtSupport::fromQStringToStringBuffer(env, _qstring_target, target);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_NetAccess_file_1copy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject dest)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1copy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2I(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1copy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZ(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1copy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZZ(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite, jboolean resume)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1copy__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZZLorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject dest, jint permissions, jboolean overwrite, jboolean resume, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject target)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2I(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZ(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZZ(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite, jboolean resume)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_file_1move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2IZZLorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jint permissions, jboolean overwrite, jboolean resume, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_fish_1execute(JNIEnv* env, jclass cls, jobject url, jstring command, jobject window)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_command = 0;
	_qstring = KIO::NetAccess::fish_execute((const KURL&)*(const KURL*) QtSupport::getQt(env, url), (const TQString)*(TQString*) QtSupport::toQString(env, command, &_qstring_command), (TQWidget*) QtSupport::getQt(env, window));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_NetAccess_move__Ljava_util_ArrayList_2Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_move__Ljava_util_ArrayList_2Lorg_kde_koala_KURL_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobjectArray src, jobject target, jobject window)
{
	(void) cls;
static KURL::List* _qlist_src = 0;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2(JNIEnv* env, jclass cls, jobject src, jobject target)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_move__Lorg_kde_koala_KURL_2Lorg_kde_koala_KURL_2Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject src, jobject target, jobject window)
{
	(void) cls;
	jboolean xret = (jboolean) KIO::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_kde_koala_NetAccess_removeTempFile(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static TQString* _qstring_name = 0;
	KIO::NetAccess::removeTempFile((const TQString&)*(TQString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_NetAccess_synchronousRun__Lorg_kde_koala_Job_2Lorg_kde_qt_QWidget_2_3BLorg_kde_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) KIO::NetAccess::synchronousRun((KIO::Job*) QtSupport::getQt(env, job), (TQWidget*) QtSupport::getQt(env, window), (TQByteArray*) QtSupport::toQByteArray(env, data, &_qbyteArray_data), (KURL*) QtSupport::getQt(env, finalURL));
	return xret;
}

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

