File indexing completed on 2024-04-21 05:50:41

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 KGPGCHANGEEXPIRE_H
0007 #define KGPGCHANGEEXPIRE_H
0008 
0009 #include <QObject>
0010 #include <QDateTime>
0011 
0012 #include "kgpgeditkeytransaction.h"
0013 
0014 /**
0015  * @brief change the key lifetime
0016  */
0017 class KGpgChangeExpire: public KGpgEditKeyTransaction {
0018     Q_OBJECT
0019 
0020     Q_DISABLE_COPY(KGpgChangeExpire)
0021 public:
0022     explicit KGpgChangeExpire(QObject *parent, const QString &keyid, const QDateTime &date);
0023     ~KGpgChangeExpire() override = default;
0024 
0025     void setDate(const QDateTime &date);
0026 
0027 protected:
0028     bool nextLine(const QString &line) override;
0029 
0030 private:
0031     QDateTime m_date;
0032 };
0033 
0034 #endif // KGPGCHANGEEXPIRE_H