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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_PartSelectEvent_newPartSelectEvent(JNIEnv* env, jobject obj, jboolean selected, jobject part, jobject widget)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartSelectEventJBridge((bool) selected, (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_PartSelectEvent_part(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartSelectEvent*) QtSupport::getQt(env, obj))->part(), "org.kde.koala.Part");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_PartSelectEvent_selected(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KParts::PartSelectEvent*) QtSupport::getQt(env, obj))->selected();
	return xret;
}

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

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

