/***************************************************************************
                            KFileDialog.cpp -  description
                             -------------------
    begin                : Fri Mar 15 15:14:30 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar 15 15:14:30 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 <kfiledialog.h>
#include <qstring.h>
#include <qcstring.h>

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

class KFileDialogJBridge : public KFileDialog
{
public:
	KFileDialogJBridge(const QString& startDir, const QString& filter, QWidget* parent, const char* name, bool modal) : KFileDialog(startDir, filter, parent, name, modal) {}
	~KFileDialogJBridge() {QtSupport::qtKeyDeleted(this);}
//	void protected_addDirEntry(KFileItem* entry, bool disableUpdating) {
//		KFileDialog::addDirEntry(entry, disableUpdating);
//		return;
//	}
	void protected_initGUI() {
		KFileDialog::initGUI();
		return;
	}
	void protected_multiSelectionChanged() {
		KFileDialog::multiSelectionChanged();
		return;
	}
	void protected_readConfig(KConfig* arg1, const QString& group) {
		KFileDialog::readConfig(arg1, group);
		return;
	}
	void protected_writeConfig(KConfig* arg1, const QString& group) {
		KFileDialog::writeConfig(arg1, group);
		return;
	}
	void protected_readRecentFiles(KConfig* arg1) {
		KFileDialog::readRecentFiles(arg1);
		return;
	}
	void protected_saveRecentFiles(KConfig* arg1) {
		KFileDialog::saveRecentFiles(arg1);
		return;
	}
	KURL::List  protected_tokenize(const QString& line) {
		return (KURL::List ) KFileDialog::tokenize(line);
	}
	KURL::List&  protected_parseSelectedURLs() {
		return (KURL::List& ) KFileDialog::parseSelectedURLs();
	}
	void protected_urlEntered(const KURL& arg1) {
		KFileDialog::urlEntered(arg1);
		return;
	}
	void protected_enterURL(const KURL& url) {
		KFileDialog::enterURL(url);
		return;
	}
	void protected_enterURL(const QString& url) {
		KFileDialog::enterURL(url);
		return;
	}
	void protected_locationActivated(const QString& url) {
		KFileDialog::locationActivated(url);
		return;
	}
	void protected_toolbarCallback(int arg1) {
		KFileDialog::toolbarCallback(arg1);
		return;
	}
	void protected_slotFilterChanged() {
		KFileDialog::slotFilterChanged();
		return;
	}
	void protected_pathComboChanged(const QString& arg1) {
		KFileDialog::pathComboChanged(arg1);
		return;
	}
	void protected_fileHighlighted(const KFileItem* i) {
		KFileDialog::fileHighlighted(i);
		return;
	}
	void protected_fileSelected(const KFileItem* i) {
		KFileDialog::fileSelected(i);
		return;
	}
	void protected_slotStatResult(KIO::Job* job) {
		KFileDialog::slotStatResult(job);
		return;
	}
	void protected_slotLoadingFinished() {
		KFileDialog::slotLoadingFinished();
		return;
	}
	void protected_dirCompletion(const QString& arg1) {
		KFileDialog::dirCompletion(arg1);
		return;
	}
	void protected_fileCompletion(const QString& arg1) {
		KFileDialog::fileCompletion(arg1);
		return;
	}
	void protected_updateStatusLine(int dirs, int files) {
		KFileDialog::updateStatusLine(dirs, files);
		return;
	}
	void protected_slotOk() {
		KFileDialog::slotOk();
		return;
	}
	void protected_accept() {
		KFileDialog::accept();
		return;
	}
	void protected_slotCancel() {
		KFileDialog::slotCancel();
		return;
	}
	void protected_addToRecentDocuments() {
		KFileDialog::addToRecentDocuments();
		return;
	}
	void keyPressEvent(QKeyEvent* e) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", e, "org.kde.qt.QKeyEvent")) {
			KDialogBase::keyPressEvent(e);
		}
		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")) {
			QDialog::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;
	}
	bool customWhatsThis() {
		return QtSupport::booleanDelegate(this, "customWhatsThis");
	}
	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")) {
			KDialogBase::hideEvent(arg1);
		}
		return;
	}
	void imStartEvent(QIMEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "imStartEvent", arg1, "org.kde.qt.QIMEvent")) {
			QWidget::imStartEvent(arg1);
		}
		return;
	}
	void closeEvent(QCloseEvent* e) {
		if (! QtSupport::eventDelegate(this, "closeEvent", e, "org.kde.qt.QCloseEvent")) {
			KDialogBase::closeEvent(e);
		}
		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")) {
			QDialog::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_newKFileDialog(JNIEnv *env, jobject obj, jstring startDir, jstring filter, jobject parent, jstring name, jboolean modal)
{
static QCString * _qstring_name = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KFileDialogJBridge((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (bool) modal));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_dispose(JNIEnv *env, jobject obj)
{
	Java_org_kde_koala_KFileDialog_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setURL__Lorg_kde_koala_KURL_2(JNIEnv *env, jobject obj, jobject url)
{
	((KFileDialog*) QtSupport::getQt(env, obj))->setURL((KURL&) *(KURL *) QtSupport::getQt(env, url), true);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setSelection(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	((KFileDialog*) QtSupport::getQt(env, obj))->setSelection((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setOperationMode(JNIEnv *env, jobject obj, jint arg1)
{
	((KFileDialog*) QtSupport::getQt(env, obj))->setOperationMode((KFileDialog::OperationMode) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KFileDialog_operationMode(JNIEnv *env, jobject obj)
{
	return (jint) ((KFileDialog*) QtSupport::getQt(env, obj))->operationMode();
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setKeepLocation(JNIEnv *env, jobject obj, jboolean keep)
{
	((KFileDialog*) QtSupport::getQt(env, obj))->setKeepLocation((bool) keep);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KFileDialog_keepsLocation(JNIEnv *env, jobject obj)
{
	return (jboolean) ((KFileDialog*) QtSupport::getQt(env, obj))->keepsLocation();
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setFilterMimeType(JNIEnv *env, jobject obj, jstring label, jobject types, jobject defaultType)
{
static QString * _qstring_label = 0;
	((KFileDialog*) QtSupport::getQt(env, obj))->setFilterMimeType((QString&) * (QString *) QtSupport::toQString(env, label, &_qstring_label), (KMimeType::List&) *(KMimeType::List *) QtSupport::getQt(env, types), (KMimeType::Ptr&) *(KMimeType::Ptr *) QtSupport::getQt(env, defaultType));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_currentFilterMimeType(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KMimeType::Ptr (((KFileDialog*) QtSupport::getQt(env, obj))->currentFilterMimeType()), "org.kde.koala.KMimeType_Ptr", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setMimeFilter___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray types, jstring defaultType)
{
static QString * _qstring_defaultType = 0;
static QStringList * _qlist_types = 0;
	((KFileDialog*) QtSupport::getQt(env, obj))->setMimeFilter((QStringList&) * (QStringList *) QtSupport::toQStringList(env, types, &_qlist_types), (QString&) * (QString *) QtSupport::toQString(env, defaultType, &_qstring_defaultType));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setMimeFilter___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray types)
{
static QStringList * _qlist_types = 0;
	((KFileDialog*) QtSupport::getQt(env, obj))->setMimeFilter((QStringList&) * (QStringList *) QtSupport::toQStringList(env, types, &_qlist_types), QString::null);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setPreviewWidget__Lorg_kde_koala_KPreviewWidgetBase_2(JNIEnv *env, jobject obj, jobject w)
{
	((KFileDialog*) QtSupport::getQt(env, obj))->setPreviewWidget((KPreviewWidgetBase*) QtSupport::getQt(env, w));
	return;
}

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

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KFileDialog_setMode__I(JNIEnv *env, jobject obj, jint m)
//{
//	((KFileDialog*) QtSupport::getQt(env, obj))->setMode((unsigned int) m);
//	return;
//}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_setLocationLabel(JNIEnv *env, jobject obj, jstring text)
{
static QString * _qstring_text = 0;
	((KFileDialog*) QtSupport::getQt(env, obj))->setLocationLabel((QString&) * (QString *) QtSupport::toQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_toolBar(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileDialog*) QtSupport::getQt(env, obj))->toolBar(), "org.kde.koala.KToolBar");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_okButton(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileDialog*) QtSupport::getQt(env, obj))->okButton(), "org.kde.koala.KPushButton");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_cancelButton(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((KFileDialog*) QtSupport::getQt(env, obj))->cancelButton(), "org.kde.koala.KPushButton");
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getOpenFileName__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
	QString  _qstring;
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	_qstring = KFileDialogJBridge::getOpenFileName((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getOpenFileName__(JNIEnv *env, jclass obj)
{
	QString _qstring;
	_qstring = KFileDialogJBridge::getOpenFileName(QString::null, QString::null, 0, QString::null);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getOpenFileNames(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
	QStringList  _qlist;
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	_qlist = KFileDialogJBridge::getOpenFileNames((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getOpenURL__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KURL (KFileDialogJBridge::getOpenURL((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption))), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getOpenURL__(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KURL(KFileDialogJBridge::getOpenURL(QString::null, QString::null, 0, QString::null)), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getOpenURLs(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
	KURL::List  _qlist;
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	_qlist = KFileDialogJBridge::getOpenURLs((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return (jobject) KDESupport::arrayWithKURLList(env, (KURL::List *) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getSaveFileName__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
	QString  _qstring;
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	_qstring = KFileDialogJBridge::getSaveFileName((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getSaveFileName__(JNIEnv *env, jclass obj)
{
	QString _qstring;
	_qstring = KFileDialogJBridge::getSaveFileName(QString::null, QString::null, 0, QString::null);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getSaveURL__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jstring filter, jobject parent, jstring caption)
{
static QString * _qstring_caption = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_startDir = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KURL (KFileDialogJBridge::getSaveURL((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption))), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getSaveURL__(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KURL(KFileDialogJBridge::getSaveURL(QString::null, QString::null, 0, QString::null)), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getExistingDirectory__Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jobject parent, jstring caption)
{
	QString  _qstring;
static QString * _qstring_caption = 0;
static QString * _qstring_startDir = 0;
	_qstring = KFileDialogJBridge::getExistingDirectory((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KFileDialog_getExistingDirectory__(JNIEnv *env, jclass obj)
{
	QString _qstring;
	_qstring = KFileDialogJBridge::getExistingDirectory(QString::null, 0, QString::null);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getImageOpenURL__Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv *env, jclass obj, jstring startDir, jobject parent, jstring caption)
{
static QString * _qstring_caption = 0;
static QString * _qstring_startDir = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KURL (KFileDialogJBridge::getImageOpenURL((QString&) * (QString *) QtSupport::toQString(env, startDir, &_qstring_startDir), (QWidget*) QtSupport::getQt(env, parent), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption))), "org.kde.koala.KURL", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_getImageOpenURL__(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KURL(KFileDialogJBridge::getImageOpenURL(QString::null, 0, QString::null)), "org.kde.koala.KURL", TRUE);
}

//JNIEXPORT void JNICALL
//Java_org_kde_koala_KFileDialog_addDirEntry(JNIEnv *env, jobject obj, jobject entry, jboolean disableUpdating)
//{
//	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addDirEntry((KFileItem*) QtSupport::getQt(env, entry), (bool) disableUpdating);
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_initGUI(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_initGUI();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_multiSelectionChanged(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_multiSelectionChanged();
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_readRecentFiles(JNIEnv *env, jobject obj, jobject arg1)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_readRecentFiles((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_saveRecentFiles(JNIEnv *env, jobject obj, jobject arg1)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_saveRecentFiles((KConfig*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KFileDialog_tokenize(JNIEnv *env, jobject obj, jstring line)
{
	KURL::List  _qlist;
static QString * _qstring_line = 0;
	_qlist = ((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_tokenize((QString&) * (QString *) QtSupport::toQString(env, line, &_qstring_line));
	return (jobject) KDESupport::arrayWithKURLList(env, (KURL::List *) &_qlist);
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_urlEntered(JNIEnv *env, jobject obj, jobject arg1)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_urlEntered((KURL&) *(KURL *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_enterURL__Lorg_kde_koala_KURL_2(JNIEnv *env, jobject obj, jobject url)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_enterURL((KURL&) *(KURL *) QtSupport::getQt(env, url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_enterURL__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring url)
{
static QString * _qstring_url = 0;
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_enterURL((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_locationActivated(JNIEnv *env, jobject obj, jstring url)
{
static QString * _qstring_url = 0;
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_locationActivated((QString&) * (QString *) QtSupport::toQString(env, url, &_qstring_url));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_toolbarCallback(JNIEnv *env, jobject obj, jint arg1)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_toolbarCallback((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_slotFilterChanged(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_slotFilterChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_pathComboChanged(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_pathComboChanged((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_fileHighlighted(JNIEnv *env, jobject obj, jobject i)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_fileHighlighted((KFileItem*) QtSupport::getQt(env, i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_fileSelected(JNIEnv *env, jobject obj, jobject i)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_fileSelected((KFileItem*) QtSupport::getQt(env, i));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_slotStatResult(JNIEnv *env, jobject obj, jobject job)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_slotStatResult((KIO::Job*) QtSupport::getQt(env, job));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_slotLoadingFinished(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_slotLoadingFinished();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_dirCompletion(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_dirCompletion((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_fileCompletion(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_fileCompletion((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_updateStatusLine(JNIEnv *env, jobject obj, jint dirs, jint files)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_updateStatusLine((int) dirs, (int) files);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_slotOk(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_slotOk();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_accept(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_accept();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_slotCancel(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_slotCancel();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KFileDialog_addToRecentDocuments(JNIEnv *env, jobject obj)
{
	((KFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addToRecentDocuments();
	return;
}

