Messagelib

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

KDE's Doxygen guidelines are available online.