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

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

class TQDomTextJBridge : public TQDomText
{
public:
	TQDomTextJBridge() : TQDomText() {};
	TQDomTextJBridge(const TQDomText& arg1) : TQDomText(arg1) {};
	~TQDomTextJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDomText_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomText_isText(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomText*) QtSupport::getQt(env, obj))->isText();
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomText_splitText(JNIEnv* env, jobject obj, jint offset)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomText(((TQDomText*) QtSupport::getQt(env, obj))->splitText((int) offset)), "org.trinitydesktop.qt.TQDomText", true);
	return xret;
}

