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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomText_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDomText_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_qt_QDomText_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_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.kde.qt.TQDomText", TRUE);
	return xret;
}

