/***************************************************************************
                            KDirOperator.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <kdiroperator.h>
#include <qstring.h>
#include <qcstring.h>

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

class KDirOperatorJBridge : public KDirOperator
{
public:
	KDirOperatorJBridge(const KURL& urlName, QWidget* parent, const char* name) : KDirOperator(urlName, parent, name) {}
	~KDirOperatorJBridge() {QtSupport::qtKeyDeleted(this);}
	 KFileView*  protected_createView(QWidget* parent, KFile::FileView view) {
		return ( KFileView* ) KDirOperator::createView(parent, view);
	}
	void protected_setDirLister(KDirLister* lister) {
		KDirOperator::setDirLister(lister);
		return;
	}
	void protected_setupActions() {
		KDirOperator::setupActions();
		return;
	}
	void protected_updateSortActions() {
		KDirOperator::updateSortActions();
		return;
	}
	void protected_updateViewActions() {
		KDirOperator::updateViewActions();
		return;
	}
	void protected_setupMenu() {
		KDirOperator::setupMenu();
		return;
	}
	void protected_prepareCompletionObjects() {
		KDirOperator::prepareCompletionObjects();
		return;
	}
	bool  protected_checkPreviewSupport() {
		return (bool ) KDirOperator::checkPreviewSupport();
	}
	void protected_resetCursor() {
		KDirOperator::resetCursor();
		return;
	}
	void protected_pathChanged() {
		KDirOperator::pathChanged();
		return;
	}
	void protected_insertNewFiles(const KFileItemList& newone) {
		KDirOperator::insertNewFiles(newone);
		return;
	}
	void protected_itemDeleted(KFileItem* arg1) {
		KDirOperator::itemDeleted(arg1);
		return;
	}
	void protected_selectDir(const KFileItem* item) {
		KDirOperator::selectDir(item);
		return;
	}
	void protected_selectFile(const KFileItem* item) {
		KDirOperator::selectFile(item);
		return;
	}
	void protected_highlightFile(const KFileItem* i) {
		KDirOperator::highlightFile(i);
		return;
	}
	void protected_activatedMenu(const KFileItem* arg1, const QPoint& pos) {
		KDirOperator::activatedMenu(arg1, pos);
		return;
	}
	void protected_sortByName() {
		KDirOperator::sortByName();
		return;
	}
	void protected_sortBySize() {
		KDirOperator::sortBySize();
		return;
	}
	void protected_sortByDate() {
		KDirOperator::sortByDate();
		return;
	}
	void protected_sortReversed() {
		KDirOperator::sortReversed();
		return;
	}
	void protected_toggleDirsFirst() {
		KDirOperator::toggleDirsFirst();
		return;
	}
	void protected_toggleIgnoreCase() {
		KDirOperator::toggleIgnoreCase();
		return;
	}
	void protected_slotCompletionMatch(const QString& match) {
		KDirOperator::slotCompletionMatch(match);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyPressEvent(arg1);
		}
		return;
	}
	void keyReleaseEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyReleaseEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QWidget::keyReleaseEvent(arg1);
		}
		return;
	}
	void focusOutEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusOutEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusOutEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "childEvent", arg1, "org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void dragMoveEvent(QDragMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragMoveEvent", arg1, "org.kde.qt.QDragMoveEvent")) {
			QWidget::dragMoveEvent(arg1);
		}
		return;
	}
	void leaveEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "leaveEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::leaveEvent(arg1);
		}
		return;
	}
	void tabletEvent(QTabletEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "tabletEvent", arg1, "org.kde.qt.QTabletEvent")) {
			QWidget::tabletEvent(arg1);
		}
		return;
	}
	void showEvent(QShowEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "showEvent", arg1, "org.kde.qt.QShowEvent")) {
			QWidget::showEvent(arg1);
		}
		return;
	}
	void contextMenuEvent(QContextMenuEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "contextMenuEvent", arg1, "org.kde.qt.QContextMenuEvent")) {
			QWidget::contextMenuEvent(arg1);
		}
		return;
	}
	void mousePressEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mousePressEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mousePressEvent(arg1);
		}
		return;
	}
	void imComposeEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imComposeEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imComposeEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "customEvent", arg1, "org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void mouseReleaseEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseReleaseEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseReleaseEvent(arg1);
		}
		return;
	}
	void mouseDoubleClickEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseDoubleClickEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseDoubleClickEvent(arg1);
		}
		return;
	}
	void dragLeaveEvent(QDragLeaveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragLeaveEvent", arg1, "org.kde.qt.QDragLeaveEvent")) {
			QWidget::dragLeaveEvent(arg1);
		}
		return;
	}
	void enterEvent(QEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "enterEvent", arg1, "org.kde.qt.QEvent")) {
			QWidget::enterEvent(arg1);
		}
		return;
	}
	void focusInEvent(QFocusEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "focusInEvent", arg1, "org.kde.qt.QFocusEvent")) {
			QWidget::focusInEvent(arg1);
		}
		return;
	}
	void imEndEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imEndEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imEndEvent(arg1);
		}
		return;
	}
	void dropEvent(QDropEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dropEvent", arg1, "org.kde.qt.QDropEvent")) {
			QWidget::dropEvent(arg1);
		}
		return;
	}
	void dragEnterEvent(QDragEnterEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "dragEnterEvent", arg1, "org.kde.qt.QDragEnterEvent")) {
			QWidget::dragEnterEvent(arg1);
		}
		return;
	}
	void mouseMoveEvent(QMouseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "mouseMoveEvent", arg1, "org.kde.qt.QMouseEvent")) {
			QWidget::mouseMoveEvent(arg1);
		}
		return;
	}
	void moveEvent(QMoveEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "moveEvent", arg1, "org.kde.qt.QMoveEvent")) {
			QWidget::moveEvent(arg1);
		}
		return;
	}
	void wheelEvent(QWheelEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "wheelEvent", arg1, "org.kde.qt.QWheelEvent")) {
			QWidget::wheelEvent(arg1);
		}
		return;
	}
	void hideEvent(QHideEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "hideEvent", arg1, "org.kde.qt.QHideEvent")) {
			QWidget::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "closeEvent", arg1, "org.kde.qt.QCloseEvent")) {
			QWidget::closeEvent(arg1);
		}
		return;
	}
	void paintEvent(QPaintEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "paintEvent", arg1, "org.kde.qt.QPaintEvent")) {
			QWidget::paintEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "timerEvent", arg1, "org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void resizeEvent(QResizeEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "resizeEvent", arg1, "org.kde.qt.QResizeEvent")) {
			KDirOperator::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_newKDirOperator__Lorg_kde_koala_KURL_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject urlName, jobject parent, jstring name)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KDirOperatorJBridge((KURL&) *(KURL *) QtSupport::getQt(env, urlName), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KDirOperator*)QtSupport::getQt(env, obj))->parentWidget(TRUE) == (QWidget *) 0) {
		delete (KDirOperator*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KDirOperator_finalize(env, obj);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setShowHiddenFiles(JNIEnv *env, jobject obj, jboolean s)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setShowHiddenFiles((bool) s);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_showHiddenFiles(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->showHiddenFiles();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_close(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->close();
	return TRUE;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setMimeFilter(JNIEnv *env, jobject obj, jobjectArray mimetypes)
{
static QStringList * _qlist_mimetypes = 0;
	((KDirOperator*) QtSupport::getQt(env, obj))->setMimeFilter((QStringList&) * (QStringList *) QtSupport::toQStringList(env, mimetypes, &_qlist_mimetypes));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_clearFilter(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->clearFilter();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_url(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KURL (((KDirOperator*) QtSupport::getQt(env, obj))->url()), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setURL(JNIEnv *env, jobject obj, jobject url, jboolean clearforward)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setURL((KURL&) *(KURL *) QtSupport::getQt(env, url), (bool) clearforward);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setCurrentItem(JNIEnv *env, jobject obj, jstring filename)
{
static QString * _qstring_filename = 0;
	((KDirOperator*) QtSupport::getQt(env, obj))->setCurrentItem((QString&) * (QString *) QtSupport::toQString(env, filename, &_qstring_filename));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setView__Lorg_kde_koala_KFileViewInterface_2(JNIEnv *env, jobject obj, jobject view)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setView((KFileView*) QtSupport::getQt(env, view));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_view(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->view(), "org.kde.koala.KFileViewInterface");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_viewWidget(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->viewWidget(), "org.kde.qt.QWidget");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setView__I(JNIEnv *env, jobject obj, jint view)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setView((KFile::FileView) view);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setSorting(JNIEnv *env, jobject obj, jint arg1)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setSorting((QDir::SortSpec) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDirOperator_sorting(JNIEnv *env, jobject obj)
{
	return (jint) ((KDirOperator*) QtSupport::getQt(env, obj))->sorting();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_isRoot(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->isRoot();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_dirLister(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->dirLister(), "org.kde.koala.KDirLister");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_progressBar(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->progressBar(), "org.kde.koala.KProgress");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setMode(JNIEnv *env, jobject obj, jint m)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setMode((KFile::Mode) m);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDirOperator_mode(JNIEnv *env, jobject obj)
{
	return (jint) ((KDirOperator*) QtSupport::getQt(env, obj))->mode();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setPreviewWidget(JNIEnv *env, jobject obj, jobject w)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setPreviewWidget((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_selectedItems(JNIEnv *env, jobject obj)
{
	const KFileItemList  * _qlist;
	_qlist = ((KDirOperator*) QtSupport::getQt(env, obj))->selectedItems();
	return (jobject) KDESupport::arrayWithKFileItemList(env, (KFileItemList *) _qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_isSelected(JNIEnv *env, jobject obj, jobject item)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->isSelected((KFileItem*) QtSupport::getQt(env, item));
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDirOperator_numDirs(JNIEnv *env, jobject obj)
{
	return (jint) ((KDirOperator*) QtSupport::getQt(env, obj))->numDirs();
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KDirOperator_numFiles(JNIEnv *env, jobject obj)
{
	return (jint) ((KDirOperator*) QtSupport::getQt(env, obj))->numFiles();
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_completionObject(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->completionObject(), "org.kde.koala.KCompletion");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_dirCompletionObject(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->dirCompletionObject(), "org.kde.koala.KCompletion");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_actionCollection(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->actionCollection(), "org.kde.koala.KActionCollection");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_readConfig__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject arg1, jstring group)
{
static QString * _qstring_group = 0;
	((KDirOperator*) QtSupport::getQt(env, obj))->readConfig((KConfig*) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, group, &_qstring_group));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_readConfig__Lorg_kde_koala_KConfig_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->readConfig((KConfig*) QtSupport::getQt(env, arg1), QString::null);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_writeConfig__Lorg_kde_koala_KConfig_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject arg1, jstring group)
{
static QString * _qstring_group = 0;
	((KDirOperator*) QtSupport::getQt(env, obj))->writeConfig((KConfig*) QtSupport::getQt(env, arg1), (QString&) * (QString *) QtSupport::toQString(env, group, &_qstring_group));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_writeConfig__Lorg_kde_koala_KConfig_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->writeConfig((KConfig*) QtSupport::getQt(env, arg1), QString::null);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setOnlyDoubleClickSelectsFiles(JNIEnv *env, jobject obj, jboolean enable)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setOnlyDoubleClickSelectsFiles((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_onlyDoubleClickSelectsFiles(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->onlyDoubleClickSelectsFiles();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_mkdir__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring directory, jboolean enterDirectory)
{
static QString * _qstring_directory = 0;
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->mkdir((QString&) * (QString *) QtSupport::toQString(env, directory, &_qstring_directory), (bool) enterDirectory);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_mkdir__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring directory)
{
static QString * _qstring_directory = 0;
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->mkdir((QString&) * (QString *) QtSupport::toQString(env, directory, &_qstring_directory), true);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_del__Ljava_util_ArrayList_2ZZ(JNIEnv *env, jobject obj, jobjectArray items, jboolean ask, jboolean showProgress)
{
static KFileItemList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->del((KFileItemList&) * (KFileItemList *) KDESupport::toKFileItemList(env, items, &_qlist_items), (bool) ask, (bool) showProgress), "org.kde.koala.DeleteJob");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_del__Ljava_util_ArrayList_2(JNIEnv *env, jobject obj, jobjectArray items)
{
static KFileItemList * _qlist_items = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperator*) QtSupport::getQt(env, obj))->del((KFileItemList&) * (KFileItemList *) KDESupport::toKFileItemList(env, items, &_qlist_items), true, true), "org.kde.koala.DeleteJob");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_clearHistory(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->clearHistory();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setEnableDirHighlighting(JNIEnv *env, jobject obj, jboolean enable)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->setEnableDirHighlighting((bool) enable);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_dirHighlighting(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->dirHighlighting();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_dirOnlyMode__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperator*) QtSupport::getQt(env, obj))->dirOnlyMode();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_back(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->back();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_forward(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->forward();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_home(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->home();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_cdUp(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->cdUp();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_updateDir(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->updateDir();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_rereadDir(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->rereadDir();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_mkdir__(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->mkdir();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_deleteSelected(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->deleteSelected();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_updateSelectionDependentActions(JNIEnv *env, jobject obj)
{
	((KDirOperator*) QtSupport::getQt(env, obj))->updateSelectionDependentActions();
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDirOperator_makeCompletion(JNIEnv *env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString * _qstring_arg1 = 0;
	_qstring = ((KDirOperator*) QtSupport::getQt(env, obj))->makeCompletion((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KDirOperator_makeDirCompletion(JNIEnv *env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString * _qstring_arg1 = 0;
	_qstring = ((KDirOperator*) QtSupport::getQt(env, obj))->makeDirCompletion((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_dirOnlyMode__I(JNIEnv *env, jclass obj, jint mode)
{
	return (jboolean) KDirOperatorJBridge::dirOnlyMode((uint) mode);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KDirOperator_createView(JNIEnv *env, jobject obj, jobject parent, jint view)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_createView((QWidget*) QtSupport::getQt(env, parent), (KFile::FileView) view), "org.kde.koala.KFileViewInterface");
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setDirLister(JNIEnv *env, jobject obj, jobject lister)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_setDirLister((KDirLister*) QtSupport::getQt(env, lister));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setupActions(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_setupActions();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_updateSortActions(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_updateSortActions();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_updateViewActions(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_updateViewActions();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_setupMenu(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_setupMenu();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_prepareCompletionObjects(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_prepareCompletionObjects();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KDirOperator_checkPreviewSupport(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_checkPreviewSupport();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_resetCursor(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_resetCursor();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_pathChanged(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_pathChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_insertNewFiles(JNIEnv *env, jobject obj, jobjectArray newone)
{
static KFileItemList * _qlist_newone = 0;
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_insertNewFiles((KFileItemList&) * (KFileItemList *) KDESupport::toKFileItemList(env, newone, &_qlist_newone));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_itemDeleted(JNIEnv *env, jobject obj, jobject arg1)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_itemDeleted((KFileItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_selectDir(JNIEnv *env, jobject obj, jobject item)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_selectDir((KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_selectFile(JNIEnv *env, jobject obj, jobject item)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_selectFile((KFileItem*) QtSupport::getQt(env, item));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_highlightFile(JNIEnv *env, jobject obj, jobject i)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_highlightFile((KFileItem*) QtSupport::getQt(env, i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_activatedMenu(JNIEnv *env, jobject obj, jobject arg1, jobject pos)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_activatedMenu((KFileItem*) QtSupport::getQt(env, arg1), (QPoint&) *(QPoint *) QtSupport::getQt(env, pos));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_sortByName(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_sortByName();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_sortBySize(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_sortBySize();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_sortByDate(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_sortByDate();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_sortReversed(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_sortReversed();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_toggleDirsFirst(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_toggleDirsFirst();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_toggleIgnoreCase(JNIEnv *env, jobject obj)
{
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_toggleIgnoreCase();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KDirOperator_slotCompletionMatch(JNIEnv *env, jobject obj, jstring match)
{
static QString * _qstring_match = 0;
	((KDirOperatorJBridge*) QtSupport::getQt(env, obj))->protected_slotCompletionMatch((QString&) * (QString *) QtSupport::toQString(env, match, &_qstring_match));
	return;
}

