Messagelib

webenginenavigationrequestinterceptor.h
1 /*
2  SPDX-FileCopyrightText: 2016-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QWebEnginePage>
10 
11 namespace WebEngineViewer
12 {
13 class WebEnginePage;
14 class WebEngineNavigationRequestInterceptor : public QWebEnginePage
15 {
16  Q_OBJECT
17 public:
18  explicit WebEngineNavigationRequestInterceptor(QWebEnginePage *page);
19  ~WebEngineNavigationRequestInterceptor() override;
20 
21 protected:
22  Q_REQUIRED_RESULT bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override;
23 
24 private:
25  QWebEnginePage *const mTargetPage;
26 };
27 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat May 21 2022 03:53:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.