File indexing completed on 2024-06-16 10:06:19

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 2007 Andreas Hartmetz <ahartmetz@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KSSLCERTIFICATEBOX_H
0009 #define KSSLCERTIFICATEBOX_H
0010 
0011 #include "kiowidgets_export.h"
0012 
0013 #include <QWidget>
0014 
0015 #include <memory>
0016 
0017 class QSslCertificate;
0018 
0019 class KSslCertificateBoxPrivate;
0020 
0021 class KIOWIDGETS_EXPORT KSslCertificateBox : public QWidget
0022 {
0023     Q_OBJECT
0024 public:
0025     enum CertificateParty {
0026         Subject = 0,
0027         Issuer,
0028     };
0029 
0030     explicit KSslCertificateBox(QWidget *parent = nullptr);
0031     ~KSslCertificateBox() override;
0032 
0033     void setCertificate(const QSslCertificate &cert, CertificateParty party);
0034     void clear();
0035 
0036     std::unique_ptr<KSslCertificateBoxPrivate> const d;
0037 };
0038 
0039 #endif // KSSLCERTIFICATEBOX_H