You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.6 KiB
56 lines
1.6 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
#include <ksslcertificatefactory.h>
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
#include <kdejava/KDESupport.h>
|
|
#include <kdejava/KSSLCertificateFactory.h>
|
|
|
|
class KSSLCertificateFactoryJBridge : public KSSLCertificateFactory
|
|
{
|
|
public:
|
|
KSSLCertificateFactoryJBridge() : KSSLCertificateFactory() {};
|
|
~KSSLCertificateFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
};
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KSSLCertificateFactory_dispose(JNIEnv* env, jobject obj)
|
|
{
|
|
Java_org_kde_koala_KSSLCertificateFactory_finalize(env, obj);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KSSLCertificateFactory_finalize(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::allocatedInJavaWorld(env, obj)) {
|
|
delete (KSSLCertificateFactory*)QtSupport::getQt(env, obj);
|
|
QtSupport::setQt(env, obj, 0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KSSLCertificateFactory_generateSelfSigned(JNIEnv* env, jclass cls, jint keytype)
|
|
{
|
|
(void) cls;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)KSSLCertificateFactoryJBridge::generateSelfSigned((KSSLKeyType) keytype), "org.kde.koala.KSSLCertificate");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_koala_KSSLCertificateFactory_isDisposed(JNIEnv* env, jobject obj)
|
|
{
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KSSLCertificateFactory_newKSSLCertificateFactory(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new KSSLCertificateFactoryJBridge());
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|