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

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

class KArchiveFileJBridge : public KArchiveFile
{
public:
	KArchiveFileJBridge(KArchive* arg1,const TQString& arg2,int arg3,int arg4,const TQString& arg5,const TQString& arg6,const TQString& arg7,int arg8,int arg9) : KArchiveFile(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) {};
	~KArchiveFileJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_copyTo(JNIEnv* env, jobject obj, jstring dest)
{
static TQString* _qstring_dest = 0;
	((KArchiveFile*) QtSupport::getQt(env, obj))->copyTo((const TQString&)*(TQString*) QtSupport::toTQString(env, dest, &_qstring_dest));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KArchiveFile_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_isFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchiveFile*) QtSupport::getQt(env, obj))->isFile();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_newKArchiveFile(JNIEnv* env, jobject obj, jobject archive, jstring name, jint access, jint date, jstring user, jstring group, jstring symlink, jint pos, jint size)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_user = 0;
static TQString* _qstring_group = 0;
static TQString* _qstring_symlink = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KArchiveFileJBridge((KArchive*) QtSupport::getQt(env, archive), (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), (int) pos, (int) size));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_position(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KArchiveFile*) QtSupport::getQt(env, obj))->position();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_setSize(JNIEnv* env, jobject obj, jint s)
{
	((KArchiveFile*) QtSupport::getQt(env, obj))->setSize((int) s);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KArchiveFile_size(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KArchiveFile*) QtSupport::getQt(env, obj))->size();
	return xret;
}

