//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeio/global.h>
#include <tdeparts/browserextension.h>
#include <kdirlister.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <kurl.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/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 TQString& arg1,const TQStringList& arg2) {
		return (bool) KDirLister::doMimeFilter(arg1,arg2);
	}
	bool protected_doMimeExcludeFilter(const TQString& arg1,const TQStringList& arg2) {
		return (bool) KDirLister::doMimeExcludeFilter(arg1,arg2);
	}
	bool protected_validURL(const KURL& arg1) {
		return (bool) KDirLister::validURL(arg1);
	}
	void protected_handleError(TDEIO::Job* arg1) {
		KDirLister::handleError(arg1);
		return;
	}
	~KDirListerJBridge() {QtSupport::qtKeyDeleted(this);}
	void clearMimeFilter() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KDirLister","clearMimeFilter")) {
			KDirLister::clearMimeFilter();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void emitChanges() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KDirLister","emitChanges")) {
			KDirLister::emitChanges();
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void updateDirectory(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"updateDirectory",(void*)&arg1,"org.trinitydesktop.koala.KURL")) {
			KDirLister::updateDirectory(arg1);
		}
		return;
	}
	void handleError(TDEIO::Job* arg1) {
		if (!QtSupport::eventDelegate(this,"handleError",(void*)arg1,"org.trinitydesktop.koala.Job")) {
			KDirLister::handleError(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KDirLister",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void stop(const KURL& arg1) {
		if (!QtSupport::eventDelegate(this,"stop",(void*)&arg1,"org.trinitydesktop.koala.KURL")) {
			KDirLister::stop(arg1);
		}
		return;
	}
};

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirLister_clearMimeFilter(JNIEnv* env, jobject obj)
{
	((KDirListerJBridge*) QtSupport::getQt(env, obj))->public_clearMimeFilter();
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirLister_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KDirLister_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KDirLister_doMimeExcludeFilter(JNIEnv* env, jobject obj, jstring mimeExclude, jobjectArray filters)
{
static TQString* _qstring_mimeExclude = 0;
static TQStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_doMimeExcludeFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, mimeExclude, &_qstring_mimeExclude), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KDirLister_doMimeFilter(JNIEnv* env, jobject obj, jstring mime, jobjectArray filters)
{
static TQString* _qstring_mime = 0;
static TQStringList* _qlist_filters = 0;
	jboolean xret = (jboolean) ((KDirListerJBridge*) QtSupport::getQt(env, obj))->protected_doMimeFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, mime, &_qstring_mime), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KDirLister_findByName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->findByName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.trinitydesktop.koala.KFileItem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.koala.KFileItem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_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.trinitydesktop.koala.KFileItem");
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KDirLister_itemsForDir__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_itemsForDir__Lorg_trinitydesktop_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_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KDirLister_mainWindow(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->mainWindow(), "org.trinitydesktop.qt.TQWidget");
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KDirLister_matchesFilter__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_matchesMimeFilter__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring mime)
{
static TQString* _qstring_mime = 0;
	jboolean xret = (jboolean) ((KDirLister*) QtSupport::getQt(env, obj))->matchesMimeFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, mime, &_qstring_mime));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KDirLister_matchesMimeFilter__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KDirLister_openURL__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_openURL__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_openURL__Lorg_trinitydesktop_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_trinitydesktop_koala_KDirLister_rootItem(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KDirLister*) QtSupport::getQt(env, obj))->rootItem(), "org.trinitydesktop.koala.KFileItem");
	return xret;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KDirLister_stop__Lorg_trinitydesktop_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_trinitydesktop_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_trinitydesktop_koala_KDirLister_url(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KURL *) &((KDirLister*) QtSupport::getQt(env, obj))->url(), "org.trinitydesktop.koala.KURL");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_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;
}

