File indexing completed on 2025-01-26 04:47:01
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <WebEngineViewer/WebEnginePage> 0010 namespace Akregator 0011 { 0012 class ArticleViewerWebEnginePage : public WebEngineViewer::WebEnginePage 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit ArticleViewerWebEnginePage(QObject *parent = nullptr); 0017 ~ArticleViewerWebEnginePage() override; 0018 0019 protected: 0020 bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override; 0021 0022 private: 0023 void slotFeaturePermissionRequested(const QUrl &url, QWebEnginePage::Feature feature); 0024 void onLoadProgress(); 0025 }; 0026 }