Messagelib

networkpluginurlinterceptorinterface.h
1 /*
2  SPDX-FileCopyrightText: 2016-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include "webengineviewer_export.h"
9 #include <QObject>
10 class QWebEngineUrlRequestInfo;
11 class KActionCollection;
12 class QAction;
13 namespace WebEngineViewer
14 {
15 class WebHitTestResult;
16 /**
17  * @brief The NetworkPluginUrlInterceptorInterface class
18  * @author Laurent Montel <[email protected]>
19  */
20 class WEBENGINEVIEWER_EXPORT NetworkPluginUrlInterceptorInterface : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit NetworkPluginUrlInterceptorInterface(QObject *parent = nullptr);
26 
27  virtual void createActions(KActionCollection *ac);
28  virtual QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
29 
30  virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) = 0;
31 };
32 }
The WebHitTestResult class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jan 17 2022 23:05:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.