Messagelib

webenginenavigationrequestinterceptor.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 <QWebEnginePage>
10
11namespace WebEngineViewer
12{
13class WebEnginePage;
14class WebEngineNavigationRequestInterceptor : public QWebEnginePage
15{
16 Q_OBJECT
17public:
18 explicit WebEngineNavigationRequestInterceptor(QWebEnginePage *page);
19 ~WebEngineNavigationRequestInterceptor() override;
20
21protected:
22 [[nodiscard]] bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override;
23
24private:
25 QWebEnginePage *const mTargetPage;
26};
27}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.