File indexing completed on 2024-06-23 05:14:01
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 dialogs/adduseriddialog.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 SPDX-FileCopyrightText: 2022 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 <QDialog> 0015 0016 #include <memory> 0017 0018 namespace Kleo 0019 { 0020 0021 class AddUserIDDialog : public QDialog 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit AddUserIDDialog(QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0026 ~AddUserIDDialog() override; 0027 0028 void setName(const QString &name); 0029 QString name() const; 0030 0031 void setEmail(const QString &email); 0032 QString email() const; 0033 0034 /** 0035 * Returns the user ID built from the entered name and/or email address. 0036 */ 0037 QString userID() const; 0038 0039 private: 0040 class Private; 0041 const std::unique_ptr<Private> d; 0042 }; 0043 0044 } // namespace Kleo