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

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

class KSSLPeerInfoJBridge : public KSSLPeerInfo
{
public:
	KSSLPeerInfoJBridge() : KSSLPeerInfo() {};
	~KSSLPeerInfoJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_certMatchesAddress(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSSLPeerInfo*) QtSupport::getQt(env, obj))->certMatchesAddress();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_cnMatchesAddress(JNIEnv* env, jobject obj, jstring cn)
{
static TQString* _qstring_cn = 0;
	jboolean xret = (jboolean) ((KSSLPeerInfo*) QtSupport::getQt(env, obj))->cnMatchesAddress((TQString)*(TQString*) QtSupport::toTQString(env, cn, &_qstring_cn));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSSLPeerInfo_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_getPeerCertificate(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KSSLCertificate *) &((KSSLPeerInfo*) QtSupport::getQt(env, obj))->getPeerCertificate(), "org.trinitydesktop.koala.KSSLCertificate");
	return xret;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_peerHost(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((KSSLPeerInfo*) QtSupport::getQt(env, obj))->peerHost();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_reset(JNIEnv* env, jobject obj)
{
	((KSSLPeerInfo*) QtSupport::getQt(env, obj))->reset();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_setPeerHost__(JNIEnv* env, jobject obj)
{
	((KSSLPeerInfo*) QtSupport::getQt(env, obj))->setPeerHost();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLPeerInfo_setPeerHost__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring host)
{
static TQString* _qstring_host = 0;
	((KSSLPeerInfo*) QtSupport::getQt(env, obj))->setPeerHost((TQString)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host));
	return;
}

