File indexing completed on 2025-02-16 08:33:14
0001 /* 0002 SPDX-FileCopyrightText: 2008-2022 Rolf Eike Beer <kde@opensource.sf-tec.de> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KGPGCHANGEPASS_H 0007 #define KGPGCHANGEPASS_H 0008 0009 #include <QObject> 0010 0011 #include "kgpgtransaction.h" 0012 0013 /** 0014 * @brief set a new passphrase for a key pair 0015 */ 0016 class KGpgChangePass: public KGpgTransaction { 0017 Q_OBJECT 0018 0019 Q_DISABLE_COPY(KGpgChangePass) 0020 public: 0021 explicit KGpgChangePass(QObject *parent, const QString &keyid); 0022 ~KGpgChangePass() override = default; 0023 0024 protected: 0025 bool nextLine(const QString &line) override; 0026 bool preStart() override; 0027 bool passphraseRequested() override; 0028 bool passphraseReceived() override; 0029 bool hintLine(const KGpgTransaction::ts_hintType hint, const QString & args) override; 0030 0031 private: 0032 bool m_seenold; ///< old password correctly entered 0033 }; 0034 0035 #endif // KGPGCHANGEPASS_H