Messagelib

converthtmltoplaintext.h
1 /*
2  SPDX-FileCopyrightText: 2015-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 
6 */
7 
8 #pragma once
9 
10 #include <QString>
11 namespace MimeTreeParser
12 {
13 class ConvertHtmlToPlainText
14 {
15 public:
16  ConvertHtmlToPlainText();
17  ~ConvertHtmlToPlainText();
18 
19  Q_REQUIRED_RESULT QString generatePlainText();
20 
21  Q_REQUIRED_RESULT QString htmlString() const;
22  void setHtmlString(const QString &htmlString);
23 
24 private:
25  static void toCleanPlainText(QString &text);
26  QString mHtmlString;
27 };
28 }
29 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.