Messagelib

messagefactoryforwardjob.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 <KMime/Message>
11 #include <QObject>
12 namespace KIdentityManagement
13 {
14 class IdentityManager;
15 }
16 
17 namespace MessageComposer
18 {
19 class MessageFactoryForwardJob : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit MessageFactoryForwardJob(QObject *parent = nullptr);
24  ~MessageFactoryForwardJob() override;
25  void start();
26  void setMsg(const KMime::Message::Ptr &msg);
27 
28  void setTemplate(const QString &tmpl);
29 
30  void setSelection(const QString &selection);
31 
32  void setOrigMsg(const KMime::Message::Ptr &origMsg);
33 
34  void setIdentityManager(KIdentityManagement::IdentityManager *identityManager);
35 
36  void setCollection(const Akonadi::Collection &collection);
37 
38 Q_SIGNALS:
39  void forwardDone(const KMime::Message::Ptr &msg);
40 
41 private:
42  void slotParsingDone();
43 
44  QString mSelection;
45  QString mTemplate;
46  KMime::Message::Ptr mMsg = nullptr;
47  KMime::Message::Ptr mOrigMsg = nullptr;
48  Akonadi::Collection mCollection;
49  KIdentityManagement::IdentityManager *mIdentityManager = nullptr;
50 };
51 }
52 
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 Sat Dec 4 2021 23:12:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.