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

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

class KSSLSessionJBridge : public KSSLSession
{
public:
	KSSLSessionJBridge() : KSSLSession() {};
	~KSSLSessionJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLSession_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSSLSession_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLSession_fromString(JNIEnv* env, jclass cls, jstring s)
{
	(void) cls;
static QString* _qstring_s = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLSessionJBridge::fromString((const QString&)*(QString*) QtSupport::toQString(env, s, &_qstring_s)), "org.kde.koala.KSSLSession");
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSSLSession_toString(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KSSLSession*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromQString(env, &_qstring);
}

