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

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

class KStaticDeleterBaseJBridge : public KStaticDeleterBase
{
public:
	void public_destructObject() {
		KStaticDeleterBase::destructObject();
		return;
	}
	KStaticDeleterBaseJBridge() : KStaticDeleterBase() {};
	~KStaticDeleterBaseJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KStaticDeleterBase_destructObject(JNIEnv* env, jobject obj)
{
	((KStaticDeleterBaseJBridge*) QtSupport::getQt(env, obj))->public_destructObject();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KStaticDeleterBase_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KStaticDeleterBase_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KStaticDeleterBase_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KStaticDeleterBase*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KStaticDeleterBase_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

