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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLSession_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSSLSession_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLSession_fromString(JNIEnv* env, jclass cls, jstring s)
{
	(void) cls;
static TQString* _qstring_s = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLSessionJBridge::fromString((const TQString&)*(TQString*) QtSupport::toTQString(env, s, &_qstring_s)), "org.trinitydesktop.koala.KSSLSession");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLSession_toString(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KSSLSession*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromTQString(env, &_qstring);
}

