File indexing completed on 2025-05-04 04:59:33

0001 /*
0002    SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "../searchfullhashjob.h"
0010 #include <QWidget>
0011 #include <WebEngineViewer/LocalDataBaseManager>
0012 class QPlainTextEdit;
0013 namespace WebEngineViewer
0014 {
0015 class WebEngineView;
0016 }
0017 class WebEngineViewWithSafeBrowsingSupport : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit WebEngineViewWithSafeBrowsingSupport(QWidget *parent = nullptr);
0022     ~WebEngineViewWithSafeBrowsingSupport() override;
0023 
0024 private Q_SLOTS:
0025     void slotUrlClicked(const QUrl &url);
0026     void slotCheckedUrlFinished(const QUrl &url, WebEngineViewer::CheckPhishingUrlUtil::UrlStatus status);
0027 
0028 private:
0029     QPlainTextEdit *mDebug = nullptr;
0030     WebEngineViewer::WebEngineView *pageView = nullptr;
0031 };