Messagelib

mailwebenginepage.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 "messageviewer_export.h"
9#include <WebEngineViewer/WebEnginePage>
10
11namespace MessageViewer
12{
13/**
14 * @brief The MailWebEnginePage class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class MESSAGEVIEWER_EXPORT MailWebEnginePage : public WebEngineViewer::WebEnginePage
18{
19 Q_OBJECT
20public:
21 explicit MailWebEnginePage(QObject *parent = nullptr);
22 ~MailWebEnginePage() override = default;
23
24 void setPrintElementBackground(bool printElementBackground);
25
26private:
27#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
28 MESSAGEVIEWER_NO_EXPORT void slotFeaturePermissionRequested(QWebEnginePermission feature);
29#else
30 MESSAGEVIEWER_NO_EXPORT void slotFeaturePermissionRequested(const QUrl &url, QWebEnginePage::Feature feature);
31#endif
32 MESSAGEVIEWER_NO_EXPORT void initialize();
33};
34}
The MailWebEnginePage class.
The WebEnginePage class.
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.