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

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

class KZipFileEntryJBridge : public KZipFileEntry
{
public:
	KZipFileEntryJBridge(KZip* arg1,const QString& arg2,int arg3,int arg4,const QString& arg5,const QString& arg6,const QString& arg7,const QString& arg8,Q_LONG arg9,Q_LONG arg10,int arg11,Q_LONG arg12) : KZipFileEntry(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) {};
	~KZipFileEntryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KZipFileEntry_compressedSize(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KZipFileEntry*) QtSupport::getQt(env, obj))->compressedSize();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KZipFileEntry_crc32(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KZipFileEntry*) QtSupport::getQt(env, obj))->crc32();
	return xret;
}

JNIEXPORT jbyteArray JNICALL
Java_org_kde_koala_KZipFileEntry_data(JNIEnv* env, jobject obj)
{
	QByteArray _qbyteArray;
	_qbyteArray = ((KZipFileEntry*) QtSupport::getQt(env, obj))->data();
	return QtSupport::fromQByteArray(env, &_qbyteArray);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KZipFileEntry_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KZipFileEntry_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KZipFileEntry_encoding(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KZipFileEntry*) QtSupport::getQt(env, obj))->encoding();
	return xret;
}

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KZipFileEntry_headerStart(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KZipFileEntry*) QtSupport::getQt(env, obj))->headerStart();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KZipFileEntry_newKZipFileEntry(JNIEnv* env, jobject obj, jobject zip, jstring name, jint access, jint date, jstring user, jstring group, jstring symlink, jstring path, jlong start, jlong uncompressedSize, jint encoding, jlong compressedSize)
{
static QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
static QString* _qstring_symlink = 0;
static QString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KZipFileEntryJBridge((KZip*) QtSupport::getQt(env, zip), (const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (int) access, (int) date, (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group), (const QString&)*(QString*) QtSupport::toQString(env, symlink, &_qstring_symlink), (const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (Q_LONG) start, (Q_LONG) uncompressedSize, (int) encoding, (Q_LONG) compressedSize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KZipFileEntry_setCRC32(JNIEnv* env, jobject obj, jlong crc32)
{
	((KZipFileEntry*) QtSupport::getQt(env, obj))->setCRC32((unsigned long) crc32);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZipFileEntry_setCompressedSize(JNIEnv* env, jobject obj, jlong compressedSize)
{
	((KZipFileEntry*) QtSupport::getQt(env, obj))->setCompressedSize((Q_LONG) compressedSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KZipFileEntry_setHeaderStart(JNIEnv* env, jobject obj, jlong headerstart)
{
	((KZipFileEntry*) QtSupport::getQt(env, obj))->setHeaderStart((Q_LONG) headerstart);
	return;
}

