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

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

class KSimpleFileFilterJBridge : public KSimpleFileFilter
{
public:
	KSimpleFileFilterJBridge() : KSimpleFileFilter() {};
	~KSimpleFileFilterJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSimpleFileFilter_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSimpleFileFilter_filterDotFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->filterDotFiles();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSimpleFileFilter_filterSpecials(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->filterSpecials();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSimpleFileFilter_mimeFilters(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->mimeFilters();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_KSimpleFileFilter_modeFilter(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->modeFilter();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSimpleFileFilter_passesFilter(JNIEnv* env, jobject obj, jobject item)
{
	jboolean xret = (jboolean) ((KSimpleFileFilter*) QtSupport::getQt(env, obj))->passesFilter((const KFileItem*) QtSupport::getQt(env, item));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setFilterDotFiles(JNIEnv* env, jobject obj, jboolean filter)
{
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setFilterDotFiles((bool) filter);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setFilterSpecials(JNIEnv* env, jobject obj, jboolean filter)
{
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setFilterSpecials((bool) filter);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setMimeFilters(JNIEnv* env, jobject obj, jobjectArray mimeFilters)
{
static QStringList* _qlist_mimeFilters = 0;
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setMimeFilters((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, mimeFilters, &_qlist_mimeFilters));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setModeFilter(JNIEnv* env, jobject obj, jlong mode)
{
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setModeFilter((mode_t) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilters)
{
static QString* _qstring_nameFilters = 0;
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const QString&)*(QString*) QtSupport::toQString(env, nameFilters, &_qstring_nameFilters));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring nameFilters, jboolean caseSensitive)
{
static QString* _qstring_nameFilters = 0;
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const QString&)*(QString*) QtSupport::toQString(env, nameFilters, &_qstring_nameFilters), (bool) caseSensitive);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSimpleFileFilter_setNameFilters__Ljava_lang_String_2ZC(JNIEnv* env, jobject obj, jstring nameFilters, jboolean caseSensitive, jchar separator)
{
static QString* _qstring_nameFilters = 0;
static QChar* _qchar_separator = 0;
	((KSimpleFileFilter*) QtSupport::getQt(env, obj))->setNameFilters((const QString&)*(QString*) QtSupport::toQString(env, nameFilters, &_qstring_nameFilters), (bool) caseSensitive, (const QChar&)*(QChar*) QtSupport::toQChar(env, separator, &_qchar_separator));
	return;
}

