Messagelib

globalpart.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
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 
14 namespace MessageComposer
15 {
16 /**
17  * @brief The GlobalPart class
18  */
19 class MESSAGECOMPOSER_EXPORT GlobalPart : public MessageComposer::MessagePart
20 {
21  Q_OBJECT
22 
23 public:
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 
48 private:
49  class GlobalPartPrivate;
50  std::unique_ptr<GlobalPartPrivate> const d;
51 };
52 } // namespace MessageComposer
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The GlobalPart class.
Definition: globalpart.h:19
KCharsets * charsets()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 03:57:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.