GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeySetExpireDateDialog.h
1 
29 #pragma once
30 
31 #include "core/function/gpg/GpgContext.h"
32 #include "core/model/GpgKey.h"
33 #include "core/typedef/GpgTypedef.h"
34 #include "ui/GpgFrontendUI.h"
35 #include "ui/dialog/GeneralDialog.h"
36 
37 class Ui_ModifiedExpirationDateTime;
38 
39 namespace GpgFrontend::UI {
40 
42  Q_OBJECT
43  public:
50  explicit KeySetExpireDateDialog(const KeyId& key_id,
51  QWidget* parent = nullptr);
52 
60  explicit KeySetExpireDateDialog(const KeyId& key_id, QString 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
Definition: GpgKey.h:40
Definition: GeneralDialog.h:35
Definition: KeySetExpireDateDialog.h:41
KeySetExpireDateDialog(const KeyId &key_id, QWidget *parent=nullptr)
Construct a new Key Set Expire Date Dialog object.
Definition: KeySetExpireDateDialog.cpp:40
void slot_non_expired_checked(int state)
Definition: KeySetExpireDateDialog.cpp:147
Definition: FileReadTask.cpp:31