File indexing completed on 2022-10-04 17:28:17

0001 /*
0002     SPDX-FileCopyrightText: 2008, 2009 Rolf Eike Beer <kde@opensource.sf-tec.de>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef KGPGADDUID_H
0007 #define KGPGADDUID_H
0008 
0009 #include <QObject>
0010 
0011 #include "kgpgeditkeytransaction.h"
0012 
0013 class QString;
0014 
0015 /**
0016  * @brief add a new user id to a key pair
0017  */
0018 class KGpgAddUid: public KGpgEditKeyTransaction {
0019     Q_OBJECT
0020 
0021     Q_DISABLE_COPY(KGpgAddUid)
0022 public:
0023     KGpgAddUid(QObject *parent, const QString &keyid, const QString &name, const QString &email = QString(), const QString &comment = QString());
0024     ~KGpgAddUid() override;
0025 
0026     void setName(const QString &name);
0027     void setEmail(const QString &email);
0028     void setComment(const QString &comment);
0029 
0030 protected:
0031     bool preStart() override;
0032     bool nextLine(const QString &line) override;
0033 
0034 private:
0035     QString m_name;
0036     QString m_email;
0037     QString m_comment;
0038 };
0039 
0040 #endif // KGPGADDUID_H