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 #include "ui/dialog/GeneralDialog.h"
37
38 class Ui_ModifiedExpirationDateTime;
39
40 namespace GpgFrontend::UI {
41
42 class KeySetExpireDateDialog : public GeneralDialog {
43 Q_OBJECT
44 public:
51 explicit KeySetExpireDateDialog(const KeyId& key_id,
52 QWidget* parent = nullptr);
53
61 explicit KeySetExpireDateDialog(const KeyId& key_id, std::string subkey_fpr,
62 QWidget* parent = nullptr);
63
64 signals:
69 void SignalKeyExpireDateUpdated();
70
71 private:
76 void init();
77
78 std::shared_ptr<Ui_ModifiedExpirationDateTime> ui_;
79 const GpgKey m_key_;
80 const SubkeyId m_subkey_;
81
82 private slots:
87 void slot_confirm();
88
94 void slot_non_expired_checked(int state);
95 };
96
97 } // namespace GpgFrontend::UI
98
99 #endif // GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H
GpgFrontend::GpgKey
Definition: GpgKey.h:43
GpgFrontend::UI::GeneralDialog
Definition: GeneralDialog.h:35
GpgFrontend::UI::KeySetExpireDateDialog
Definition: KeySetExpireDateDialog.h:42
GpgFrontend::UI::KeySetExpireDateDialog::KeySetExpireDateDialog
KeySetExpireDateDialog(const KeyId &key_id, QWidget *parent=nullptr)
Construct a new Key Set Expire Date Dialog object.
Definition: KeySetExpireDateDialog.cpp:41
GpgFrontend::UI::KeySetExpireDateDialog::slot_non_expired_checked
void slot_non_expired_checked(int state)
Definition: KeySetExpireDateDialog.cpp:152
GpgFrontend::UI
Definition: FileReadTask.cpp:29