Messagelib

networkurlinterceptormanager.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 "networkpluginurlinterceptor.h"
10 #include "networkpluginurlinterceptorinterface.h"
11 #include "webengineviewer_export.h"
12 #include <QObject>
13 #include <QVector>
14 #include <WebEngineViewer/WebHitTestResult>
15 #include <memory>
16 class KActionCollection;
17 class QWebEngineView;
18 namespace WebEngineViewer
19 {
20 class WebHitTestResult;
21 class NetworkUrlInterceptorManagerPrivate;
22 /**
23  * @brief The NetworkUrlInterceptorManager class
24  * @author Laurent Montel <[email protected]>
25  */
26 class WEBENGINEVIEWER_EXPORT NetworkUrlInterceptorManager : public QObject
27 {
28  Q_OBJECT
29 public:
30  explicit NetworkUrlInterceptorManager(QWebEngineView *webEngine, KActionCollection *ac, QObject *parent = nullptr);
31  ~NetworkUrlInterceptorManager() override;
32 
33  Q_REQUIRED_RESULT QVector<NetworkPluginUrlInterceptorInterface *> interfaceList() const;
34  Q_REQUIRED_RESULT QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
35 
36 private:
37  std::unique_ptr<NetworkUrlInterceptorManagerPrivate> const d;
38 };
39 }
The WebHitTestResult class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.