//Auto-generated by kalyptus. DO NOT EDIT.
#include <tdeparts/event.h>

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

class EventJBridge : public KParts::Event
{
public:
	EventJBridge(const char* arg1) : KParts::Event(arg1) {};
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Event_eventName(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::Event*) QtSupport::getQt(env, obj))->eventName();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Event_newEvent(JNIEnv* env, jobject obj, jstring eventName)
{
static TQCString* _qstring_eventName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new EventJBridge((const char*) QtSupport::toCharString(env, eventName, &_qstring_eventName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Event_test__Lorg_trinitydesktop_qt_QEvent_2(JNIEnv* env, jclass cls, jobject event)
{
	(void) cls;
	jboolean xret = (jboolean) EventJBridge::test((const TQEvent*) QtSupport::getQt(env, event));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Event_test__Lorg_trinitydesktop_qt_QEvent_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject event, jstring name)
{
	(void) cls;
static TQCString* _qstring_name = 0;
	jboolean xret = (jboolean) EventJBridge::test((const TQEvent*) QtSupport::getQt(env, event), (const char*) QtSupport::toCharString(env, name, &_qstring_name));
	return xret;
}

