Messagelib

converthtmltoplaintext.h
1 /*
2  SPDX-FileCopyrightText: 2015-2023 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 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.