aboutsummaryrefslogtreecommitdiffstats
path: root/include/gpg/GpgInfo.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/gpg/GpgInfo.h (renamed from src/ui/keygen/KeygenThread.cpp)27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/ui/keygen/KeygenThread.cpp b/include/gpg/GpgInfo.h
index d7b9d840..914491dd 100644
--- a/src/ui/keygen/KeygenThread.cpp
+++ b/include/gpg/GpgInfo.h
@@ -20,17 +20,24 @@
* The source code version of this software was modified and released
* by Saturneric<[email protected]> starting on May 12, 2021.
*
+*/
+
+#ifndef GPGFRONTEND_ZH_CN_TS_GPGINFO_H
+#define GPGFRONTEND_ZH_CN_TS_GPGINFO_H
+
+#include "GpgFrontend.h"
+
+/**
+ * Use to record some info about gnupg
*/
+class GpgInfo {
+public:
-#include "ui/keygen/KeygenThread.h"
+ /**
+ * executable binary path of gnupg
+ */
+ QString appPath;
+};
-KeyGenThread::KeyGenThread(GenKeyInfo* keyGenParams, GpgME::GpgContext *ctx)
-: mCtx(ctx), keyGenParams(keyGenParams), QThread(nullptr) {
- connect(this, &KeyGenThread::finished, this, &KeyGenThread::deleteLater);
-}
-void KeyGenThread::run() {
- bool success = mCtx->generateKey(keyGenParams);
- emit signalKeyGenerated(success);
- emit finished({});
-}
+#endif //GPGFRONTEND_ZH_CN_TS_GPGINFO_H