//Auto-generated by kalyptus. DO NOT EDIT.
#include <karchive.h>
#include <qstring.h>

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_addLocalDirectory(JNIEnv* env, jobject obj, jstring path, jstring destName)
{
static QString* _qstring_path = 0;
static QString* _qstring_destName = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->addLocalDirectory((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (const QString&)*(QString*) QtSupport::toQString(env, destName, &_qstring_destName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_addLocalFile(JNIEnv* env, jobject obj, jstring fileName, jstring destName)
{
static QString* _qstring_fileName = 0;
static QString* _qstring_destName = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->addLocalFile((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (const QString&)*(QString*) QtSupport::toQString(env, destName, &_qstring_destName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_closeSucceeded(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->closeSucceeded();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchive_close(JNIEnv* env, jobject obj)
{
	((KArchive*) QtSupport::getQt(env, obj))->close();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KArchive_device(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KArchive*) QtSupport::getQt(env, obj))->device(), "org.kde.qt.QIODeviceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KArchive_directory(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KArchive*) QtSupport::getQt(env, obj))->directory(), "org.kde.koala.KArchiveDirectory");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_doneWriting(JNIEnv* env, jobject obj, jint size)
{
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->doneWriting((uint) size);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_isOpened(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->isOpened();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KArchive_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KArchive*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_open(JNIEnv* env, jobject obj, jint mode)
{
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->open((int) mode);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_prepareWriting__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->prepareWriting((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (uint) size);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_prepareWriting__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2IJIII(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size, jlong perm, jint atime, jint mtime, jint ctime)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->prepareWriting((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (uint) size, (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeData(JNIEnv* env, jobject obj, jstring data, jint size)
{
static QCString* _qstring_data = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeData((const char*) QtSupport::toCharString(env, data, &_qstring_data), (uint) size);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeDir__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeDir((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeDir__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2JIII(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeDir((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeFile__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2IJIIILjava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size, jlong perm, jint atime, jint mtime, jint ctime, jstring data)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
static QCString* _qstring_data = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeFile((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (uint) size, (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime, (const char*) QtSupport::toCharString(env, data, &_qstring_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeFile__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group, jint size, jstring data)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
static QCString* _qstring_data = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeFile((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (uint) size, (const char*) QtSupport::toCharString(env, data, &_qstring_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KArchive_writeSymLink(JNIEnv* env, jobject obj, jstring name, jstring target, jstring user, jstring group, jlong perm, jint atime, jint mtime, jint ctime)
{
static QString* _qstring_name = 0;
static QString* _qstring_target = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeSymLink((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, target, &_qstring_target), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime);
	return xret;
}

