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

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

class PartActivateEventJBridge : public KParts::PartActivateEvent
{
public:
	PartActivateEventJBridge(bool arg1,KParts::Part* arg2,QWidget* arg3) : KParts::PartActivateEvent(arg1,arg2,arg3) {};
};

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

JNIEXPORT void JNICALL
Java_org_kde_koala_PartActivateEvent_newPartActivateEvent(JNIEnv* env, jobject obj, jboolean activated, jobject part, jobject widget)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartActivateEventJBridge((bool) activated, (KParts::Part*) QtSupport::getQt(env, part), (QWidget*) QtSupport::getQt(env, widget)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_PartActivateEvent_part(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartActivateEvent*) QtSupport::getQt(env, obj))->part(), "org.kde.koala.Part");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_PartActivateEvent_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartActivateEvent*) QtSupport::getQt(env, obj))->widget(), "org.kde.qt.QWidget");
	return xret;
}

