//Auto-generated by kalyptus. DO NOT EDIT.
#include <qdir.h>
#include <qstrlist.h>
#include <qstring.h>
#include <qstringlist.h>

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

class QDirJBridge : public QDir
{
public:
	QDirJBridge() : QDir() {};
	QDirJBridge(const QString& arg1,const QString& arg2,int arg3,int arg4) : QDir(arg1,arg2,arg3,arg4) {};
	QDirJBridge(const QString& arg1,const QString& arg2,int arg3) : QDir(arg1,arg2,arg3) {};
	QDirJBridge(const QString& arg1,const QString& arg2) : QDir(arg1,arg2) {};
	QDirJBridge(const QString& arg1) : QDir(arg1) {};
	QDirJBridge(const QDir& arg1) : QDir(arg1) {};
	void public_convertToAbs() {
		QDir::convertToAbs();
		return;
	}
	~QDirJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_absFilePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	QString  _qstring;
static QString* _qstring_fileName = 0;
	_qstring = ((QDir*) QtSupport::getQt(env, obj))->absFilePath((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_absFilePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	QString  _qstring;
static QString* _qstring_fileName = 0;
	_qstring = ((QDir*) QtSupport::getQt(env, obj))->absFilePath((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cdUp(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->cdUp();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cd__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->cd((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_cd__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->cd((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_cleanDirPath(JNIEnv* env, jclass cls, jstring dirPath)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_dirPath = 0;
	_qstring = QDirJBridge::cleanDirPath((const QString&)*(QString*) QtSupport::toQString(env, dirPath, &_qstring_dirPath));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_convertSeparators(JNIEnv* env, jclass cls, jstring pathName)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_pathName = 0;
	_qstring = QDirJBridge::convertSeparators((const QString&)*(QString*) QtSupport::toQString(env, pathName, &_qstring_pathName));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_convertToAbs(JNIEnv* env, jobject obj)
{
	((QDirJBridge*) QtSupport::getQt(env, obj))->public_convertToAbs();
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDir*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_currentDirPath(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = QDirJBridge::currentDirPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_current(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDir(QDirJBridge::current()), "org.kde.qt.QDir", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDir_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__(JNIEnv* env, jobject obj)
{
	QStrList  _qlist;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList();
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	QStrList  _qlist;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	QStrList  _qlist;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	QStrList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	QStrList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_encodedEntryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	QStrList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->encodedEntryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithQStrList(env, (QStrList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	QStringList  _qlist;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	QStringList  _qlist;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	QStringList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->entryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	QStringList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->entryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_entryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	QStringList  _qlist;
static QString* _qstring_nameFilter = 0;
	_qlist = ((QDir*) QtSupport::getQt(env, obj))->entryList((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_exists__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->exists();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_exists__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean acceptAbsPath)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->exists((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_filePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	QString  _qstring;
static QString* _qstring_fileName = 0;
	_qstring = ((QDir*) QtSupport::getQt(env, obj))->filePath((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_filePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	QString  _qstring;
static QString* _qstring_fileName = 0;
	_qstring = ((QDir*) QtSupport::getQt(env, obj))->filePath((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_filter(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDir*) QtSupport::getQt(env, obj))->filter();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QDir*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_homeDirPath(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = QDirJBridge::homeDirPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_home(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDir(QDirJBridge::home()), "org.kde.qt.QDir", TRUE);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isReadable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->isReadable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRelativePath(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static QString* _qstring_path = 0;
	jboolean xret = (jboolean) QDirJBridge::isRelativePath((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRelative(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->isRelative();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_isRoot(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->isRoot();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_matchAllDirs(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->matchAllDirs();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_match__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filter, jstring fileName)
{
	(void) cls;
static QString* _qstring_filter = 0;
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) QDirJBridge::match((const QString&)*(QString*) QtSupport::toQString(env, filter, &_qstring_filter), (const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_match___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray filters, jstring fileName)
{
	(void) cls;
static QStringList* _qlist_filters = 0;
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) QDirJBridge::match((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, filters, &_qlist_filters), (const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_mkdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->mkdir((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_mkdir__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->mkdir((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newQDir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDirJBridge((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newQDir__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path, jstring nameFilter)
{
static QString* _qstring_path = 0;
static QString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDirJBridge((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newQDir__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring path, jstring nameFilter, jint sortSpec)
{
static QString* _qstring_path = 0;
static QString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDirJBridge((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) sortSpec));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newQDir__Ljava_lang_String_2Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring path, jstring nameFilter, jint sortSpec, jint filterSpec)
{
static QString* _qstring_path = 0;
static QString* _qstring_nameFilter = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDirJBridge((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path), (const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter), (int) sortSpec, (int) filterSpec));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_newQDir__Lorg_kde_qt_QDir_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDirJBridge((const QDir&)*(const QDir*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_op_1at(JNIEnv* env, jobject obj, jint arg1)
{
	QString  _qstring;
	_qstring = ((QDir*) QtSupport::getQt(env, obj))->operator[]((int) arg1);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->operator==((const QDir&)*(const QDir*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->operator!=((const QDir&)*(const QDir*) QtSupport::getQt(env, arg1));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_refresh(JNIEnv* env, jobject obj)
{
	((QDir*) QtSupport::getQt(env, obj))->refresh();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->remove((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_remove__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
static QString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->remove((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rename__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name, jstring newName)
{
static QString* _qstring_name = 0;
static QString* _qstring_newName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->rename((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, newName, &_qstring_newName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rename__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jstring newName, jboolean acceptAbsPaths)
{
static QString* _qstring_name = 0;
static QString* _qstring_newName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->rename((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QString&)*(QString*) QtSupport::toQString(env, newName, &_qstring_newName), (bool) acceptAbsPaths);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rmdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->rmdir((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_rmdir__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring dirName, jboolean acceptAbsPath)
{
static QString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((QDir*) QtSupport::getQt(env, obj))->rmdir((const QString&)*(QString*) QtSupport::toQString(env, dirName, &_qstring_dirName), (bool) acceptAbsPath);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDir_rootDirPath(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = QDirJBridge::rootDirPath();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDir_root(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QDir(QDirJBridge::root()), "org.kde.qt.QDir", TRUE);
	return xret;
}

JNIEXPORT jchar JNICALL
Java_org_kde_qt_QDir_separator(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jchar xret = (jchar) QDirJBridge::separator();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDir_setCurrent(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static QString* _qstring_path = 0;
	jboolean xret = (jboolean) QDirJBridge::setCurrent((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setFilter(JNIEnv* env, jobject obj, jint filterSpec)
{
	((QDir*) QtSupport::getQt(env, obj))->setFilter((int) filterSpec);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setMatchAllDirs(JNIEnv* env, jobject obj, jboolean arg1)
{
	((QDir*) QtSupport::getQt(env, obj))->setMatchAllDirs((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setNameFilter(JNIEnv* env, jobject obj, jstring nameFilter)
{
static QString* _qstring_nameFilter = 0;
	((QDir*) QtSupport::getQt(env, obj))->setNameFilter((const QString&)*(QString*) QtSupport::toQString(env, nameFilter, &_qstring_nameFilter));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setPath(JNIEnv* env, jobject obj, jstring path)
{
static QString* _qstring_path = 0;
	((QDir*) QtSupport::getQt(env, obj))->setPath((const QString&)*(QString*) QtSupport::toQString(env, path, &_qstring_path));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDir_setSorting(JNIEnv* env, jobject obj, jint sortSpec)
{
	((QDir*) QtSupport::getQt(env, obj))->setSorting((int) sortSpec);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDir_sorting(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QDir*) QtSupport::getQt(env, obj))->sorting();
	return xret;
}

