Messagelib

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

KDE's Doxygen guidelines are available online.