//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdir.h>
#include <tqstrlist.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_absFilePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->absFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_absFilePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->absFilePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_cd__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->cd((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_cleanDirPath(JNIEnv* env, jclass cls, jstring dirPath)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_dirPath = 0;
	_qstring = TQDirJBridge::cleanDirPath((const TQString&)*(TQString*) QtSupport::toTQString(env, dirPath, &_qstring_dirPath));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_convertSeparators(JNIEnv* env, jclass cls, jstring pathName)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_pathName = 0;
	_qstring = TQDirJBridge::convertSeparators((const TQString&)*(TQString*) QtSupport::toTQString(env, pathName, &_qstring_pathName));
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_currentDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::currentDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_current(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::current()), "org.trinitydesktop.qt.TQDir", true);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDir_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDir_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__(JNIEnv* env, jobject obj)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList();
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	TQStrList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_encodedEntryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	TQStrList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->encodedEntryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_entryList__I(JNIEnv* env, jobject obj, jint filterSpec)
{
	TQStringList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_entryList__II(JNIEnv* env, jobject obj, jint filterSpec, jint sortSpec)
{
	TQStringList  _qlist;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_entryList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring nameFilter)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_entryList__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_entryList__Ljava_lang_String_2II(JNIEnv* env, jobject obj, jstring nameFilter, jint filterSpec, jint sortSpec)
{
	TQStringList  _qlist;
static TQString* _qstring_nameFilter = 0;
	_qlist = ((TQDir*) QtSupport::getQt(env, obj))->entryList((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter), (int) filterSpec, (int) sortSpec);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_filePath__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->filePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_filePath__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean acceptAbsPath)
{
	TQString  _qstring;
static TQString* _qstring_fileName = 0;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->filePath((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) acceptAbsPath);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_homeDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::homeDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_home(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::home()), "org.trinitydesktop.qt.TQDir", true);
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_isRelativePath(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) TQDirJBridge::isRelativePath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_match__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filter, jstring fileName)
{
	(void) cls;
static TQString* _qstring_filter = 0;
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) TQDirJBridge::match((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_match___3Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobjectArray filters, jstring fileName)
{
	(void) cls;
static TQStringList* _qlist_filters = 0;
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) TQDirJBridge::match((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, filters, &_qlist_filters), (const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_mkdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->mkdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDir_newTQDir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDirJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_op_1at(JNIEnv* env, jobject obj, jint arg1)
{
	TQString  _qstring;
	_qstring = ((TQDir*) QtSupport::getQt(env, obj))->operator[]((int) arg1);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->remove((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_rmdir__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring dirName)
{
static TQString* _qstring_dirName = 0;
	jboolean xret = (jboolean) ((TQDir*) QtSupport::getQt(env, obj))->rmdir((const TQString&)*(TQString*) QtSupport::toTQString(env, dirName, &_qstring_dirName));
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDir_rootDirPath(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TQDirJBridge::rootDirPath();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDir_root(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDir(TQDirJBridge::root()), "org.trinitydesktop.qt.TQDir", true);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDir_setCurrent(JNIEnv* env, jclass cls, jstring path)
{
	(void) cls;
static TQString* _qstring_path = 0;
	jboolean xret = (jboolean) TQDirJBridge::setCurrent((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDir_setNameFilter(JNIEnv* env, jobject obj, jstring nameFilter)
{
static TQString* _qstring_nameFilter = 0;
	((TQDir*) QtSupport::getQt(env, obj))->setNameFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, nameFilter, &_qstring_nameFilter));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDir_setPath(JNIEnv* env, jobject obj, jstring path)
{
static TQString* _qstring_path = 0;
	((TQDir*) QtSupport::getQt(env, obj))->setPath((const TQString&)*(TQString*) QtSupport::toTQString(env, path, &_qstring_path));
	return;
}

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

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

