Messagelib

messagefactoryreplyjob.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 <KIdentityManagementCore/IdentityManager>
11#include <KMime/Message>
12#include <QObject>
13
14namespace MessageComposer
15{
16class MessageFactoryReplyJob : public QObject
17{
19public:
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(KIdentityManagementCore::IdentityManager *identityManager);
34
35 void setReplyAll(bool replyAll);
36
37 void setCollection(const Akonadi::Collection &collection);
38
39 void setReplyAsHtml(bool replyAsHtml);
40
42 void replyDone(const KMime::Message::Ptr &msg, bool replyAll);
43
44private:
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 KIdentityManagementCore::IdentityManager *mIdentityManager = nullptr;
54};
55}
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 18 2024 12:07:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.