Messagelib

globalpart.h
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messagepart.h"
10
11#include <QByteArray>
12#include <memory>
13
14namespace MessageComposer
15{
16/**
17 * @brief The GlobalPart class
18 */
19class MESSAGECOMPOSER_EXPORT GlobalPart : public MessageComposer::MessagePart
20{
21 Q_OBJECT
22
23public:
24 explicit GlobalPart(QObject *parent = nullptr);
25 ~GlobalPart() override;
26
27 // default true
28 [[nodiscard]] bool isGuiEnabled() const;
29 void setGuiEnabled(bool enabled);
30 [[nodiscard]] QWidget *parentWidgetForGui() const;
31 void setParentWidgetForGui(QWidget *widget);
32
33 // default is false
34 [[nodiscard]] bool MDNRequested() const;
35 void setMDNRequested(bool requestMDN);
36
37 [[nodiscard]] bool requestDeleveryConfirmation() const;
38 void setRequestDeleveryConfirmation(bool value);
39
40private:
41 class GlobalPartPrivate;
42 std::unique_ptr<GlobalPartPrivate> const d;
43};
44} // namespace MessageComposer
The GlobalPart class.
Definition globalpart.h:20
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 Jul 26 2024 11:54:19 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.