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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLCertChain_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSSLCertChain_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLCertChain_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLCertChain_replicate(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KSSLCertChain*) QtSupport::getQt(env, obj))->replicate(), "org.trinitydesktop.koala.KSSLCertChain");
	return xret;
}

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

