//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatetime.h>
#include <tqiodevice.h>
#include <tqurl.h>
#include <tqstring.h>
#include <tqurloperator.h>
#include <tqurlinfo.h>

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

class TQUrlInfoJBridge : public TQUrlInfo
{
public:
	TQUrlInfoJBridge() : TQUrlInfo() {};
	TQUrlInfoJBridge(const TQUrlOperator& arg1,const TQString& arg2) : TQUrlInfo(arg1,arg2) {};
	TQUrlInfoJBridge(const TQUrlInfo& arg1) : TQUrlInfo(arg1) {};
	TQUrlInfoJBridge(const TQString& arg1,int arg2,const TQString& arg3,const TQString& arg4,TQIODevice::Offset arg5,const TQDateTime& arg6,const TQDateTime& arg7,bool arg8,bool arg9,bool arg10,bool arg11,bool arg12,bool arg13) : TQUrlInfo(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) {};
	TQUrlInfoJBridge(const TQUrl& arg1,int arg2,const TQString& arg3,const TQString& arg4,TQIODevice::Offset arg5,const TQDateTime& arg6,const TQDateTime& arg7,bool arg8,bool arg9,bool arg10,bool arg11,bool arg12,bool arg13) : TQUrlInfo(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) {};
	~TQUrlInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QUrlInfo_finalize(env, obj);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_equal(JNIEnv* env, jclass cls, jobject i1, jobject i2, jint sortBy)
{
	(void) cls;
	jboolean xret = (jboolean) TQUrlInfoJBridge::equal((const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i1), (const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i2), (int) sortBy);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_greaterThan(JNIEnv* env, jclass cls, jobject i1, jobject i2, jint sortBy)
{
	(void) cls;
	jboolean xret = (jboolean) TQUrlInfoJBridge::greaterThan((const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i1), (const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i2), (int) sortBy);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isDir(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isDir();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isExecutable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isExecutable();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isFile(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isFile();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isSymLink(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isSymLink();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_isWritable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUrlInfo*) QtSupport::getQt(env, obj))->isWritable();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_lastModified(JNIEnv* env, jobject obj)
{
	TQDateTime  _qdate;
	_qdate = ((TQUrlInfo*) QtSupport::getQt(env, obj))->lastModified();
	return (jobject) QtSupport::fromTQDateTime(env, (TQDateTime*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_lastRead(JNIEnv* env, jobject obj)
{
	TQDateTime  _qdate;
	_qdate = ((TQUrlInfo*) QtSupport::getQt(env, obj))->lastRead();
	return (jobject) QtSupport::fromTQDateTime(env, (TQDateTime*) &_qdate);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_lessThan(JNIEnv* env, jclass cls, jobject i1, jobject i2, jint sortBy)
{
	(void) cls;
	jboolean xret = (jboolean) TQUrlInfoJBridge::lessThan((const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i1), (const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, i2), (int) sortBy);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_newTQUrlInfo__Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2JLjava_util_Calendar_2Ljava_util_Calendar_2ZZZZZZ(JNIEnv* env, jobject obj, jstring name, jint permissions, jstring owner, jstring group, jlong size, jobject lastModified, jobject lastRead, jboolean isDir, jboolean isFile, jboolean isSymLink, jboolean isWritable, jboolean isReadable, jboolean isExecutable)
{
static TQString* _qstring_name = 0;
static TQString* _qstring_owner = 0;
static TQString* _qstring_group = 0;
static TQDateTime* _qdate_lastModified = 0;
static TQDateTime* _qdate_lastRead = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlInfoJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (int) permissions, (const TQString&)*(TQString*) QtSupport::toTQString(env, owner, &_qstring_owner), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (TQIODevice::Offset) size, (const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, lastModified, &_qdate_lastModified), (const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, lastRead, &_qdate_lastRead), (bool) isDir, (bool) isFile, (bool) isSymLink, (bool) isWritable, (bool) isReadable, (bool) isExecutable));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_newTQUrlInfo__Lorg_trinitydesktop_qt_QUrlInfo_2(JNIEnv* env, jobject obj, jobject ui)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlInfoJBridge((const TQUrlInfo&)*(const TQUrlInfo*) QtSupport::getQt(env, ui)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_newTQUrlInfo__Lorg_trinitydesktop_qt_QUrlInterface_2ILjava_lang_String_2Ljava_lang_String_2JLjava_util_Calendar_2Ljava_util_Calendar_2ZZZZZZ(JNIEnv* env, jobject obj, jobject url, jint permissions, jstring owner, jstring group, jlong size, jobject lastModified, jobject lastRead, jboolean isDir, jboolean isFile, jboolean isSymLink, jboolean isWritable, jboolean isReadable, jboolean isExecutable)
{
static TQString* _qstring_owner = 0;
static TQString* _qstring_group = 0;
static TQDateTime* _qdate_lastModified = 0;
static TQDateTime* _qdate_lastRead = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlInfoJBridge((const TQUrl&)*(const TQUrl*) QtSupport::getQt(env, url), (int) permissions, (const TQString&)*(TQString*) QtSupport::toTQString(env, owner, &_qstring_owner), (const TQString&)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group), (TQIODevice::Offset) size, (const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, lastModified, &_qdate_lastModified), (const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, lastRead, &_qdate_lastRead), (bool) isDir, (bool) isFile, (bool) isSymLink, (bool) isWritable, (bool) isReadable, (bool) isExecutable));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_newTQUrlInfo__Lorg_trinitydesktop_qt_QUrlOperator_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject path, jstring file)
{
static TQString* _qstring_file = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUrlInfoJBridge((const TQUrlOperator&)*(const TQUrlOperator*) QtSupport::getQt(env, path), (const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_permissions(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQUrlInfo*) QtSupport::getQt(env, obj))->permissions();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setDir(JNIEnv* env, jobject obj, jboolean b)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setDir((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setFile(JNIEnv* env, jobject obj, jboolean b)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setFile((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setGroup(JNIEnv* env, jobject obj, jstring s)
{
static TQString* _qstring_s = 0;
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setGroup((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setLastModified(JNIEnv* env, jobject obj, jobject dt)
{
static TQDateTime* _qdate_dt = 0;
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setLastModified((const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, dt, &_qdate_dt));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setName(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setOwner(JNIEnv* env, jobject obj, jstring s)
{
static TQString* _qstring_s = 0;
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setOwner((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setPermissions(JNIEnv* env, jobject obj, jint p)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setPermissions((int) p);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setReadable(JNIEnv* env, jobject obj, jboolean b)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setReadable((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setSize(JNIEnv* env, jobject obj, jlong size)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setSize((TQIODevice::Offset) size);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setSymLink(JNIEnv* env, jobject obj, jboolean b)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setSymLink((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_setWritable(JNIEnv* env, jobject obj, jboolean b)
{
	((TQUrlInfo*) QtSupport::getQt(env, obj))->setWritable((bool) b);
	return;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QUrlInfo_size(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((TQUrlInfo*) QtSupport::getQt(env, obj))->size();
	return xret;
}

