Messagelib

networkpluginurlinterceptor.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#pragma once
8
9#include "webengineviewer_export.h"
10#include <QObject>
11class QWebEngineView;
12namespace WebEngineViewer
13{
14class NetworkPluginUrlInterceptorInterface;
15/**
16 * @brief The NetworkPluginUrlInterceptor class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class WEBENGINEVIEWER_EXPORT NetworkPluginUrlInterceptor : public QObject
20{
21 Q_OBJECT
22public:
23 explicit NetworkPluginUrlInterceptor(QObject *parent = nullptr);
25 virtual NetworkPluginUrlInterceptorInterface *createInterface(QWebEngineView *webEngine, QObject *parent = nullptr) = 0;
26
27 [[nodiscard]] virtual bool hasConfigureDialog() const;
28 virtual void showConfigureDialog(QWidget *parent = nullptr);
29
30 void setIsEnabled(bool enabled);
31 [[nodiscard]] bool isEnabled() const;
32
33private:
34 bool mIsEnabled = false;
35};
36}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.