//Auto-generated by kalyptus. DO NOT EDIT.
#include <kio/global.h>
#include <kparts/browserextension.h>
#include <kdirlister.h>
#include <qstring.h>
#include <qstringlist.h>
#include <kurl.h>

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

class KDirListerJBridge : public KDirLister
{
public:
	KDirListerJBridge(bool arg1) : KDirLister(arg1) {};
	KDirListerJBridge() : KDirLister() {};
	void public_stop() {
		KDirLister::stop();
		return;
	}
	void public_emitChanges() {
		KDirLister::emitChanges();
		return;
	}
	void public_clearMimeFilter() {
		KDirLister::clearMimeFilter();
		return;
	}
	bool protected_matchesFilter(const KFileItem* arg1) {
		return (bool) KDirLister::matchesFilter(arg1);
	}
	bool protected_matchesMimeFilter(const KFileItem* arg1) {
		return (bool) KDirLister::matchesMimeFilter(arg1);
	}
	bool protected_doMimeFilter(const QString& arg1,const QStringList& arg2) {
		return (bool) KDirLister::doMimeFilter(arg1,arg2);
	}
	bool protected_doMimeExcludeFilter(const QString& arg1,const QStringList& arg2) {
		return (bool) KDirLister::doMimeExcludeFilter(arg1,arg2);
	}
	bool protected_validURL(const KURL& arg1) {
		return (bool) KDirLister::validURL(arg1);
	}
	void protected_handleError(KIO::Job* arg1) {
		KDirLister::handleError(arg1);
		return;
	}
	~KDirListerJBridge() {QtSupport::qtKeyDeleted(this);}
	void clearMimeFilter() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KDirLister","clearMimeFilter")) {
			KDirLister::clearMimeFilter();
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void emitChanges() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KDirLister","emitChanges")) {
			KDirLister::emitChanges();
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void updateDirectory(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"updateDirectory",(void*)&arg1,"org.kde.koala.KURL")) {
			KDirLister::updateDirectory(arg1);
		}
		return;
	}
	void handleError(KIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"handleError",(void*)arg1,"org.kde.koala.Job")) {
			KDirLister::handleError(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KDirLister",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"stop",(void*)&arg1,"org.kde.koala.KURL")) {
			KDirLister::stop(arg1);
		}
		return;
	}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_autoErrorHandlingEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->autoErrorHandlingEnabled();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_autoUpdate(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->autoUpdate();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDirLister_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KDirLister*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_clearMimeFilter(JNIEnv* env, jobject obj)
{
	((KDirListerJBridge*) QtSupport::getQt(env, obj))->public_clearMimeFilter();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_dirOnlyMode(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->dirOnlyMode();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_directories(JNIEnv* env, jobject obj)
{
	KURL::List  _qlist;
	_qlist = ((KDirLister*) QtSupport::getQt(env, obj))->directories();
	return (jobject) KDESupport::arrayWithKURLList(env, (KURL::List*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KDirLister_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_doMimeExcludeFilter(JNIEnv* env, jobject obj, jstring mimeExclude, jobjectArray filters)
{
static QString* _qstring_mimeExclude = 0;
static QStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_doMimeExcludeFilter((const QString&)*(QString*) QtSupport::toQString(env, mimeExclude, &_qstring_mimeExclude), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_doMimeFilter(JNIEnv* env, jobject obj, jstring mime, jobjectArray filters)
{
static QString* _qstring_mime = 0;
static QStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_doMimeFilter((const QString&)*(QString*) QtSupport::toQString(env, mime, &_qstring_mime), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_emitChanges(JNIEnv* env, jobject obj)
{
	((KDirListerJBridge*) QtSupport::getQt(env, obj))->public_emitChanges();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KDirLister*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KDirLister*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_findByName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->findByName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_findByURL(JNIEnv* env, jobject obj, jobject _url)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->findByURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url)), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_find(JNIEnv* env, jobject obj, jobject _url)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->find((const KURL&)*(const KURL*) QtSupport::getQt(env, _url)), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_handleError(JNIEnv* env, jobject obj, jobject arg1)
{
	((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_handleError((KIO::Job*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_isFinished(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->isFinished();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_itemsForDir__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject dir)
{
	KFileItemList  _qlist;
	_qlist = ((KDirLister*) QtSupport::getQt(env, obj))->itemsForDir((const KURL&)*(const KURL*) QtSupport::getQt(env, dir));
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_itemsForDir__Lorg_kde_koala_KURL_2I(JNIEnv* env, jobject obj, jobject dir, jint which)
{
	KFileItemList  _qlist;
	_qlist = ((KDirLister*) QtSupport::getQt(env, obj))->itemsForDir((const KURL&)*(const KURL*) QtSupport::getQt(env, dir), (KDirLister::WhichItems) which);
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_items__(JNIEnv* env, jobject obj)
{
	KFileItemList  _qlist;
	_qlist = ((KDirLister*) QtSupport::getQt(env, obj))->items();
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_items__I(JNIEnv* env, jobject obj, jint which)
{
	KFileItemList  _qlist;
	_qlist = ((KDirLister*) QtSupport::getQt(env, obj))->items((KDirLister::WhichItems) which);
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_mainWindow(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->mainWindow(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_matchesFilter__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->matchesFilter((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_matchesFilter__Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_matchesFilter((const KFileItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_matchesMimeFilter__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring mime)
{
static QString* _qstring_mime = 0;
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->matchesMimeFilter((const QString&)*(QString*) QtSupport::toQString(env, mime, &_qstring_mime));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_matchesMimeFilter__Lorg_kde_koala_KFileItem_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_matchesMimeFilter((const KFileItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDirLister_nameFilter(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KDirLister*) QtSupport::getQt(env, obj))->nameFilter();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_newKDirLister__Z(JNIEnv* env, jobject obj, jboolean _delayedMimeTypes)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDirListerJBridge((bool) _delayedMimeTypes));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_openURL__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject _url)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->openURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_openURL__Lorg_kde_koala_KURL_2Z(JNIEnv* env, jobject obj, jobject _url, jboolean _keep)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->openURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _keep);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_openURL__Lorg_kde_koala_KURL_2ZZ(JNIEnv* env, jobject obj, jobject _url, jboolean _keep, jboolean _reload)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->openURL((const KURL&)*(const KURL*) QtSupport::getQt(env, _url), (bool) _keep, (bool) _reload);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_rootItem(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->rootItem(), "org.kde.koala.KFileItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setAutoErrorHandlingEnabled(JNIEnv* env, jobject obj, jboolean enable, jobject parent)
{
	((KDirLister*) QtSupport::getQt(env, obj))->setAutoErrorHandlingEnabled((bool) enable, (QWidget*) QtSupport::getQt(env, parent));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setAutoUpdate(JNIEnv* env, jobject obj, jboolean enable)
{
	((KDirLister*) QtSupport::getQt(env, obj))->setAutoUpdate((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setDirOnlyMode(JNIEnv* env, jobject obj, jboolean dirsOnly)
{
	((KDirLister*) QtSupport::getQt(env, obj))->setDirOnlyMode((bool) dirsOnly);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setMainWindow(JNIEnv* env, jobject obj, jobject window)
{
	((KDirLister*) QtSupport::getQt(env, obj))->setMainWindow((QWidget*) QtSupport::getQt(env, window));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setMimeExcludeFilter(JNIEnv* env, jobject obj, jobjectArray mimeList)
{
static QStringList* _qlist_mimeList = 0;
	((KDirLister*) QtSupport::getQt(env, obj))->setMimeExcludeFilter((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, mimeList, &_qlist_mimeList));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setMimeFilter(JNIEnv* env, jobject obj, jobjectArray mimeList)
{
static QStringList* _qlist_mimeList = 0;
	((KDirLister*) QtSupport::getQt(env, obj))->setMimeFilter((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, mimeList, &_qlist_mimeList));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setNameFilter(JNIEnv* env, jobject obj, jstring filter)
{
static QString* _qstring_filter = 0;
	((KDirLister*) QtSupport::getQt(env, obj))->setNameFilter((const QString&)*(QString*) QtSupport::toQString(env, filter, &_qstring_filter));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_setShowingDotFiles(JNIEnv* env, jobject obj, jboolean _showDotFiles)
{
	((KDirLister*) QtSupport::getQt(env, obj))->setShowingDotFiles((bool) _showDotFiles);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_showingDotFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->showingDotFiles();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_stop__(JNIEnv* env, jobject obj)
{
	((KDirListerJBridge*) QtSupport::getQt(env, obj))->public_stop();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_stop__Lorg_kde_koala_KURL_2(JNIEnv* env, jobject obj, jobject _url)
{
	((KDirLister*) QtSupport::getQt(env, obj))->stop((const KURL&)*(const KURL*) QtSupport::getQt(env, _url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirLister_updateDirectory(JNIEnv* env, jobject obj, jobject _dir)
{
	((KDirLister*) QtSupport::getQt(env, obj))->updateDirectory((const KURL&)*(const KURL*) QtSupport::getQt(env, _dir));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirLister_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KURL *) &((KDirLister*) QtSupport::getQt(env, obj))->url(), "org.kde.koala.KURL");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirLister_validURL(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_validURL((const KURL&)*(const KURL*) QtSupport::getQt(env, arg1));
	return xret;
}

