Messagelib

scamdetectionwhitelistsettingsmanager.h
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include "messageviewer_export.h"
11#include "scamdetectioninfo.h"
12#include <QList>
13#include <QObject>
14namespace MessageViewer
15{
16class ScamDetectionInfo;
17class MESSAGEVIEWER_EXPORT ScamDetectionWhiteListSettingsManager : public QObject
18{
19 Q_OBJECT
20public:
21 ~ScamDetectionWhiteListSettingsManager() override;
22 static ScamDetectionWhiteListSettingsManager *self();
23
24 [[nodiscard]] QList<ScamDetectionInfo> scamDetectionInfoList() const;
25 void setScamDetectionInfoList(const QList<ScamDetectionInfo> &newScamDetectionInfoList);
26
27private:
28 explicit ScamDetectionWhiteListSettingsManager(QObject *parent = nullptr);
29 MESSAGEVIEWER_NO_EXPORT void loadSettings();
30 MESSAGEVIEWER_NO_EXPORT void writeSettings();
31 QList<ScamDetectionInfo> mScamDetectionInfoList;
32};
33}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.