diff options
| author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-23 00:57:35 +0200 |
|---|---|---|
| committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-07-23 00:57:35 +0200 |
| commit | a354065dd390bed674538b68bbbb23c7ce80eb51 (patch) | |
| tree | 2c7dcc8b47179cd4147486965f0dcd39f4073a0c /gpgwin.cpp | |
| parent | verify returns gpgme_op_verify_result (diff) | |
| download | gpg4usb-a354065dd390bed674538b68bbbb23c7ce80eb51.tar.gz gpg4usb-a354065dd390bed674538b68bbbb23c7ce80eb51.zip | |
independent notifcation area
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@503 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
| -rw-r--r-- | gpgwin.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -22,6 +22,7 @@ #include "gpgwin.h" #include "fileencryptiondialog.h" #include "settingsdialog.h" +#include "verifynotification.h" GpgWin::GpgWin() { @@ -710,15 +711,21 @@ void GpgWin::sign() void GpgWin::verify() { + bool verified=false; QByteArray text = edit->curTextPage()->toPlainText().toAscii(); // TODO: toUtf8() here? preventNoDataErr(&text); gpgme_signature_t sign = mCtx->verify(text); + if (sign == NULL) { - edit->curPage()->showVerifyLabel(false); return; + } else { + // TODO: should get verifynotification get the whole signature for analysizing + VerifyNotification *vn = new VerifyNotification(); + edit->curPage()->showNotificationWidget(vn); } + // while (sign) { qDebug() << "sig summary: " << sign->summary; qDebug() << "sig fingerprint: " << sign->fpr; @@ -729,8 +736,8 @@ void GpgWin::verify() qDebug() << "kein passender Schlüssel gefunden. Vom Schlüsselserver importieren?"; } sign = sign->next; - } + } } |
