Messagelib

scamdetectionwebengine.h
1/*
2 SPDX-FileCopyrightText: 2016-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 <QObject>
12#include <QVariant>
13#include <memory>
14class QWebEnginePage;
15namespace MessageViewer
16{
17class ScamDetectionWebEnginePrivate;
18/**
19 * @brief The ScamDetectionWebEngine class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class MESSAGEVIEWER_EXPORT ScamDetectionWebEngine : public QObject
23{
24 Q_OBJECT
25public:
26 explicit ScamDetectionWebEngine(QObject *parent = nullptr);
27 ~ScamDetectionWebEngine() override;
28
29 void scanPage(QWebEnginePage *page);
30
31public Q_SLOTS:
32 void showDetails();
33
34Q_SIGNALS:
35 void messageMayBeAScam();
36 void resultScanDetection(bool foundScam);
37
38private:
39 MESSAGEVIEWER_NO_EXPORT void handleScanPage(const QVariant &result);
40 std::unique_ptr<ScamDetectionWebEnginePrivate> const d;
41};
42}
The ScamDetectionWebEngine class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:54:19 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.