aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keypair_details/KeySignDialog.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ui/keypair_details/KeySignDialog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/ui/keypair_details/KeySignDialog.h b/include/ui/keypair_details/KeySignDialog.h
new file mode 100644
index 00000000..075459de
--- /dev/null
+++ b/include/ui/keypair_details/KeySignDialog.h
@@ -0,0 +1,44 @@
+//
+// Created by eric on 2021/5/24.
+//
+
+#ifndef GPGFRONTEND_KEYSIGNDIALOG_H
+#define GPGFRONTEND_KEYSIGNDIALOG_H
+
+#include "GpgFrontend.h"
+
+#include "gpg/GpgContext.h"
+#include "ui/widgets/KeyList.h"
+
+class KeySignDialog : public QDialog {
+ Q_OBJECT
+
+public:
+
+ explicit KeySignDialog(GpgME::GpgContext *ctx, const GpgKey &key, const QVector<UID> &uid, QWidget *parent = nullptr);
+
+private:
+
+ GpgME::GpgContext *mCtx;
+
+ KeyList *mKeyList;
+
+ QPushButton *signKeyButton;
+
+ QDateTimeEdit *expiresEdit;
+
+ QCheckBox *nonExpireCheck;
+
+ const QVector<UID> &mUids;
+
+ const GpgKey &mKey;
+
+
+private slots:
+
+ void slotSignKey();
+
+};
+
+
+#endif //GPGFRONTEND_KEYSIGNDIALOG_H