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

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

class KSSLCertificateHomeJBridge : public KSSLCertificateHome
{
public:
	KSSLCertificateHomeJBridge() : KSSLCertificateHome() {};
	~KSSLCertificateHomeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_addCertificate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filename, jstring password)
{
	(void) cls;
static QString* _qstring_filename = 0;
static QString* _qstring_password = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::addCertificate((QString)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_addCertificate__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring filename, jstring password, jboolean storePass)
{
	(void) cls;
static QString* _qstring_filename = 0;
static QString* _qstring_password = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::addCertificate((QString)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password), (bool) storePass);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_addCertificate__Lorg_kde_koala_KSSLPKCS12_2(JNIEnv* env, jclass cls, jobject cert)
{
	(void) cls;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::addCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_addCertificate__Lorg_kde_koala_KSSLPKCS12_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject cert, jstring passToStore)
{
	(void) cls;
static QString* _qstring_passToStore = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::addCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (QString)*(QString*) QtSupport::toQString(env, passToStore, &_qstring_passToStore));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_deleteCertificateByName(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::deleteCertificateByName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_deleteCertificate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring filename, jstring password)
{
	(void) cls;
static QString* _qstring_filename = 0;
static QString* _qstring_password = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::deleteCertificate((const QString&)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (const QString&)*(QString*) QtSupport::toQString(env, password, &_qstring_password));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_deleteCertificate__Lorg_kde_koala_KSSLPKCS12_2(JNIEnv* env, jclass cls, jobject cert)
{
	(void) cls;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::deleteCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSSLCertificateHome_finalize(env, obj);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getCertificateByHost(JNIEnv* env, jclass cls, jstring host, jstring password, jint aa)
{
	(void) cls;
static QString* _qstring_host = 0;
static QString* _qstring_password = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getCertificateByHost((QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password), (KSSLCertificateHome::KSSLAuthAction*) aa), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getCertificateByName__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getCertificateByName((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name)), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getCertificateByName__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring name, jstring password)
{
	(void) cls;
static QString* _qstring_name = 0;
static QString* _qstring_password = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getCertificateByName((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password)), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getCertificateList(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = KSSLCertificateHomeJBridge::getCertificateList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificateName__(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificateName__I(JNIEnv* env, jclass cls, jint aa)
{
	QString  _qstring;
	(void) cls;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName((KSSLCertificateHome::KSSLAuthAction*) aa);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificateName__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring host)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_host = 0;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName((QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificateName__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring host, jint aa)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_host = 0;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName((QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (KSSLCertificateHome::KSSLAuthAction*) aa);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificate__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getDefaultCertificate(), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificate__I(JNIEnv* env, jclass cls, jint aa)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getDefaultCertificate((KSSLCertificateHome::KSSLAuthAction*) aa), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificate__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring password)
{
	(void) cls;
static QString* _qstring_password = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password)), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KSSLCertificateHome_getDefaultCertificate__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring password, jint aa)
{
	(void) cls;
static QString* _qstring_password = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, password, &_qstring_password), (KSSLCertificateHome::KSSLAuthAction*) aa), "org.kde.koala.KSSLPKCS12");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KSSLCertificateHome_hasCertificateByName(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::hasCertificateByName((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static QString* _qstring_name = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring name, jstring host)
{
	(void) cls;
static QString* _qstring_name = 0;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring name, jstring host, jboolean send)
{
	(void) cls;
static QString* _qstring_name = 0;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (bool) send);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2Ljava_lang_String_2ZZ(JNIEnv* env, jclass cls, jstring name, jstring host, jboolean send, jboolean prompt)
{
	(void) cls;
static QString* _qstring_name = 0;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (bool) send, (bool) prompt);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring name, jboolean send)
{
	(void) cls;
static QString* _qstring_name = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (bool) send);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2ZZ(JNIEnv* env, jclass cls, jstring name, jboolean send, jboolean prompt)
{
	(void) cls;
static QString* _qstring_name = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((QString)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (bool) send, (bool) prompt);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2(JNIEnv* env, jclass cls, jobject cert)
{
	(void) cls;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject cert, jstring host)
{
	(void) cls;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jobject cert, jstring host, jboolean send)
{
	(void) cls;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (bool) send);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2Ljava_lang_String_2ZZ(JNIEnv* env, jclass cls, jobject cert, jstring host, jboolean send, jboolean prompt)
{
	(void) cls;
static QString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (QString)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (bool) send, (bool) prompt);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2Z(JNIEnv* env, jclass cls, jobject cert, jboolean send)
{
	(void) cls;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (bool) send);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_kde_koala_KSSLPKCS12_2ZZ(JNIEnv* env, jclass cls, jobject cert, jboolean send, jboolean prompt)
{
	(void) cls;
	KSSLCertificateHomeJBridge::setDefaultCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (bool) send, (bool) prompt);
	return;
}

