From a354065dd390bed674538b68bbbb23c7ce80eb51 Mon Sep 17 00:00:00 2001 From: nils Date: Fri, 22 Jul 2011 22:57:35 +0000 Subject: independent notifcation area git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@503 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index f206e40..74fdadf 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -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; - } + } } -- cgit