/***************************************************************************
                            QFileDialog.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, 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 <qfiledialog.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QFileDialog.h>

class QFileDialogJBridge : public QFileDialog
{
public:
	QFileDialogJBridge(const QString& dirName, const QString& filter, QWidget* parent, const char* name, bool modal) : QFileDialog(dirName, filter, parent, name, modal) {}
	QFileDialogJBridge(QWidget* parent, const char* name, bool modal) : QFileDialog(parent, name, modal) {}
	~QFileDialogJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_addWidgets(QLabel* arg1, QWidget* arg2, QPushButton* arg3) {
		QFileDialog::addWidgets(arg1, arg2, arg3);
		return;
	}
	void protected_addToolButton(QButton* b, bool separator) {
		QFileDialog::addToolButton(b, separator);
		return;
	}
	void protected_addLeftWidget(QWidget* w) {
		QFileDialog::addLeftWidget(w);
		return;
	}
	void protected_addRightWidget(QWidget* w) {
		QFileDialog::addRightWidget(w);
		return;
	}
	void keyPressEvent(QKeyEvent* arg1) {
		if (! QtSupport::eventDelegate(this, "keyPressEvent", arg1, "org.kde.qt.QKeyEvent")) {
			QFileDialog::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")) {
			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;
	}
	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")) {
			QDialog::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")) {
			QFileDialog::resizeEvent(arg1);
		}
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_newQFileDialog__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QWidget_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring dirName, jstring filter, jobject parent, jstring name, jboolean modal)
{
static QCString * _qstring_name = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_dirName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFileDialogJBridge((QString&) * (QString *) QtSupport::toQString(env, dirName, &_qstring_dirName), (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_qt_QFileDialog_newQFileDialog__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring dirName)
{
static QString * _qstring_dirName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFileDialogJBridge((QString&) * (QString *) QtSupport::toQString(env, dirName, &_qstring_dirName), QString::null, 0, 0, FALSE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_newQFileDialog__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jobject parent, jstring name, jboolean modal)
{
static QCString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFileDialogJBridge((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_qt_QFileDialog_newQFileDialog__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QFileDialogJBridge(0, 0, FALSE));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setSelectedFilter__I(JNIEnv *env, jobject obj, jint arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setSelectedFilter((int) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_selectAll(JNIEnv *env, jobject obj, jboolean b)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->selectAll((bool) b);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setDir__Lorg_kde_qt_QDir_2(JNIEnv *env, jobject obj, jobject arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setDir((QDir&) *(QDir *) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFileDialog_dir(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QFileDialogJBridge*) QtSupport::getQt(env, obj))->dir(), "org.kde.qt.QDir");
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_resortDir(JNIEnv *env, jobject obj)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->resortDir();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setMode(JNIEnv *env, jobject obj, jint arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setMode((QFileDialog::Mode) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setViewMode(JNIEnv *env, jobject obj, jint m)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setViewMode((QFileDialog::ViewMode) m);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFileDialog_viewMode(JNIEnv *env, jobject obj)
{
	return (jint) ((QFileDialogJBridge*) QtSupport::getQt(env, obj))->viewMode();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setPreviewMode(JNIEnv *env, jobject obj, jint m)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setPreviewMode((QFileDialog::PreviewMode) m);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QFileDialog_previewMode(JNIEnv *env, jobject obj)
{
	return (jint) ((QFileDialogJBridge*) QtSupport::getQt(env, obj))->previewMode();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFileDialog_eventFilter(JNIEnv *env, jobject obj, jobject arg1, jobject arg2)
{
	return (jboolean) ((QFileDialogJBridge*) QtSupport::getQt(env, obj))->eventFilter((QObject*) QtSupport::getQt(env, arg1), (QEvent*) QtSupport::getQt(env, arg2));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFileDialog_isInfoPreviewEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QFileDialogJBridge*) QtSupport::getQt(env, obj))->isInfoPreviewEnabled();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QFileDialog_isContentsPreviewEnabled(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QFileDialogJBridge*) QtSupport::getQt(env, obj))->isContentsPreviewEnabled();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setInfoPreviewEnabled(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setInfoPreviewEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setContentsPreviewEnabled(JNIEnv *env, jobject obj, jboolean arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setContentsPreviewEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setInfoPreview(JNIEnv *env, jobject obj, jobject w, jobject preview)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setInfoPreview((QWidget*) QtSupport::getQt(env, w), (QFilePreview*) QtSupport::getQt(env, preview));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setContentsPreview(JNIEnv *env, jobject obj, jobject w, jobject preview)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setContentsPreview((QWidget*) QtSupport::getQt(env, w), (QFilePreview*) QtSupport::getQt(env, preview));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFileDialog_url(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QUrl (((QFileDialogJBridge*) QtSupport::getQt(env, obj))->url()), "org.kde.qt.QUrlInterface", TRUE);
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_done(JNIEnv *env, jobject obj, jint arg1)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->done((int) arg1);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setUrl(JNIEnv *env, jobject obj, jobject url)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setUrl((QUrlOperator&) *(QUrlOperator *) QtSupport::getQt(env, url));
	return;
}

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

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

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QFileDialog_setFilters__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring arg1)
//{
//static QCString * _qstring_arg1 = 0;
//	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setFilters((char**) QtSupport::toCharString(env, arg1, &_qstring_arg1));
//	return;
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setFilters___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray arg1)
{
static QStringList * _qlist_arg1 = 0;
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->setFilters((QStringList&) * (QStringList *) QtSupport::toQStringList(env, arg1, &_qlist_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFileDialog_getOpenFileName(JNIEnv *env, jclass obj, jstring initially, jstring filter, jobject parent, jstring name, jstring caption, jstring selectedFilter, jboolean resolveSymlinks)
{
	QString  _qstring;
static QString * _qstring_selectedFilter = 0;
static QString * _qstring_caption = 0;
static QCString * _qstring_name = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_initially = 0;
	_qstring = QFileDialogJBridge::getOpenFileName((QString&) * (QString *) QtSupport::toQString(env, initially, &_qstring_initially), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (QString*) QtSupport::toQString(env, selectedFilter, &_qstring_selectedFilter), (bool) resolveSymlinks);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFileDialog_getSaveFileName(JNIEnv *env, jclass obj, jstring initially, jstring filter, jobject parent, jstring name, jstring caption, jstring selectedFilter, jboolean resolveSymlinks)
{
	QString  _qstring;
static QString * _qstring_selectedFilter = 0;
static QString * _qstring_caption = 0;
static QCString * _qstring_name = 0;
static QString * _qstring_filter = 0;
static QString * _qstring_initially = 0;
	_qstring = QFileDialogJBridge::getSaveFileName((QString&) * (QString *) QtSupport::toQString(env, initially, &_qstring_initially), (QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (QString*) QtSupport::toQString(env, selectedFilter, &_qstring_selectedFilter), (bool) resolveSymlinks);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QFileDialog_getExistingDirectory(JNIEnv *env, jclass obj, jstring dir, jobject parent, jstring name, jstring caption, jboolean dirOnly, jboolean resolveSymlinks)
{
	QString  _qstring;
static QString * _qstring_caption = 0;
static QCString * _qstring_name = 0;
static QString * _qstring_dir = 0;
	_qstring = QFileDialogJBridge::getExistingDirectory((QString&) * (QString *) QtSupport::toQString(env, dir, &_qstring_dir), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (bool) dirOnly, (bool) resolveSymlinks);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFileDialog_getOpenFileNames(JNIEnv *env, jclass obj, jstring filter, jstring dir, jobject parent, jstring name, jstring caption, jstring selectedFilter, jboolean resolveSymlinks)
{
	QStringList  _qlist;
static QString * _qstring_selectedFilter = 0;
static QString * _qstring_caption = 0;
static QCString * _qstring_name = 0;
static QString * _qstring_dir = 0;
static QString * _qstring_filter = 0;
	_qlist = QFileDialogJBridge::getOpenFileNames((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QString&) * (QString *) QtSupport::toQString(env, dir, &_qstring_dir), (QWidget*) QtSupport::getQt(env, parent), (char*) QtSupport::toCharString(env, name, &_qstring_name), (QString&) * (QString *) QtSupport::toQString(env, caption, &_qstring_caption), (QString*) QtSupport::toQString(env, selectedFilter, &_qstring_selectedFilter), (bool) resolveSymlinks);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList *) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_setIconProvider(JNIEnv *env, jclass obj, jobject arg1)
{
	QFileDialogJBridge::setIconProvider((QFileIconProvider*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QFileDialog_iconProvider(JNIEnv *env, jclass obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)QFileDialogJBridge::iconProvider(), "org.kde.qt.QFileIconProvider");
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_addWidgets(JNIEnv *env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addWidgets((QLabel*) QtSupport::getQt(env, arg1), (QWidget*) QtSupport::getQt(env, arg2), (QPushButton*) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_addToolButton__Lorg_kde_qt_QButton_2Z(JNIEnv *env, jobject obj, jobject b, jboolean separator)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addToolButton((QButton*) QtSupport::getQt(env, b), (bool) separator);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_addToolButton__Lorg_kde_qt_QButton_2(JNIEnv *env, jobject obj, jobject b)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addToolButton((QButton*) QtSupport::getQt(env, b), FALSE);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_addLeftWidget(JNIEnv *env, jobject obj, jobject w)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addLeftWidget((QWidget*) QtSupport::getQt(env, w));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QFileDialog_addRightWidget(JNIEnv *env, jobject obj, jobject w)
{
	((QFileDialogJBridge*) QtSupport::getQt(env, obj))->protected_addRightWidget((QWidget*) QtSupport::getQt(env, w));
	return;
}

