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

Continue to implement scamdetection white list

parent 112a23a5
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(PIM_VERSION "5.18.45")
set(PIM_VERSION "5.18.46")
project(Messagelib VERSION ${PIM_VERSION})
......
......@@ -175,6 +175,8 @@ target_sources(KF5MessageViewer PRIVATE
scamdetection/scamexpandurljob.cpp
scamdetection/scamcheckshorturlmanager.cpp
scamdetection/scamdetectionwebengine.cpp
scamdetection/scamdetectionwhitelistsettingsmanager.cpp
scamdetection/scamdetectioninfo.cpp
findbar/findbarsourceview.cpp
utils/iconnamecache.cpp
utils/markmessagereadhandler.cpp
......@@ -322,6 +324,7 @@ ecm_generate_headers(MessageViewer_Camelcasescam_HEADERS
ScamExpandUrlJob
ScamCheckShortUrlManager
ScamCheckShortUrl
ScamDetectionWhiteListSettingsManager
REQUIRED_HEADERS MessageViewer_scam_HEADERS
PREFIX MessageViewer
RELATIVE scamdetection
......
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "scamdetectioninfo.h"
using namespace MessageViewer;
ScamDetectionInfo::ScamDetectionInfo()
{
}
ScamDetectionInfo::~ScamDetectionInfo()
{
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
namespace MessageViewer
{
class ScamDetectionInfo
{
public:
ScamDetectionInfo();
~ScamDetectionInfo();
};
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "scamdetectionwhitelistsettingsmanager.h"
using namespace MessageViewer;
ScamDetectionWhiteListSettingsManager::ScamDetectionWhiteListSettingsManager(QObject *parent)
: QObject{parent}
{
}
ScamDetectionWhiteListSettingsManager::~ScamDetectionWhiteListSettingsManager()
{
}
ScamDetectionWhiteListSettingsManager *ScamDetectionWhiteListSettingsManager::self()
{
static ScamDetectionWhiteListSettingsManager s_self;
return &s_self;
}
/*
SPDX-FileCopyrightText: 2021 Laurent Montel <montel@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "messageviewer_export.h"
#include <QObject>
namespace MessageViewer
{
class MESSAGEVIEWER_EXPORT ScamDetectionWhiteListSettingsManager : public QObject
{
Q_OBJECT
public:
explicit ScamDetectionWhiteListSettingsManager(QObject *parent = nullptr);
~ScamDetectionWhiteListSettingsManager() override;
static ScamDetectionWhiteListSettingsManager *self();
};
}
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