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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KZipFileEntry_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KZipFileEntry_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KZipFileEntry_headerStart(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KZipFileEntry*) QtSupport::getQt(env, obj))->headerStart();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
static TQString* _qstring_symlink = 0;
static TQString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KZipFileEntryJBridge((KZip*) QtSupport::getQt(env, zip), (const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (int) access, (int) date, (const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (const TQString&)*(TQString*) QtSupport::toTQString(env, symlink, &_qstring_symlink), (const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path), (TQ_LONG) start, (TQ_LONG) uncompressedSize, (int) encoding, (TQ_LONG) compressedSize));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

