Messagelib

messagefactoryforwardjob.h
1/*
2 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
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>
12namespace KIdentityManagementCore
13{
14class IdentityManager;
15}
16
17namespace MessageComposer
18{
19class MessageFactoryForwardJob : public QObject
20{
22public:
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(KIdentityManagementCore::IdentityManager *identityManager);
35
36 void setCollection(const Akonadi::Collection &collection);
37
39 void forwardDone(const KMime::Message::Ptr &msg);
40
41private:
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 KIdentityManagementCore::IdentityManager *mIdentityManager = nullptr;
50};
51}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.