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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_PartBase_partObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::PartBase*) QtSupport::getQt(env, obj))->partObject(), "org.trinitydesktop.qt.TQObject");
	return xret;
}

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

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

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

