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

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

class KSessionManagedJBridge : public KSessionManaged
{
public:
	KSessionManagedJBridge() : KSessionManaged() {};
	~KSessionManagedJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSessionManaged_commitData(JNIEnv* env, jobject obj, jobject sm)
{
	jboolean xret = (jboolean) ((KSessionManaged*) QtSupport::getQt(env, obj))->commitData((TQSessionManager&)*(TQSessionManager*) QtSupport::getQt(env, sm));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSessionManaged_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSessionManaged_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSessionManaged_saveState(JNIEnv* env, jobject obj, jobject sm)
{
	jboolean xret = (jboolean) ((KSessionManaged*) QtSupport::getQt(env, obj))->saveState((TQSessionManager&)*(TQSessionManager*) QtSupport::getQt(env, sm));
	return xret;
}

