//Auto-generated by kalyptus. DO NOT EDIT.
#include <ksslcertchain.h>
#include <qstringlist.h>

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

class KSSLCertChainJBridge : public KSSLCertChain
{
public:
	KSSLCertChainJBridge() : KSSLCertChain() {};
	~KSSLCertChainJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_koala_KSSLCertChain_depth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KSSLCertChain*) QtSupport::getQt(env, obj))->depth();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertChain_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSSLCertChain_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertChain_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSSLCertChain*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertChain_replicate(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KSSLCertChain*) QtSupport::getQt(env, obj))->replicate(), "org.kde.koala.KSSLCertChain");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertChain_setCertChain(JNIEnv* env, jobject obj, jobjectArray chain)
{
static QStringList* _qlist_chain = 0;
	((KSSLCertChain*) QtSupport::getQt(env, obj))->setCertChain((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, chain, &_qlist_chain));
	return;
}

