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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QUuid_createUuid(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QUuid(QUuidJBridge::createUuid()), "org.kde.qt.QUuid", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QUuid_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QUuid_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QUuid_newQUuid__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 QUuidJBridge((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_kde_qt_QUuid_newQUuid__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QUuidJBridge((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

