Libkleo

openpgpcertificatecreationdialog.h
1/* -*- mode: c++; c-basic-offset:4 -*-
2 ui/newopenpgpcertificatedialog.h
3
4 This file is part of Kleopatra, the KDE keymanager
5 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
6 SPDX-FileCopyrightText: 2022 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 <QDialog>
17
18#include <memory>
19
20namespace Kleo
21{
22class KeyParameters;
23
24/**
25 * Dialog to create a new OpenPGP key
26 */
27class KLEO_EXPORT OpenPGPCertificateCreationDialog : public QDialog
28{
29 Q_OBJECT
30
31public:
32 explicit OpenPGPCertificateCreationDialog(QWidget *parent = nullptr, Qt::WindowFlags f = {});
34
35 void setName(const QString &name);
36 QString name() const;
37
38 void setEmail(const QString &email);
39 QString email() const;
40
41 void setKeyParameters(const KeyParameters &parameters);
42 KeyParameters keyParameters() const;
43
44 void setProtectKeyWithPassword(bool protectKey);
45 bool protectKeyWithPassword() const;
46
47private:
48 class Private;
49 const std::unique_ptr<Private> d;
50};
51
52} // namespace Kleo
typedef WindowFlags
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.