Messagelib

templateextracttextfrommail.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "templateparser_export.h"
10 #include <QObject>
11 namespace TemplateParser
12 {
13 class TemplateWebEnginePage;
14 /**
15  * @brief The TemplateExtractTextFromMail class
16  * @author Laurent Montel <[email protected]>
17  */
18 class TEMPLATEPARSER_EXPORT TemplateExtractTextFromMail : public QObject
19 {
20  Q_OBJECT
21 public:
22  explicit TemplateExtractTextFromMail(QObject *parent = nullptr);
23  ~TemplateExtractTextFromMail() override;
24 
25  void setHtmlContent(const QString &html);
26 
27  Q_REQUIRED_RESULT QString plainText() const;
28 
29 Q_SIGNALS:
30  void loadContentDone(bool success);
31 
32 private:
33  void slotLoadFinished(bool ok);
34  void setPlainText(const QString &plainText);
35 
36  QString mExtractedPlainText;
37  TemplateWebEnginePage *const mPage;
38 };
39 }
The TemplateExtractTextFromMail class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.