Messagelib

mailsourcewebengineviewer.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 <QDialog>
10class QTabWidget;
11class QWebEnginePage;
12
13namespace MessageViewer
14{
15class MailSourceViewTextBrowserWidget;
16class MailSourceWebEngineViewer : public QDialog
17{
19public:
20 explicit MailSourceWebEngineViewer(QWidget *parent = nullptr);
21 ~MailSourceWebEngineViewer() override;
22
23 void setRawSource(const QString &source);
24 void setDisplayedSource(QWebEnginePage *page);
25 void setFixedFont();
26
27private:
28 void readConfig();
29 void writeConfig();
30 MailSourceViewTextBrowserWidget *const mRawBrowser;
31 QTabWidget *mTabWidget = nullptr;
32 MailSourceViewTextBrowserWidget *mHtmlBrowser = nullptr;
33 bool mShowHtmlSource = false;
34};
35}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.