Commit 350eb2b9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement show "authentication server verified"

parent f8c07874
......@@ -20,6 +20,9 @@
#include "dkimadvancedwidget.h"
#include <KLocalizedString>
#include <QFormLayout>
#include <QPointer>
#include <QPushButton>
#include "dkimauthenticationverifiedserverdialog.h"
#include "messageviewer/messageviewersettings.h"
#include <PimCommon/ConfigureImmutableWidgetUtils>
#include <QLabel>
......@@ -47,12 +50,23 @@ DKIMAdvancedWidget::DKIMAdvancedWidget(QWidget *parent)
mSha1Policy->addItems({i18n("Nothing"), i18n("Warning"), i18n("Error")});
mainLayout->addRow(i18n("Treat RSA-SHA1 sign algorithm as:"), mSha1Policy);
QPushButton *configureServer = new QPushButton(i18n("Configure"), this);
configureServer->setObjectName(QStringLiteral("configure_button"));
connect(configureServer, &QPushButton::clicked, this, &DKIMAdvancedWidget::slotConfigureAuthenticationServer);
mainLayout->addRow(i18n("Authentication Server verified:"), configureServer);
}
DKIMAdvancedWidget::~DKIMAdvancedWidget()
{
}
void DKIMAdvancedWidget::slotConfigureAuthenticationServer()
{
QPointer<DKIMAuthenticationVerifiedServerDialog> dlg = new DKIMAuthenticationVerifiedServerDialog(this);
dlg->exec();
delete dlg;
}
void DKIMAdvancedWidget::loadSettings()
{
loadWidget(mSha1Policy, MessageViewer::MessageViewerSettings::self()->policyRsaSha1Item());
......
......@@ -34,6 +34,7 @@ public:
void saveSettings();
void resetSettings();
private:
void slotConfigureAuthenticationServer();
QComboBox *mSha1Policy = nullptr;
QCheckBox *mCheckDKIMWhenOnlyTesting = nullptr;
QCheckBox *mUseAuthenticationResultRelaxedParser = nullptr;
......
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