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 [[nodiscard]] bool isFallbackCharsetEnabled() const;
34 void setFallbackCharsetEnabled(bool enabled);
35 [[nodiscard]] QList<QByteArray> charsets(bool forceFallback = false) const;
36 void setCharsets(const QList<QByteArray> &charsets);
37
38 [[nodiscard]] bool is8BitAllowed() const;
39 void set8BitAllowed(bool allowed);
40
41 // default is false
42 [[nodiscard]] bool MDNRequested() const;
43 void setMDNRequested(bool requestMDN);
44
45 [[nodiscard]] bool requestDeleveryConfirmation() const;
46 void setRequestDeleveryConfirmation(bool value);
47
48private:
49 class GlobalPartPrivate;
50 std::unique_ptr<GlobalPartPrivate> const d;
51};
52} // 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 Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.