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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_addCertificate__Lorg_trinitydesktop_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_trinitydesktop_koala_KSSLCertificateHome_addCertificate__Lorg_trinitydesktop_koala_KSSLPKCS12_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject cert, jstring passToStore)
{
	(void) cls;
static TQString* _qstring_passToStore = 0;
	jboolean xret = (jboolean) KSSLCertificateHomeJBridge::addCertificate((KSSLPKCS12*) QtSupport::getQt(env, cert), (TQString)*(TQString*) QtSupport::toTQString(env, passToStore, &_qstring_passToStore));
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_deleteCertificate__Lorg_trinitydesktop_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_trinitydesktop_koala_KSSLCertificateHome_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSSLCertificateHome_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLCertificateHome_getCertificateByHost(JNIEnv* env, jclass cls, jstring host, jstring password, jint aa)
{
	(void) cls;
static TQString* _qstring_host = 0;
static TQString* _qstring_password = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateHomeJBridge::getCertificateByHost((TQString)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (TQString)*(TQString*) QtSupport::toTQString(env, password, &_qstring_password), (KSSLCertificateHome::KSSLAuthAction*) aa), "org.trinitydesktop.koala.KSSLPKCS12");
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_getCertificateList(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = KSSLCertificateHomeJBridge::getCertificateList();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_getDefaultCertificateName__(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_getDefaultCertificateName__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring host)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_host = 0;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName((TQString)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_getDefaultCertificateName__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring host, jint aa)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_host = 0;
	_qstring = KSSLCertificateHomeJBridge::getDefaultCertificateName((TQString)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (KSSLCertificateHome::KSSLAuthAction*) aa);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_koala_KSSLCertificateHome_setDefaultCertificate__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static TQString* _qstring_name = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((TQString)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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 TQString* _qstring_name = 0;
static TQString* _qstring_host = 0;
	KSSLCertificateHomeJBridge::setDefaultCertificate((TQString)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (TQString)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host), (bool) send, (bool) prompt);
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_trinitydesktop_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_trinitydesktop_koala_KSSLCertificateHome_setDefaultCertificate__Lorg_trinitydesktop_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;
}

