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

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

class KZipJBridge : public KZip
{
public:
	KZipJBridge(const QString& arg1) : KZip(arg1) {};
	KZipJBridge(QIODevice* arg1) : KZip(arg1) {};
	bool protected_openArchive(int arg1) {
		return (bool) KZip::openArchive(arg1);
	}
	bool protected_closeArchive() {
		return (bool) KZip::closeArchive();
	}
	bool protected_writeDir(const QString& arg1,const QString& arg2,const QString& arg3) {
		return (bool) KZip::writeDir(arg1,arg2,arg3);
	}
	bool protected_writeData_impl(const char* arg1,uint arg2) {
		return (bool) KZip::writeData_impl(arg1,arg2);
	}
	bool protected_prepareWriting_impl(const QString& arg1,const QString& arg2,const QString& arg3,uint arg4,mode_t arg5,time_t arg6,time_t arg7,time_t arg8) {
		return (bool) KZip::prepareWriting_impl(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
	}
	bool protected_writeSymLink_impl(const QString& arg1,const QString& arg2,const QString& arg3,const QString& arg4,mode_t arg5,time_t arg6,time_t arg7,time_t arg8) {
		return (bool) KZip::writeSymLink_impl(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
	}
	~KZipJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KZip_closeArchive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KZipJBridge*) QtSupport::getQt(env, obj))->protected_closeArchive();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KZip_compression(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KZip*) QtSupport::getQt(env, obj))->compression();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZip_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KZip_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KZip_extraField(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KZip*) QtSupport::getQt(env, obj))->extraField();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KZip_fileName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KZip*) QtSupport::getQt(env, obj))->fileName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZip_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KZip*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KZip_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZip_newKZip__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static QString* _qstring_filename = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KZipJBridge((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZip_newKZip__Lorg_kde_qt_QIODeviceInterface_2(JNIEnv* env, jobject obj, jobject dev)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KZipJBridge((QIODevice*) QtSupport::getQt(env, dev)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KZip_prepareWriting_1impl(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) ((KZipJBridge*) QtSupport::getQt(env, obj))->protected_prepareWriting_impl((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_KZip_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) ((KZip*) 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_KZip_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) ((KZip*) 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 void JNICALL
Java_org_kde_koala_KZip_setCompression(JNIEnv* env, jobject obj, jint c)
{
	((KZip*) QtSupport::getQt(env, obj))->setCompression((KZip::Compression) c);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZip_setExtraField(JNIEnv* env, jobject obj, jint ef)
{
	((KZip*) QtSupport::getQt(env, obj))->setExtraField((KZip::ExtraField) ef);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KZip_writeDir(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) ((KZipJBridge*) QtSupport::getQt(env, obj))->protected_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_KZip_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) ((KZip*) 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_KZip_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) ((KZip*) 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_KZip_writeSymLink_1impl(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) ((KZipJBridge*) QtSupport::getQt(env, obj))->protected_writeSymLink_impl((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;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KZip_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) ((KZip*) 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;
}

