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

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

class KArchiveEntryJBridge : public KArchiveEntry
{
public:
	KArchiveEntryJBridge(KArchive* arg1,const TQString& arg2,int arg3,int arg4,const TQString& arg5,const TQString& arg6,const TQString& arg7) : KArchiveEntry(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
	KArchive* protected_archive() {
		return (KArchive*) KArchiveEntry::archive();
	}
	~KArchiveEntryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_archive(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KArchiveEntryJBridge*) QtSupport::getQt(env, obj))->protected_archive(), "org.trinitydesktop.koala.KArchive");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_date(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KArchiveEntry*) QtSupport::getQt(env, obj))->date();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_datetime(JNIEnv* env, jobject obj)
{
	TQDateTime  _qdate;
	_qdate = ((KArchiveEntry*) QtSupport::getQt(env, obj))->datetime();
	return (jobject) QtSupport::fromTQDateTime(env, (TQDateTime*) &_qdate);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KArchiveEntry_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_isDirectory(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KArchiveEntry*) QtSupport::getQt(env, obj))->isDirectory();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_newKArchiveEntry(JNIEnv* env, jobject obj, jobject archive, jstring name, jint access, jint date, jstring user, jstring group, jstring symlink)
{
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 KArchiveEntryJBridge((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)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_KArchiveEntry_permissions(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KArchiveEntry*) QtSupport::getQt(env, obj))->permissions();
	return xret;
}

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

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

