Messagelib

mailsourcewebengineviewer.h
1 /*
2  SPDX-FileCopyrightText: 2016-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QDialog>
10 class QTabWidget;
11 class QWebEnginePage;
12 
13 namespace MessageViewer
14 {
15 class FindBarSourceView;
16 class MailSourceViewTextBrowserWidget;
17 class MailSourceWebEngineViewer : public QDialog
18 {
19  Q_OBJECT
20 public:
21  explicit MailSourceWebEngineViewer(QWidget *parent = nullptr);
22  ~MailSourceWebEngineViewer() override;
23 
24  void setRawSource(const QString &source);
25  void setDisplayedSource(QWebEnginePage *page);
26  void setFixedFont();
27 
28 private:
29  void readConfig();
30  void writeConfig();
31  MailSourceViewTextBrowserWidget *mRawBrowser = nullptr;
32  FindBarSourceView *mFindBar = nullptr;
33  QTabWidget *mTabWidget = nullptr;
34  MailSourceViewTextBrowserWidget *mHtmlBrowser = nullptr;
35  bool mShowHtmlSource = false;
36 };
37 }
Q_OBJECTQ_OBJECT
void readConfig()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.