1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2007 Andreas Hartmetz <ahartmetz@gmail.com>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KSSLCERTIFICATEBOX_H
9#define KSSLCERTIFICATEBOX_H
10
11#include "kiowidgets_export.h"
12
13#include <QWidget>
14
15#include <memory>
16
17class QSslCertificate;
18
19class KSslCertificateBoxPrivate;
20
21class KIOWIDGETS_EXPORT KSslCertificateBox : public QWidget
22{
23 Q_OBJECT
24public:
25 enum CertificateParty {
26 Subject = 0,
27 Issuer,
28 };
29
30 explicit KSslCertificateBox(QWidget *parent = nullptr);
31 ~KSslCertificateBox() override;
32
33 void setCertificate(const QSslCertificate &cert, CertificateParty party);
34 void clear();
35
36 std::unique_ptr<KSslCertificateBoxPrivate> const d;
37};
38
39#endif // KSSLCERTIFICATEBOX_H
40

source code of kio/src/widgets/ksslcertificatebox.h