Messagelib

networkpluginurlinterceptorinterface.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "webengineviewer_export.h"
9#include <QObject>
10class QWebEngineUrlRequestInfo;
12class QAction;
13namespace WebEngineViewer
14{
15class WebHitTestResult;
16/**
17 * @brief The NetworkPluginUrlInterceptorInterface class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class WEBENGINEVIEWER_EXPORT NetworkPluginUrlInterceptorInterface : public QObject
21{
22 Q_OBJECT
23public:
24 explicit NetworkPluginUrlInterceptorInterface(QObject *parent = nullptr);
26
27 virtual void createActions(KActionCollection *ac);
28 [[nodiscard]] virtual QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
29
30 [[nodiscard]] virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) = 0;
31};
32}
The WebHitTestResult class.
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.