Messagelib

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

KDE's Doxygen guidelines are available online.