Messagelib

messageviewerrenderer.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
3 
4  Code based on ARHParser.jsm from dkim_verifier (Copyright (c) Philippe Lieser)
5  (This software is licensed under the terms of the MIT License.)
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #pragma once
11 
12 #include "messageviewer_private_export.h"
13 #include <QWidget>
14 namespace MessageViewer
15 {
16 class CSSHelper;
17 class MESSAGEVIEWER_TESTS_EXPORT MessageViewerRenderer
18 {
19 public:
20  MessageViewerRenderer();
21  ~MessageViewerRenderer();
22 
23  CSSHelper *cssHelper() const;
24 
25  QWidget *currentWidget() const;
26  void setCurrentWidget(QWidget *currentWidget);
27 
28  void recreateCssHelper();
29 
30 private:
31  CSSHelper *mCSSHelper = nullptr;
32  QWidget *mCurrentWidget = nullptr;
33 };
34 }
35 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.