Messagelib

globalpart.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "globalpart.h"
8
9using namespace MessageComposer;
10
11class GlobalPart::GlobalPartPrivate
12{
13public:
14 GlobalPartPrivate() = default;
15
16 QWidget *parentWidgetForGui = nullptr;
17 bool guiEnabled = true;
18 bool MDNRequested = false;
19 bool requestDeleveryConfirmation = false;
20};
21
22GlobalPart::GlobalPart(QObject *parent)
23 : MessagePart(parent)
24 , d(new GlobalPartPrivate)
25{
26}
27
28GlobalPart::~GlobalPart() = default;
29
30bool GlobalPart::isGuiEnabled() const
31{
32 return d->guiEnabled;
33}
34
35void GlobalPart::setGuiEnabled(bool enabled)
36{
37 d->guiEnabled = enabled;
38}
39
40QWidget *GlobalPart::parentWidgetForGui() const
41{
42 return d->parentWidgetForGui;
43}
44
45void GlobalPart::setParentWidgetForGui(QWidget *widget)
46{
47 d->parentWidgetForGui = widget;
48}
49
50bool GlobalPart::MDNRequested() const
51{
52 return d->MDNRequested;
53}
54
55void GlobalPart::setMDNRequested(bool requestMDN)
56{
57 d->MDNRequested = requestMDN;
58}
59
60bool GlobalPart::requestDeleveryConfirmation() const
61{
62 return d->requestDeleveryConfirmation;
63}
64
65void GlobalPart::setRequestDeleveryConfirmation(bool value)
66{
67 d->requestDeleveryConfirmation = value;
68}
69
70#include "moc_globalpart.cpp"
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.