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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLPeerInfo_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSSLPeerInfo_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSSLPeerInfo_getPeerCertificate(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KSSLCertificate *) &((KSSLPeerInfo*) QtSupport::getQt(env, obj))->getPeerCertificate(), "org.kde.koala.KSSLCertificate");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSSLPeerInfo_peerHost(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KSSLPeerInfo*) QtSupport::getQt(env, obj))->peerHost();
	return QtSupport::fromQString(env, &_qstring);
}

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

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

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

