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

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

class QDomTextJBridge : public QDomText
{
public:
	QDomTextJBridge() : QDomText() {};
	QDomTextJBridge(const QDomText& arg1) : QDomText(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 (QDomText*)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) ((QDomText*) 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 QDomText&)*(const QDomText*) 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) ((QDomText*) 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 QDomText(((QDomText*) QtSupport::getQt(env, obj))->splitText((int) offset)), "org.kde.qt.QDomText", TRUE);
	return xret;
}

