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

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

class TQUuidJBridge : public TQUuid
{
public:
	TQUuidJBridge() : TQUuid() {};
	TQUuidJBridge(uint arg1,ushort arg2,ushort arg3,uchar arg4,uchar arg5,uchar arg6,uchar arg7,uchar arg8,uchar arg9,uchar arg10,uchar arg11) : TQUuid(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) {};
	TQUuidJBridge(const TQUuid& arg1) : TQUuid(arg1) {};
	TQUuidJBridge(const TQString& arg1) : TQUuid(arg1) {};
	~TQUuidJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QUuid_createUuid(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQUuid(TQUuidJBridge::createUuid()), "org.trinitydesktop.qt.TQUuid", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUuid_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QUuid_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUuid_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQUuid*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUuid_newTQUuid__ISSSSSSSSSS(JNIEnv* env, jobject obj, jint l, jshort w1, jshort w2, jshort b1, jshort b2, jshort b3, jshort b4, jshort b5, jshort b6, jshort b7, jshort b8)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUuidJBridge((uint) l, (ushort) w1, (ushort) w2, (uchar) b1, (uchar) b2, (uchar) b3, (uchar) b4, (uchar) b5, (uchar) b6, (uchar) b7, (uchar) b8));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUuid_newTQUuid__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUuidJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QUuid_newTQUuid__Lorg_trinitydesktop_qt_QUuid_2(JNIEnv* env, jobject obj, jobject uuid)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQUuidJBridge((const TQUuid&)*(const TQUuid*) QtSupport::getQt(env, uuid)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QUuid_op_1lt(JNIEnv* env, jobject obj, jobject other)
{
	jboolean xret = (jboolean) ((TQUuid*) QtSupport::getQt(env, obj))->operator<((const TQUuid&)*(const TQUuid*) QtSupport::getQt(env, other));
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QUuid_variant(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQUuid*) QtSupport::getQt(env, obj))->variant();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QUuid_version(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQUuid*) QtSupport::getQt(env, obj))->version();
	return xret;
}

