Commit 96872cbd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new api

parent f5460ffb
......@@ -20,6 +20,7 @@
#include "dkimauthenticationverifiedserverwidget.h"
#include <QVBoxLayout>
#include <KLocalizedString>
#include <MessageViewer/DKIMManagerAuthenticationServer>
DKIMAuthenticationVerifiedServerWidget::DKIMAuthenticationVerifiedServerWidget(QWidget *parent)
: QWidget(parent)
......@@ -40,14 +41,13 @@ DKIMAuthenticationVerifiedServerWidget::~DKIMAuthenticationVerifiedServerWidget(
void DKIMAuthenticationVerifiedServerWidget::loadSettings()
{
mSelector->setStringList(QStringList());
//TODO
mSelector->setStringList(MessageViewer::DKIMManagerAuthenticationServer::self()->serverList());
}
void DKIMAuthenticationVerifiedServerWidget::saveSettings()
{
const QStringList lst = mSelector->stringList();
//TODO
MessageViewer::DKIMManagerAuthenticationServer::self()->setServerList(lst);
}
DKIMAuthenticationVerifiedServerSelectorWidget::DKIMAuthenticationVerifiedServerSelectorWidget(QWidget *parent)
......@@ -60,8 +60,3 @@ DKIMAuthenticationVerifiedServerSelectorWidget::~DKIMAuthenticationVerifiedServe
{
}
void DKIMAuthenticationVerifiedServerSelectorWidget::addNewEntry()
{
}
......@@ -30,8 +30,6 @@ class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMAuthenticationVerifiedServerSelect
public:
explicit DKIMAuthenticationVerifiedServerSelectorWidget(QWidget *parent = nullptr);
~DKIMAuthenticationVerifiedServerSelectorWidget();
void addNewEntry() override;
};
class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMAuthenticationVerifiedServerWidget : public QWidget
......
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