File indexing completed on 2025-01-19 04:47:00
0001 /* 0002 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QVariant> 0010 #include <WebEngineViewer/NetworkPluginUrlInterceptor> 0011 class QWebEngineView; 0012 namespace WebEngineViewer 0013 { 0014 class NetworkPluginUrlInterceptorInterface; 0015 } 0016 class AdblockPluginUrlInterceptor : public WebEngineViewer::NetworkPluginUrlInterceptor 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit AdblockPluginUrlInterceptor(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>()); 0021 ~AdblockPluginUrlInterceptor() override; 0022 0023 [[nodiscard]] WebEngineViewer::NetworkPluginUrlInterceptorInterface *createInterface(QWebEngineView *webEngine, QObject *parent) override; 0024 0025 void showConfigureDialog(QWidget *parent) override; 0026 [[nodiscard]] bool hasConfigureDialog() const override; 0027 };