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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KArchiveFile_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KArchiveFile_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KArchiveFile_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_kde_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 QString* _qstring_name = 0;
static QString* _qstring_user = 0;
static QString* _qstring_group = 0;
static QString* _qstring_symlink = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KArchiveFileJBridge((KArchive*) QtSupport::getQt(env, archive), (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), (int) pos, (int) size));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

