File indexing completed on 2025-01-05 04:55:47
0001 /* 0002 ui/directoryserviceswidget.h 0003 0004 This file is part of libkleopatra, the KDE keymanagement library 0005 SPDX-FileCopyrightText: 2001, 2002, 2004 Klarälvdalens Datakonsult AB 0006 SPDX-FileCopyrightText: 2021 g10 Code GmbH 0007 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 */ 0011 0012 #pragma once 0013 0014 #include "kleo_export.h" 0015 0016 #include <QWidget> 0017 0018 #include <memory> 0019 #include <vector> 0020 0021 namespace Kleo 0022 { 0023 class KeyserverConfig; 0024 0025 class KLEO_EXPORT DirectoryServicesWidget : public QWidget 0026 { 0027 Q_OBJECT 0028 public: 0029 explicit DirectoryServicesWidget(QWidget *parent = nullptr); 0030 ~DirectoryServicesWidget() override; 0031 0032 void setKeyservers(const std::vector<KeyserverConfig> &keyservers); 0033 std::vector<KeyserverConfig> keyservers() const; 0034 0035 void setReadOnly(bool readOnly); 0036 0037 public Q_SLOTS: 0038 void clear(); 0039 0040 Q_SIGNALS: 0041 void changed(); 0042 0043 private: 0044 class Private; 0045 const std::unique_ptr<Private> d; 0046 }; 0047 0048 }