Messagelib

plugineditorconverterbeforeconvertingdata.h
1 /*
2  SPDX-FileCopyrightText: 2018-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecomposer_export.h"
10 #include <KMime/Message>
11 namespace MessageComposer
12 {
13 /**
14  * @brief The PluginEditorConverterBeforeConvertingData class
15  * @author Laurent Montel <[email protected]>
16  */
17 class MESSAGECOMPOSER_EXPORT PluginEditorConverterBeforeConvertingData
18 {
19 public:
21 
22  Q_REQUIRED_RESULT bool newMessage() const;
23  void setNewMessage(bool newMessage);
24 
25  Q_REQUIRED_RESULT KMime::Message::Ptr message() const;
26  void setMessage(const KMime::Message::Ptr &message);
27 
28 private:
29  KMime::Message::Ptr mMessage;
30  bool mNewMessage = true;
31 };
32 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:11 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.