Commit a6a1a8a8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show info about authentication result

parent b9275850
......@@ -19,6 +19,7 @@
#include "dkimwidgetinfo.h"
#include "dkimmanager.h"
#include "dkimutil.h"
#include <KLocalizedString>
#include <KColorScheme>
......@@ -211,6 +212,17 @@ void DKIMWidgetInfo::updateToolTip()
break;
}
for (const DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult &result : qAsConst(mResult.listSignatureAuthenticationResult)) {
switch (result.status) {
case DKIMCheckSignatureJob::DKIMStatus::Valid:
tooltip += (tooltip.isEmpty() ? QChar() : QLatin1Char('\n'))
+ i18n("%1: Valid", MessageViewer::DKIMUtil::convertAuthenticationMethodEnumToString(result.method));
break;
//TODO add more
default:
;
}
}
qDebug() << "mResult . authenticatio " << mResult.listSignatureAuthenticationResult;
mLabel->setToolTip(tooltip);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment