Messagelib

templateextracthtmlelementfrommail.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_private_export.h"
10#include <QObject>
11#include <QString>
12namespace TemplateParser
13{
14class TemplateWebEnginePage;
15class TEMPLATEPARSER_TESTS_EXPORT TemplateExtractHtmlElementFromMail : public QObject
16{
17 Q_OBJECT
18public:
19 explicit TemplateExtractHtmlElementFromMail(QObject *parent = nullptr);
20 ~TemplateExtractHtmlElementFromMail() override;
21
22 [[nodiscard]] QString bodyElement() const;
23
24 [[nodiscard]] QString headerElement() const;
25
26 [[nodiscard]] QString htmlElement() const;
27
28 void setHtmlContent(const QString &html);
29
30Q_SIGNALS:
31 void loadContentDone(bool success);
32
33private:
34 TEMPLATEPARSER_NO_EXPORT void clear();
35 TEMPLATEPARSER_NO_EXPORT void slotLoadFinished(bool success);
36 TEMPLATEPARSER_NO_EXPORT void handleHtmlInfo(const QVariant &result);
37
38 QString mBodyElement;
39 QString mHeaderElement;
40 QString mHtmlElement;
41
42 TemplateWebEnginePage *const mPage;
43};
44}
KGuiItem clear()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.