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

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

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

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KArchive_isOpened(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->isOpened();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->prepareWriting((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (uint) size);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->prepareWriting((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(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_trinitydesktop_koala_KArchive_writeData(JNIEnv* env, jobject obj, jstring data, jint size)
{
static TQCString* _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_trinitydesktop_koala_KArchive_writeDir__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring user, jstring group)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeDir((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (mode_t) perm, (time_t) atime, (time_t) mtime, (time_t) ctime);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
static TQCString* _qstring_data = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeFile((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(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_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
static TQCString* _qstring_data = 0;
	jboolean xret = (jboolean) ((KArchive*) QtSupport::getQt(env, obj))->writeFile((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (uint) size, (const char*) QtSupport::toCharString(env, data, &_qstring_data));
	return xret;
}

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

