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

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

class QDomProcessingInstructionJBridge : public QDomProcessingInstruction
{
public:
	QDomProcessingInstructionJBridge() : QDomProcessingInstruction() {};
	QDomProcessingInstructionJBridge(const QDomProcessingInstruction& arg1) : QDomProcessingInstruction(arg1) {};
	~QDomProcessingInstructionJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomProcessingInstruction_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QDomProcessingInstruction_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomProcessingInstruction_isProcessingInstruction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QDomProcessingInstruction*) QtSupport::getQt(env, obj))->isProcessingInstruction();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomProcessingInstruction_setData(JNIEnv* env, jobject obj, jstring d)
{
static QString* _qstring_d = 0;
	((QDomProcessingInstruction*) QtSupport::getQt(env, obj))->setData((const QString&)*(QString*) QtSupport::toQString(env, d, &_qstring_d));
	return;
}

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

