File indexing completed on 2024-04-14 05:43:28

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 KGPGCHANGEDISABLE_H
0007 #define KGPGCHANGEDISABLE_H
0008 
0009 #include <QObject>
0010 
0011 #include "kgpgeditkeytransaction.h"
0012 
0013 /**
0014  * @brief enable of disable a key
0015  */
0016 class KGpgChangeDisable: public KGpgEditKeyTransaction {
0017     Q_OBJECT
0018 
0019     Q_DISABLE_COPY(KGpgChangeDisable)
0020     KGpgChangeDisable() = delete;
0021 
0022 public:
0023     explicit KGpgChangeDisable(QObject *parent, const QString &keyid, const bool disable);
0024     ~KGpgChangeDisable() override = default;
0025 
0026     void setDisable(bool disable);
0027 
0028 protected:
0029     bool preStart() override;
0030 };
0031 
0032 #endif // KGPGCHANGEDISABLE_H