Messagelib

mdnadvicedialog.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3 SPDX-FileCopyrightText: 2009 Michael Leupold <lemma@confuego.org>
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
16namespace MessageComposer
17{
18class MESSAGECOMPOSER_EXPORT MDNAdviceDialog : public QDialog
19{
20 Q_OBJECT
21
22public:
23 explicit MDNAdviceDialog(const QString &text, bool canDeny, QWidget *parent = nullptr);
24 ~MDNAdviceDialog() override;
25
26 [[nodiscard]] MessageComposer::MDNAdvice result() const;
27
28private:
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-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.