//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdir.h>
#include <kfile.h>

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFile_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KFile_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_koala_KFile_isSortByDate(JNIEnv* env, jclass cls, jint sort)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) KFileJBridge::isSortByDate((const QDir::SortSpec&) sort);
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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;
}

