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

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

class TQDomProcessingInstructionJBridge : public TQDomProcessingInstruction
{
public:
	TQDomProcessingInstructionJBridge() : TQDomProcessingInstruction() {};
	TQDomProcessingInstructionJBridge(const TQDomProcessingInstruction& arg1) : TQDomProcessingInstruction(arg1) {};
	~TQDomProcessingInstructionJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomProcessingInstruction_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDomProcessingInstruction_finalize(env, obj);
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomProcessingInstruction_setData(JNIEnv* env, jobject obj, jstring d)
{
static TQString* _qstring_d = 0;
	((TQDomProcessingInstruction*) QtSupport::getQt(env, obj))->setData((const TQString&)*(TQString*) QtSupport::toTQString(env, d, &_qstring_d));
	return;
}

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

