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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KSessionManaged_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSessionManaged_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSessionManaged_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSessionManaged_saveState(JNIEnv* env, jobject obj, jobject sm)
{
	jboolean xret = (jboolean) ((KSessionManaged*) QtSupport::getQt(env, obj))->saveState((QSessionManager&)*(QSessionManager*) QtSupport::getQt(env, sm));
	return xret;
}

