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

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

class PartBaseJBridge : public KParts::PartBase
{
public:
	PartBaseJBridge() : KParts::PartBase() {};
	void protected_setInstance(KInstance* arg1) {
		KParts::PartBase::setInstance(arg1);
		return;
	}
	void protected_setInstance(KInstance* arg1,bool arg2) {
		KParts::PartBase::setInstance(arg1,arg2);
		return;
	}
	void protected_loadPlugins(QObject* arg1,KXMLGUIClient* arg2,KInstance* arg3) {
		KParts::PartBase::loadPlugins(arg1,arg2,arg3);
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_PartBase_loadPlugins(JNIEnv* env, jobject obj, jobject parent, jobject parentGUIClient, jobject instance)
{
	((PartBaseJBridge*) QtSupport::getQt(env, obj))->protected_loadPlugins((QObject*) QtSupport::getQt(env, parent), (KXMLGUIClient*) QtSupport::getQt(env, parentGUIClient), (KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartBase_newPartBase(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new PartBaseJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_PartBase_partObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartBase*) QtSupport::getQt(env, obj))->partObject(), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartBase_setInstance__Lorg_kde_koala_KInstanceInterface_2(JNIEnv* env, jobject obj, jobject instance)
{
	((PartBaseJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((KInstance*) QtSupport::getQt(env, instance));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartBase_setInstance__Lorg_kde_koala_KInstanceInterface_2Z(JNIEnv* env, jobject obj, jobject instance, jboolean loadPlugins)
{
	((PartBaseJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((KInstance*) QtSupport::getQt(env, instance), (bool) loadPlugins);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_PartBase_setPartObject(JNIEnv* env, jobject obj, jobject object)
{
	((KParts::PartBase*) QtSupport::getQt(env, obj))->setPartObject((QObject*) QtSupport::getQt(env, object));
	return;
}

