Messagelib

scamdetectionwebengine.h
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 
6 */
7 
8 #pragma once
9 
10 #include "messageviewer_export.h"
11 #include <QObject>
12 #include <QVariant>
13 #include <memory>
14 class QWebEnginePage;
15 namespace MessageViewer
16 {
17 class ScamDetectionWebEnginePrivate;
18 /**
19  * @brief The ScamDetectionWebEngine class
20  * @author Laurent Montel <[email protected]>
21  */
22 class MESSAGEVIEWER_EXPORT ScamDetectionWebEngine : public QObject
23 {
24  Q_OBJECT
25 public:
26  explicit ScamDetectionWebEngine(QObject *parent = nullptr);
27  ~ScamDetectionWebEngine() override;
28 
29  void scanPage(QWebEnginePage *page);
30 
31 public Q_SLOTS:
32  void showDetails();
33 
34 private Q_SLOTS:
35  void handleScanPage(const QVariant &result);
36 
37 Q_SIGNALS:
38  void messageMayBeAScam();
39  void resultScanDetection(bool foundScam);
40 
41 private:
42  std::unique_ptr<ScamDetectionWebEnginePrivate> const d;
43 };
44 }
The ScamDetectionWebEngine class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.