From 340ef42b7ec3d11c6568eb3341dc3eae2ffce7bb Mon Sep 17 00:00:00 2001 From: ubbo Date: Sat, 4 Aug 2012 00:20:14 +0000 Subject: generate key git-svn-id: http://cpunk.de/svn/src/gpg4usb/branches/0.3.2-mac@939 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keygendialog.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'keygendialog.cpp') 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 = "\n" + /*keyGenParams = "\n" "Key-Type: DSA\n" "Key-Length: 1024\n" "Subkey-Type: ELG-E\n" @@ -148,7 +148,20 @@ void KeyGenDialog::keyGenAccept() keyGenParams += ""; 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(); } -- cgit