aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keypair_details/KeySignDialog.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-24 18:34:02 +0000
committerSaturneric <[email protected]>2021-05-24 18:34:02 +0000
commitd989b48429ff9e37316d3c5c523e3cf53bbf5907 (patch)
tree892f187bdc8e493a7278892757da778d81c2432c /include/ui/keypair_details/KeySignDialog.h
parentDeclare and Define getSigners; (diff)
downloadGpgFrontend-d989b48429ff9e37316d3c5c523e3cf53bbf5907.tar.gz
GpgFrontend-d989b48429ff9e37316d3c5c523e3cf53bbf5907.zip
Streamline, expand and improve the interface of GpgContext.
Fix the wrong use of the query interface for fingerprints or identifiers at VerifyKeyDetailBox.cpp and VerifyNotification.cpp. Write the processing logic and page logic for adding a signature to the key. Signed-off-by: Saturneric <[email protected]>
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