Messagelib

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

KDE's Doxygen guidelines are available online.