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

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

class DomSharedJBridge : public DOM::DomShared
{
public:
	DomSharedJBridge() : DOM::DomShared() {};
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_DomShared_deleteMe(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::DomShared*) QtSupport::getQt(env, obj))->deleteMe();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_DomShared_deref(JNIEnv* env, jobject obj)
{
	((DOM::DomShared*) QtSupport::getQt(env, obj))->deref();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_DomShared_hasOneRef(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::DomShared*) QtSupport::getQt(env, obj))->hasOneRef();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_DomShared_refCount(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::DomShared*) QtSupport::getQt(env, obj))->refCount();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_DomShared_ref(JNIEnv* env, jobject obj)
{
	((DOM::DomShared*) QtSupport::getQt(env, obj))->ref();
	return;
}

