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
21namespace Kleo
22{
23class KeyserverConfig;
24
25class KLEO_EXPORT DirectoryServicesWidget : public QWidget
26{
27 Q_OBJECT
28public:
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
37public Q_SLOTS:
38 void clear();
39
40Q_SIGNALS:
41 void changed();
42
43private:
44 class Private;
45 const std::unique_ptr<Private> d;
46};
47
48}
KGuiItem clear()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.