Messagelib

mdnwarningwidgetjob.h
1 /*
2  SPDX-FileCopyrightText: 2022-2023 Laurent Montel <[email protected]>
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>
13 namespace MessageComposer
14 {
15 /**
16  * @brief The MDNWarningWidget class
17  * @author Laurent Montel <[email protected]>
18  */
19 class MESSAGECOMPOSER_EXPORT MDNWarningWidgetJob : public QObject
20 {
21  Q_OBJECT
22 public:
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 
33 Q_SIGNALS:
34  void showMdnInfo(const QPair<QString, bool> &mdnInfo, KMime::MDN::SendingMode s);
35 
36 private:
37  Akonadi::Item mItem;
38 };
39 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:57:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.