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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLSigners_addCA__Lorg_kde_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_kde_koala_KSSLSigners_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSSLSigners_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSSLSigners_getCert(JNIEnv* env, jobject obj, jstring subject)
{
	QString  _qstring;
static QString* _qstring_subject = 0;
	_qstring = ((KSSLSigners*) QtSupport::getQt(env, obj))->getCert((QString)*(QString*) QtSupport::toQString(env, subject, &_qstring_subject));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSSLSigners_regenerate(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->regenerate();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLSigners_remove__Lorg_kde_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_kde_koala_KSSLSigners_setUse(JNIEnv* env, jobject obj, jstring subject, jboolean ssl, jboolean email, jboolean code)
{
static QString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->setUse((QString)*(QString*) QtSupport::toQString(env, subject, &_qstring_subject), (bool) ssl, (bool) email, (bool) code);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLSigners_useForCode__Lorg_kde_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_kde_koala_KSSLSigners_useForEmail__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static QString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForEmail((QString)*(QString*) QtSupport::toQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLSigners_useForEmail__Lorg_kde_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_kde_koala_KSSLSigners_useForSSL__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring subject)
{
static QString* _qstring_subject = 0;
	jboolean xret = (jboolean) ((KSSLSigners*) QtSupport::getQt(env, obj))->useForSSL((QString)*(QString*) QtSupport::toQString(env, subject, &_qstring_subject));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLSigners_useForSSL__Lorg_kde_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;
}

