aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keygen/KeygenThread.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-29 19:28:40 +0000
committerSaturneric <[email protected]>2021-05-29 19:28:40 +0000
commitfe67bfb777a79b25149efa3e045dc043dc144ad0 (patch)
tree4d75a10f210b86d7e116d188569bc08e4e72adb7 /include/ui/keygen/KeygenThread.h
parentMake eligible keys enter the signature candidate list. (diff)
downloadGpgFrontend-fe67bfb777a79b25149efa3e045dc043dc144ad0.tar.gz
GpgFrontend-fe67bfb777a79b25149efa3e045dc043dc144ad0.zip
New page and function for generating subkeys.
Define the interface and functions of the subkey management tab. When there is an item in the UID list, the first item is selected by default. Compile the API for generating sub-keys and the corresponding calling thread. Set GpgGenKeyInfo to apply to the subkey Generate a subkey for the selected key pair of the management key pair interface. Adjust the project structure and add a new classification key generation category. Double-click the item in KeyList in the key pair management interface to enter the key details page. Adjust the title of the key pair management interface. Optimize part of the code of KeyGenThread. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to 'include/ui/keygen/KeygenThread.h')
-rw-r--r--include/ui/keygen/KeygenThread.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/ui/keygen/KeygenThread.h b/include/ui/keygen/KeygenThread.h
new file mode 100644
index 00000000..e04e00d2
--- /dev/null
+++ b/include/ui/keygen/KeygenThread.h
@@ -0,0 +1,50 @@
+/**
+ * This file is part of GPGFrontend.
+ *
+ * GPGFrontend is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Foobar is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Foobar. If not, see <https://www.gnu.org/licenses/>.
+ *
+ * The initial version of the source code is inherited from gpg4usb-team.
+ * Their source code version also complies with GNU General Public License.
+ *
+ * The source code version of this software was modified and released
+ * by Saturneric<[email protected]> starting on May 12, 2021.
+ *
+ */
+#ifndef __KEYGENTHREAD_H__
+#define __KEYGENTHREAD_H__
+
+#include "gpg/GpgContext.h"
+
+class KeyGenThread : public QThread {
+Q_OBJECT
+
+public:
+ KeyGenThread(GenKeyInfo *keyGenParams, GpgME::GpgContext *ctx);
+
+signals:
+ void signalKeyGenerated(bool success);
+
+private:
+ GenKeyInfo *keyGenParams;
+ GpgME::GpgContext *mCtx;
+ [[maybe_unused]] bool abort;
+ QMutex mutex;
+
+protected:
+
+ void run() override;
+
+};
+
+#endif // __KEYGENTHREAD_H__