Messagelib

scamdetectionwarningwidget.h
1/*
2 SPDX-FileCopyrightText: 2013-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_private_export.h"
11
12#include <KMessageWidget>
13
14namespace MessageViewer
15{
16class ScamDetectionWarningWidgetPrivate;
17class MESSAGEVIEWER_TESTS_EXPORT ScamDetectionWarningWidget : public KMessageWidget
18{
19 Q_OBJECT
20public:
21 explicit ScamDetectionWarningWidget(QWidget *parent = nullptr);
22 ~ScamDetectionWarningWidget() override;
23
24 void setUseInTestApps(bool b);
25
26public Q_SLOTS:
27 void slotShowWarning();
28
29Q_SIGNALS:
30 void showDetails();
31 void moveMessageToTrash();
32 void messageIsNotAScam();
33 void addToWhiteList();
34
35private:
36 MESSAGEVIEWER_NO_EXPORT void slotShowDetails(const QString &content);
37 MESSAGEVIEWER_NO_EXPORT void slotAddToWhiteList();
38 MESSAGEVIEWER_NO_EXPORT void slotDisableScamDetection();
39 MESSAGEVIEWER_NO_EXPORT void slotMessageIsNotAScam();
40 std::unique_ptr<ScamDetectionWarningWidgetPrivate> const d;
41};
42}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:37:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.