Messagelib

mdnwarningwidgetjob.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagecomposer_export.h"
10#include <Akonadi/Item>
11#include <KMime/MDN>
12#include <QObject>
13namespace MessageComposer
14{
15/**
16 * @brief The MDNWarningWidget class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGECOMPOSER_EXPORT MDNWarningWidgetJob : public QObject
20{
21 Q_OBJECT
22public:
23 explicit MDNWarningWidgetJob(QObject *parent = nullptr);
24 ~MDNWarningWidgetJob() override;
25
26 [[nodiscard]] bool start();
27
28 [[nodiscard]] const Akonadi::Item &item() const;
29 void setItem(const Akonadi::Item &newItem);
30
31 [[nodiscard]] bool canStart() const;
32
33Q_SIGNALS:
34 void showMdnInfo(const QPair<QString, bool> &mdnInfo, KMime::MDN::SendingMode s);
35
36private:
37 Akonadi::Item mItem;
38};
39}
Q_SCRIPTABLE Q_NOREPLY void start()
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-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:49:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.