Commit 1c9762e7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Implement dkimmanagerauthenticationserver

parent dacd9697
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.13.44")
set(PIM_VERSION "5.13.45")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -88,6 +88,7 @@ if (${Qca-qt5_FOUND})
dkim-verify/dkimauthenticationstatusinfoutil.cpp
dkim-verify/dkimcheckfulljob.cpp
dkim-verify/dkimauthenticationstatusinfoconverter.cpp
dkim-verify/dkimmanagerauthenticationserver.cpp
)
endif()
......@@ -374,6 +375,7 @@ if (${Qca-qt5_FOUND})
DKIMManagerRules
DKIMRule
DKIMHeaderParser
DKIMManagerAuthenticationServer
REQUIRED_HEADERS MessageViewer_dkimverify_HEADERS
PREFIX MessageViewer
RELATIVE dkim-verify
......
......@@ -33,3 +33,4 @@ add_messageviewer_dkim_verify_unittest(dkimgeneraterulejobtest.cpp)
add_messageviewer_dkim_verify_unittest(dkimauthenticationstatusinfoutiltest.cpp)
add_messageviewer_dkim_verify_unittest(dkimcheckfulljobtest.cpp)
add_messageviewer_dkim_verify_unittest(dkimauthenticationstatusinfoconvertertest.cpp)
add_messageviewer_dkim_verify_unittest(dkimmanagerauthenticationservertest.cpp)
/*
Copyright (C) 2019 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "dkimmanagerauthenticationservertest.h"
#include "dkim-verify/dkimmanagerauthenticationserver.h"
#include <QTest>
QTEST_GUILESS_MAIN(DKIMManagerAuthenticationServerTest)
DKIMManagerAuthenticationServerTest::DKIMManagerAuthenticationServerTest(QObject *parent)
: QObject(parent)
{
}
void DKIMManagerAuthenticationServerTest::shouldHaveDefaultValue()
{
//TODO
}
/*
Copyright (C) 2019 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef DKIMMANAGERAUTHENTICATIONSERVERTEST_H
#define DKIMMANAGERAUTHENTICATIONSERVERTEST_H
#include <QObject>
class DKIMManagerAuthenticationServerTest : public QObject
{
Q_OBJECT
public:
explicit DKIMManagerAuthenticationServerTest(QObject *parent = nullptr);
~DKIMManagerAuthenticationServerTest() = default;
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // DKIMMANAGERAUTHENTICATIONSERVERTEST_H
/*
Copyright (C) 2019 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "dkimmanagerauthenticationserver.h"
using namespace MessageViewer;
DKIMManagerAuthenticationServer::DKIMManagerAuthenticationServer(QObject *parent)
: QObject(parent)
{
}
DKIMManagerAuthenticationServer::~DKIMManagerAuthenticationServer()
{
}
DKIMManagerAuthenticationServer *DKIMManagerAuthenticationServer::self()
{
static DKIMManagerAuthenticationServer s_self;
return &s_self;
}
/*
Copyright (C) 2019 Laurent Montel <montel@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef DKIMMANAGERAUTHENTICATIONSERVER_H
#define DKIMMANAGERAUTHENTICATIONSERVER_H
#include <QObject>
#include "messageviewer_export.h"
namespace MessageViewer {
class MESSAGEVIEWER_EXPORT DKIMManagerAuthenticationServer : public QObject
{
Q_OBJECT
public:
explicit DKIMManagerAuthenticationServer(QObject *parent = nullptr);
~DKIMManagerAuthenticationServer();
static DKIMManagerAuthenticationServer *self();
};
}
#endif // DKIMMANAGERAUTHENTICATIONSERVER_H
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