Messagelib

messageviewer/src/viewer/webengine/loadexternalreferencesurlinterceptor/loadexternalreferencesurlinterceptor.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/LoadExternalReferencesUrlInterceptor>
9#include <WebEngineViewer/NetworkPluginUrlInterceptorInterface>
10namespace MessageViewer
11{
12class LoadExternalReferencesUrlInterceptor : public WebEngineViewer::LoadExternalReferencesUrlInterceptor
13{
15public:
16 explicit LoadExternalReferencesUrlInterceptor(QObject *parent = nullptr);
17 ~LoadExternalReferencesUrlInterceptor() override;
18
19protected:
20 [[nodiscard]] bool urlIsAuthorized(const QUrl &requestedUrl) override;
21 [[nodiscard]] bool urlIsBlocked(const QUrl &requestedUrl) override;
22};
23}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.