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

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

class KSSLSignersJBridge : public KSSLSigners
{
public:
	KSSLSignersJBridge() : KSSLSigners() {};
	~KSSLSignersJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_addCA__Ljava_lang_String_2ZZZ(JNIEnv* env, jobject obj, jstring cert, jboolean ssl, jboolean email, jboolean code)
{
static TQString* _qstring_cert = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->addCA((TQString)*(TQString*) QtSupport::toTQString(env, cert, &_qstring_cert), (bool) ssl, (bool) email, (bool) code);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_addCA__Lorg_trinitydesktop_koala_KSSLCertificate_2ZZZ(JNIEnv* env, jobject obj, jobject cert, jboolean ssl, jboolean email, jboolean code)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->addCA((KSSLCertificate&)*(KSSLCertificate*) QtSupport::getQt(env, cert), (bool) ssl, (bool) email, (bool) code);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSSLSigners_finalize(env, obj);
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_getCert(JNIEnv* env, jobject obj, jstring subject)
{
	TQString  _qstring;
static TQString* _qstring_subject = 0;
	_qstring = ((KSSLSigners*) QtSupport::getQt(env, obj))->getCert((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject));
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_list(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KSSLSigners*) QtSupport::getQt(env, obj))->list();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_regenerate(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->regenerate();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_remove__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static TQString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->remove((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_remove__Lorg_trinitydesktop_koala_KSSLCertificate_2(JNIEnv* env, jobject obj, jobject cert)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->remove((KSSLCertificate&)*(KSSLCertificate*) QtSupport::getQt(env, cert));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_setUse(JNIEnv* env, jobject obj, jstring subject, jboolean ssl, jboolean email, jboolean code)
{
static TQString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->setUse((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject), (bool) ssl, (bool) email, (bool) code);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForCode__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static TQString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForCode((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForCode__Lorg_trinitydesktop_koala_KSSLCertificate_2(JNIEnv* env, jobject obj, jobject cert)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForCode((KSSLCertificate&)*(KSSLCertificate*) QtSupport::getQt(env, cert));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForEmail__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static TQString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForEmail((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForEmail__Lorg_trinitydesktop_koala_KSSLCertificate_2(JNIEnv* env, jobject obj, jobject cert)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForEmail((KSSLCertificate&)*(KSSLCertificate*) QtSupport::getQt(env, cert));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForSSL__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static TQString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForSSL((TQString)*(TQString*) QtSupport::toTQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLSigners_useForSSL__Lorg_trinitydesktop_koala_KSSLCertificate_2(JNIEnv* env, jobject obj, jobject cert)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForSSL((KSSLCertificate&)*(KSSLCertificate*) QtSupport::getQt(env, cert));
	return xret;
}

