23 #include "ui_certificateparty.h"
25 #include <QtNetwork/QSslCertificate>
27 class KSslCertificateBoxPrivate
30 Ui::CertificateParty ui;
36 d(new KSslCertificateBoxPrivate())
40 Q_FOREACH(
QLabel*
label, qFindChildren<QLabel *>(
this)) {
41 label->setTextFormat(Qt::PlainText);
55 d->ui.commonName->setText(cert.subjectInfo(QSslCertificate::CommonName));
56 d->ui.organization->setText(cert.subjectInfo(QSslCertificate::Organization));
57 d->ui.organizationalUnit
58 ->setText(cert.subjectInfo(QSslCertificate::OrganizationalUnitName));
59 d->ui.country->setText(cert.subjectInfo(QSslCertificate::CountryName));
60 d->ui.state->setText(cert.subjectInfo(QSslCertificate::StateOrProvinceName));
61 d->ui.city->setText(cert.subjectInfo(QSslCertificate::LocalityName));
62 }
else if (party ==
Issuer) {
63 d->ui.commonName->setText(cert.issuerInfo(QSslCertificate::CommonName));
64 d->ui.organization->setText(cert.issuerInfo(QSslCertificate::Organization));
65 d->ui.organizationalUnit
66 ->setText(cert.issuerInfo(QSslCertificate::OrganizationalUnitName));
67 d->ui.country->setText(cert.issuerInfo(QSslCertificate::CountryName));
68 d->ui.state->setText(cert.issuerInfo(QSslCertificate::StateOrProvinceName));
69 d->ui.city->setText(cert.issuerInfo(QSslCertificate::LocalityName));
76 d->ui.commonName->clear();
77 d->ui.organization->clear();
78 d->ui.organizationalUnit->clear();
79 d->ui.country->clear();
85 #include "ksslcertificatebox.moc"
QString label(StandardShortcut id)
void setCertificate(const QSslCertificate &cert, CertificateParty party)
KSslCertificateBox(QWidget *parent=0)
KSslCertificateBoxPrivate *const d