GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeySetExpireDateDialog.h
1
29#ifndef GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
30#define GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
31
32#include "core/GpgContext.h"
33#include "core/model/GpgKey.h"
34#include "core/model/GpgSubKey.h"
35#include "ui/GpgFrontendUI.h"
36
37class Ui_ModifiedExpirationDateTime;
38
39namespace GpgFrontend::UI {
40
41class KeySetExpireDateDialog : public QDialog {
42 Q_OBJECT
43 public:
50 explicit KeySetExpireDateDialog(const KeyId& key_id,
51 QWidget* parent = nullptr);
52
60 explicit KeySetExpireDateDialog(const KeyId& key_id, std::string subkey_fpr,
61 QWidget* parent = nullptr);
62
63 signals:
68 void SignalKeyExpireDateUpdated();
69
70 private:
75 void init();
76
77 std::shared_ptr<Ui_ModifiedExpirationDateTime> ui_;
78 const GpgKey m_key_;
79 const SubkeyId m_subkey_;
80
81 private slots:
86 void slot_confirm();
87
93 void slot_non_expired_checked(int state);
94};
95
96} // namespace GpgFrontend::UI
97
98#endif // GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
Definition: GpgKey.h:44
Definition: KeySetExpireDateDialog.h:41
KeySetExpireDateDialog(const KeyId &key_id, QWidget *parent=nullptr)
Construct a new Key Set Expire Date Dialog object.
Definition: KeySetExpireDateDialog.cpp:41
void slot_non_expired_checked(int state)
Definition: KeySetExpireDateDialog.cpp:136
Definition: VerifyDetailsDialog.cpp:33