aboutsummaryrefslogtreecommitdiffstats
path: root/keygendialog.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-08-04 02:20:14 +0200
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-08-04 02:20:14 +0200
commit340ef42b7ec3d11c6568eb3341dc3eae2ffce7bb (patch)
treeaea47670d7b2b3a1717a68993a7d01dff0b3a96a /keygendialog.cpp
parentdeleting keys works (diff)
downloadgpg4usb-340ef42b7ec3d11c6568eb3341dc3eae2ffce7bb.tar.gz
gpg4usb-340ef42b7ec3d11c6568eb3341dc3eae2ffce7bb.zip
generate key
git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2-mac@939 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keygendialog.cpp')
-rw-r--r--keygendialog.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/keygendialog.cpp b/keygendialog.cpp
index ef07e61..6f8a5e8 100644
--- a/keygendialog.cpp
+++ b/keygendialog.cpp
@@ -124,7 +124,7 @@ void KeyGenDialog::keyGenAccept()
/**
* create the string for key generation
*/
- keyGenParams = "<GnupgKeyParms format=\"internal\">\n"
+ /*keyGenParams = "<GnupgKeyParms format=\"internal\">\n"
"Key-Type: DSA\n"
"Key-Length: 1024\n"
"Subkey-Type: ELG-E\n"
@@ -148,7 +148,20 @@ void KeyGenDialog::keyGenAccept()
keyGenParams += "</GnupgKeyParms>";
KeyGenThread *kg = new KeyGenThread(keyGenParams, mCtx);
- kg->start();
+ kg->start();*/
+
+
+ // TODO: expdate
+ KGpgGenerateKey *genkey = new KGpgGenerateKey(this,
+ nameEdit->text(),
+ emailEdit->text(),
+ commentEdit->text(),
+ KgpgCore::ALGO_RSA_RSA,
+ keySizeSpinBox->cleanText().toInt(),
+ 0,
+ 'd');
+
+ genkey->start();
this->accept();
@@ -167,7 +180,9 @@ void KeyGenDialog::keyGenAccept()
dialog->show();
- while (kg->isRunning()) {
+ //genkey->thread()->isRunning()
+
+ while (genkey->thread()->isRunning()) {
QCoreApplication::processEvents();
}