//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_string.h>
#include <dom/dom_node.h>
#include <dom/dom2_events.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/MutationEvent.h>

class MutationEventJBridge : public DOM::MutationEvent
{
public:
	MutationEventJBridge() : DOM::MutationEvent() {};
	MutationEventJBridge(const DOM::MutationEvent& arg1) : DOM::MutationEvent(arg1) {};
	MutationEventJBridge(const DOM::Event& arg1) : DOM::MutationEvent(arg1) {};
};

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_koala_MutationEvent_attrChange(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((DOM::MutationEvent*) QtSupport::getQt(env, obj))->attrChange();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_MutationEvent_attrName(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::MutationEvent*) QtSupport::getQt(env, obj))->attrName();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MutationEvent_initMutationEvent(JNIEnv* env, jobject obj, jstring typeArg, jboolean canBubbleArg, jboolean cancelableArg, jobject relatedNodeArg, jstring prevValueArg, jstring newValueArg, jstring attrNameArg, jshort attrChangeArg)
{
static DOM::DOMString* _domstring_typeArg = 0;
static DOM::DOMString* _domstring_prevValueArg = 0;
static DOM::DOMString* _domstring_newValueArg = 0;
static DOM::DOMString* _domstring_attrNameArg = 0;
	((DOM::MutationEvent*) QtSupport::getQt(env, obj))->initMutationEvent((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, typeArg, &_domstring_typeArg), (bool) canBubbleArg, (bool) cancelableArg, (const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, relatedNodeArg), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, prevValueArg, &_domstring_prevValueArg), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, newValueArg, &_domstring_newValueArg), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, attrNameArg, &_domstring_attrNameArg), (unsigned short) attrChangeArg);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MutationEvent_newMutationEvent__Lorg_trinitydesktop_koala_Event_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new MutationEventJBridge((const DOM::Event&)*(const DOM::Event*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MutationEvent_newMutationEvent__Lorg_trinitydesktop_koala_MutationEvent_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new MutationEventJBridge((const DOM::MutationEvent&)*(const DOM::MutationEvent*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_MutationEvent_newValue(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::MutationEvent*) QtSupport::getQt(env, obj))->newValue();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_MutationEvent_prevValue(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::MutationEvent*) QtSupport::getQt(env, obj))->prevValue();
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_MutationEvent_relatedNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::MutationEvent*) QtSupport::getQt(env, obj))->relatedNode()), "org.trinitydesktop.koala.Node", true);
	return xret;
}

