Messagelib

networkpluginurlinterceptor.h
1 /*
2  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "webengineviewer_export.h"
10 #include <QObject>
11 class QWebEngineView;
12 namespace WebEngineViewer
13 {
14 class NetworkPluginUrlInterceptorInterface;
15 /**
16  * @brief The NetworkPluginUrlInterceptor class
17  * @author Laurent Montel <[email protected]>
18  */
19 class WEBENGINEVIEWER_EXPORT NetworkPluginUrlInterceptor : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit NetworkPluginUrlInterceptor(QObject *parent = nullptr);
24  ~NetworkPluginUrlInterceptor() override;
25  virtual NetworkPluginUrlInterceptorInterface *createInterface(QWebEngineView *webEngine, QObject *parent = nullptr) = 0;
26 
27  Q_REQUIRED_RESULT virtual bool hasConfigureDialog() const;
28  virtual void showConfigureDialog(QWidget *parent = nullptr);
29 
30  void setIsEnabled(bool enabled);
31  Q_REQUIRED_RESULT bool isEnabled() const;
32 
33 private:
34  bool mIsEnabled = false;
35 };
36 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.