File indexing completed on 2024-06-23 05:14:07
0001 /* SPDX-FileCopyrightText: 2017 Intevation GmbH 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #pragma once 0007 0008 #include <QWidget> 0009 0010 #include <memory> 0011 0012 namespace GpgME 0013 { 0014 class Key; 0015 class KeyListResult; 0016 } 0017 0018 namespace Kleo 0019 { 0020 0021 class WebOfTrustWidget : public QWidget 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit WebOfTrustWidget(QWidget *parent = nullptr); 0027 ~WebOfTrustWidget() override; 0028 0029 QAction *detailsAction() const; 0030 QAction *certifyAction() const; 0031 QAction *revokeAction() const; 0032 0033 void setKey(const GpgME::Key &key); 0034 GpgME::Key key() const; 0035 0036 private Q_SLOTS: 0037 void signatureListingNextKey(const GpgME::Key &key); 0038 void signatureListingDone(const GpgME::KeyListResult &result); 0039 0040 private: 0041 class Private; 0042 const std::unique_ptr<Private> d; 0043 }; 0044 } // namespace Kleo