aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keypair_details/KeyUIDSignDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-26 18:56:05 +0000
committerSaturneric <[email protected]>2021-05-26 18:56:05 +0000
commit2f1b0b6af6c7c21134030d990a36f458d8a9600e (patch)
treee1ee1f16a0a03fe341156d2e1db3e42015fffce6 /include/ui/keypair_details/KeyUIDSignDialog.h
parentImprove the key information update mechanism (diff)
downloadGpgFrontend-2f1b0b6af6c7c21134030d990a36f458d8a9600e.tar.gz
GpgFrontend-2f1b0b6af6c7c21134030d990a36f458d8a9600e.zip
Fix the wrong use of the signing key interface.
Fix the problem that the window or control is not deleted after it is closed. Modify the names of some classes. Extend the function of KeyList, add exclusion list. Improve the message mechanism of GpgContext. Fix the problem caused by incorrect API calls caused by incorrect understanding of the gpgme document. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'include/ui/keypair_details/KeyUIDSignDialog.h')
-rw-r--r--include/ui/keypair_details/KeyUIDSignDialog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/ui/keypair_details/KeyUIDSignDialog.h b/include/ui/keypair_details/KeyUIDSignDialog.h
new file mode 100644
index 00000000..56ec8541
--- /dev/null
+++ b/include/ui/keypair_details/KeyUIDSignDialog.h
@@ -0,0 +1,44 @@
+//
+// Created by eric on 2021/5/24.
+//
+
+#ifndef GPGFRONTEND_KEYUIDSIGNDIALOG_H
+#define GPGFRONTEND_KEYUIDSIGNDIALOG_H
+
+#include "GpgFrontend.h"
+
+#include "gpg/GpgContext.h"
+#include "ui/widgets/KeyList.h"
+
+class KeyUIDSignDialog : public QDialog {
+ Q_OBJECT
+
+public:
+
+ explicit KeyUIDSignDialog(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(bool clicked);
+
+};
+
+
+#endif //GPGFRONTEND_KEYUIDSIGNDIALOG_H