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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/TextEvent.h>

class TextEventJBridge : public DOM::TextEvent
{
public:
	TextEventJBridge() : DOM::TextEvent() {};
	TextEventJBridge(const DOM::TextEvent& arg1) : DOM::TextEvent(arg1) {};
	TextEventJBridge(const DOM::Event& arg1) : DOM::TextEvent(arg1) {};
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_TextEvent_checkModifier(JNIEnv* env, jobject obj, jlong modifierArg)
{
	jboolean xret = (jboolean) ((DOM::TextEvent*) QtSupport::getQt(env, obj))->checkModifier((unsigned long) modifierArg);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_TextEvent_initModifier(JNIEnv* env, jobject obj, jlong modifierArg, jboolean valueArg)
{
	((DOM::TextEvent*) QtSupport::getQt(env, obj))->initModifier((unsigned long) modifierArg, (bool) valueArg);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_TextEvent_initTextEvent(JNIEnv* env, jobject obj, jstring typeArg, jboolean canBubbleArg, jboolean cancelableArg, jobject viewArg, jlong detailArg, jstring outputStringArg, jlong keyValArg, jlong virtKeyValArg, jboolean inputGeneratedArg, jboolean numPadArg)
{
static DOM::DOMString* _domstring_typeArg = 0;
static DOM::DOMString* _domstring_outputStringArg = 0;
	((DOM::TextEvent*) QtSupport::getQt(env, obj))->initTextEvent((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, typeArg, &_domstring_typeArg), (bool) canBubbleArg, (bool) cancelableArg, (const DOM::AbstractView&)*(const DOM::AbstractView*) QtSupport::getQt(env, viewArg), (long) detailArg, (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, outputStringArg, &_domstring_outputStringArg), (unsigned long) keyValArg, (unsigned long) virtKeyValArg, (bool) inputGeneratedArg, (bool) numPadArg);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_TextEvent_inputGenerated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::TextEvent*) QtSupport::getQt(env, obj))->inputGenerated();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_kde_koala_TextEvent_keyVal(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::TextEvent*) QtSupport::getQt(env, obj))->keyVal();
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_TextEvent_numPad(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::TextEvent*) QtSupport::getQt(env, obj))->numPad();
	return xret;
}

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_TextEvent_virtKeyVal(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::TextEvent*) QtSupport::getQt(env, obj))->virtKeyVal();
	return xret;
}

