Messagelib

messagefactoryreplyjob.h
1 /*
2  SPDX-FileCopyrightText: 2017-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <Akonadi/Collection>
10 #include <KIdentityManagement/IdentityManager>
11 #include <KMime/Message>
12 #include <QObject>
13 
14 namespace MessageComposer
15 {
16 class MessageFactoryReplyJob : public QObject
17 {
18  Q_OBJECT
19 public:
20  explicit MessageFactoryReplyJob(QObject *parent = nullptr);
21  ~MessageFactoryReplyJob() override;
22 
23  void start();
24 
25  void setMsg(const KMime::Message::Ptr &msg);
26 
27  void setTemplate(const QString &tmpl);
28 
29  void setSelection(const QString &selection);
30 
31  void setOrigMsg(const KMime::Message::Ptr &origMsg);
32 
33  void setIdentityManager(KIdentityManagement::IdentityManager *identityManager);
34 
35  void setReplyAll(bool replyAll);
36 
37  void setCollection(const Akonadi::Collection &collection);
38 
39  void setReplyAsHtml(bool replyAsHtml);
40 
41 Q_SIGNALS:
42  void replyDone(const KMime::Message::Ptr &msg, bool replyAll);
43 
44 private:
45  void slotReplyDone();
46  QString mSelection;
47  QString mTemplate;
48  KMime::Message::Ptr mMsg = nullptr;
49  KMime::Message::Ptr mOrigMsg = nullptr;
50  Akonadi::Collection mCollection;
51  bool mReplyAll = false;
52  bool mReplyAsHtml = false;
53  KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
54 };
55 }
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.