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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_GUIActivateEvent_test(JNIEnv* env, jclass cls, jobject event)
{
	(void) cls;
	jboolean xret = (jboolean) GUIActivateEventJBridge::test((const QEvent*) QtSupport::getQt(env, event));
	return xret;
}

