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

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

class EventListenerJBridge : public DOM::EventListener
{
public:
	EventListenerJBridge() : DOM::EventListener() {};
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_EventListener_handleEvent(JNIEnv* env, jobject obj, jobject evt)
{
	((DOM::EventListener*) QtSupport::getQt(env, obj))->handleEvent((DOM::Event&)*(DOM::Event*) QtSupport::getQt(env, evt));
	return;
}

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

