aboutsummaryrefslogtreecommitdiffstats
path: root/keygenthread.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-09-13 17:00:05 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-09-13 17:00:05 +0000
commita50ece2918992b91134bb03b26595d35c1f2db92 (patch)
tree148a55752eb137f654bf6f6e174f86edcb7767b0 /keygenthread.cpp
parentadd scripts, structure and readme for crosscompiling for win & lin32, partial... (diff)
downloadgpg4usb-a50ece2918992b91134bb03b26595d35c1f2db92.tar.gz
gpg4usb-a50ece2918992b91134bb03b26595d35c1f2db92.zip
put keygeneration to own thread for GUI responsibility
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@212 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keygenthread.cpp')
-rw-r--r--keygenthread.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/keygenthread.cpp b/keygenthread.cpp
new file mode 100644
index 0000000..9fc6a5a
--- /dev/null
+++ b/keygenthread.cpp
@@ -0,0 +1,20 @@
+#include "keygenthread.h"
+
+
+KeyGenThread::KeyGenThread(QString keyGenParams, GpgME::Context *ctx)
+{
+ qDebug() << keyGenParams;
+ this->keyGenParams=keyGenParams;
+ this->ctx=ctx;
+ abort=false;
+}
+
+void KeyGenThread::run()
+{
+ qDebug() << keyGenParams;
+ qDebug("hallo2");
+ ctx->generateKey(&keyGenParams);
+
+ qDebug("hallo323");
+
+}