Messagelib

mdnadvicedialog.h
1 /*
2  SPDX-FileCopyrightText: 2022-2023 Laurent Montel <[email protected]>
3  SPDX-FileCopyrightText: 2009 Michael Leupold <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "messagecomposer_export.h"
11 
12 #include <MessageComposer/MessageFactoryNG>
13 
14 #include <QDialog>
15 
16 namespace MessageComposer
17 {
18 class MESSAGECOMPOSER_EXPORT MDNAdviceDialog : public QDialog
19 {
20  Q_OBJECT
21 
22 public:
23  explicit MDNAdviceDialog(const QString &text, bool canDeny, QWidget *parent = nullptr);
24  ~MDNAdviceDialog() override;
25 
26  Q_REQUIRED_RESULT MessageComposer::MDNAdvice result() const;
27 
28 private:
29  MESSAGECOMPOSER_NO_EXPORT void slotUser1Clicked();
30  MESSAGECOMPOSER_NO_EXPORT void slotUser2Clicked();
31  MESSAGECOMPOSER_NO_EXPORT void slotYesClicked();
32  MessageComposer::MDNAdvice m_result = MessageComposer::MDNIgnore;
33 };
34 }
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-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.