Libkleo

directoryserviceswidget.h
1 /*
2  ui/directoryserviceswidget.h
3 
4  This file is part of libkleopatra, the KDE keymanagement library
5  SPDX-FileCopyrightText: 2001, 2002, 2004 Klarälvdalens Datakonsult AB
6  SPDX-FileCopyrightText: 2021 g10 Code GmbH
7  SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
8 
9  SPDX-License-Identifier: GPL-2.0-or-later
10 */
11 
12 #pragma once
13 
14 #include "kleo_export.h"
15 
16 #include <QWidget>
17 
18 #include <memory>
19 #include <vector>
20 
21 namespace Kleo
22 {
23 class KeyserverConfig;
24 
25 class KLEO_EXPORT DirectoryServicesWidget : public QWidget
26 {
27  Q_OBJECT
28 public:
29  explicit DirectoryServicesWidget(QWidget *parent = nullptr);
30  ~DirectoryServicesWidget() override;
31 
32  void setKeyservers(const std::vector<KeyserverConfig> &keyservers);
33  std::vector<KeyserverConfig> keyservers() const;
34 
35  void setReadOnly(bool readOnly);
36 
37 public Q_SLOTS:
38  void clear();
39 
40 Q_SIGNALS:
41  void changed();
42 
43 private:
44  class Private;
45  const std::unique_ptr<Private> d;
46 };
47 
48 }
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:56:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.