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

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

class GUIActivateEventJBridge : public KParts::GUIActivateEvent
{
public:
	GUIActivateEventJBridge(bool arg1) : KParts::GUIActivateEvent(arg1) {};
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_GUIActivateEvent_activated(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::GUIActivateEvent*) QtSupport::getQt(env, obj))->activated();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_GUIActivateEvent_newGUIActivateEvent(JNIEnv* env, jobject obj, jboolean activated)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new GUIActivateEventJBridge((bool) activated));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

