diff options
author | Saturneric <[email protected]> | 2021-06-02 19:13:57 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-02 19:13:57 +0000 |
commit | 2ce221a7f0a26c24b6cbe4c95703152288da906f (patch) | |
tree | 05ffe43c65bb0d33a6077287d3037857f311de6a /include/ui/keypair_details/KeySetExpireDateDialog.h | |
parent | Write a text logo for never expiring. (diff) | |
download | GpgFrontend-2ce221a7f0a26c24b6cbe4c95703152288da906f.tar.gz GpgFrontend-2ce221a7f0a26c24b6cbe4c95703152288da906f.zip |
Add and change the expiration date of the key pair.
Add a window to change the key expiration date.
Add a refresh mechanism for the key details tab.
Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | include/ui/keypair_details/KeySetExpireDateDialog.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/ui/keypair_details/KeySetExpireDateDialog.h b/include/ui/keypair_details/KeySetExpireDateDialog.h new file mode 100644 index 00000000..d0206402 --- /dev/null +++ b/include/ui/keypair_details/KeySetExpireDateDialog.h @@ -0,0 +1,33 @@ +// +// Created by eric on 2021/6/3. +// + +#ifndef GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H +#define GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H + +#include "GpgFrontend.h" +#include "gpg/GpgContext.h" +#include "gpg/GpgKey.h" +#include "gpg/GpgSubKey.h" + +class KeySetExpireDateDialog : public QDialog { +Q_OBJECT +public: + explicit KeySetExpireDateDialog(GpgME::GpgContext *ctx, const GpgKey &key, const GpgSubKey *subkey, QWidget *parent = nullptr); + +private: + GpgME::GpgContext *mCtx; + const GpgKey &mKey; + const GpgSubKey *mSubkey; + + QDateTimeEdit *dateTimeEdit{}; + QPushButton *confirmButton{}; + QCheckBox *nonExpiredCheck{}; + +private slots: + void slotConfirm(); + void slotNonExpiredChecked(int state); +}; + + +#endif //GPGFRONTEND_KEYSETEXPIREDATEDIALOG_H |