Messagelib

templateconvertcommandjob.h
1/*
2 SPDX-FileCopyrightText: 2018-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 <KMime/Message>
11#include <QObject>
12
13namespace TemplateParser
14{
15/**
16 * @brief The TemplateConvertCommandJob class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class TEMPLATEPARSER_EXPORT TemplateConvertCommandJob : public QObject
20{
21 Q_OBJECT
22public:
23 explicit TemplateConvertCommandJob(QObject *parent = nullptr);
25 [[nodiscard]] QString convertText();
26
27 [[nodiscard]] QString currentText() const;
28 void setCurrentText(const QString &currentText);
29
30 [[nodiscard]] KMime::Message::Ptr originalMessage() const;
31 void setOriginalMessage(const KMime::Message::Ptr &originalMessage);
32
33private:
34 QString mCurrentText;
35 KMime::Message::Ptr mOriginalMessage;
36};
37}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.