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

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

class TQDomEntityJBridge : public TQDomEntity
{
public:
	TQDomEntityJBridge() : TQDomEntity() {};
	TQDomEntityJBridge(const TQDomEntity& arg1) : TQDomEntity(arg1) {};
	~TQDomEntityJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomEntity_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDomEntity_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomEntity_isEntity(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomEntity*) QtSupport::getQt(env, obj))->isEntity();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomEntity_newTQDomEntity__Lorg_trinitydesktop_qt_QDomEntity_2(JNIEnv* env, jobject obj, jobject x)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDomEntityJBridge((const TQDomEntity&)*(const TQDomEntity*) QtSupport::getQt(env, x)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDomEntity_nodeType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDomEntity*) QtSupport::getQt(env, obj))->nodeType();
	return xret;
}

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

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

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

