//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdir.h>
#include <tdefile.h>

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

class KFileJBridge : public KFile
{
public:
	KFileJBridge() : KFile() {};
	~KFileJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFile_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KFile_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isDefaultView(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isDefaultView((const KFile::FileView&) view);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isDetailView(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isDetailView((const KFile::FileView&) view);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isPreviewContents(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isPreviewContents((const KFile::FileView&) view);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isPreviewInfo(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isPreviewInfo((const KFile::FileView&) view);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSeparateDirs(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSeparateDirs((const KFile::FileView&) view);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSimpleView(JNIEnv* env, jclass cls, jint view)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSimpleView((const KFile::FileView&) view);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSortByDate(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortByDate((const TQDir::SortSpec&) sort);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSortByName(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortByName((const TQDir::SortSpec&) sort);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSortBySize(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortBySize((const TQDir::SortSpec&) sort);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSortCaseInsensitive(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortCaseInsensitive((const TQDir::SortSpec&) sort);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KFile_isSortDirsFirst(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortDirsFirst((const TQDir::SortSpec&) sort);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KFile_newKFile(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

