diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-12-17 00:15:06 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-12-17 00:15:06 +0000 |
commit | 36baeab697c592145a43bf3c7061e0d6222b6aa1 (patch) | |
tree | fb71d33450f5d11f49105106190d8394411b7e69 /gpgwin.cpp | |
parent | some more playing with sign&verify, signing kind of works now and has menu entry (diff) | |
download | gpg4usb-36baeab697c592145a43bf3c7061e0d6222b6aa1.tar.gz gpg4usb-36baeab697c592145a43bf3c7061e0d6222b6aa1.zip |
verify does something useful now, output to stdout
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@405 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -224,6 +224,13 @@ void GpgWin::createActions() signAct->setToolTip(tr("Sign Message")); connect(signAct, SIGNAL(triggered()), this, SLOT(sign())); + verifyAct = new QAction(tr("&Verify"), this); + //signAct->setIcon(QIcon(iconPath + "encrypted.png")); + //signAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_E)); + verifyAct->setToolTip(tr("Verify Message")); + connect(verifyAct, SIGNAL(triggered()), this, SLOT(verify())); + + /** Key Menu */ importKeyFromFileAct = new QAction(tr("&File"), this); @@ -295,6 +302,7 @@ void GpgWin::createMenus() cryptMenu->addAction(encryptAct); cryptMenu->addAction(decryptAct); cryptMenu->addAction(signAct); + cryptMenu->addAction(verifyAct); cryptMenu->addSeparator(); cryptMenu->addAction(fileEncryptionAct); @@ -720,6 +728,12 @@ void GpgWin::sign() { } } +void GpgWin::verify() { + + mCtx->verify(edit->toPlainText().toUtf8()); + +} + void GpgWin::importKeyDialog() { |