Messagelib
7 #include "globalpart.h"
11 class GlobalPart::GlobalPartPrivate
14 GlobalPartPrivate() =
default;
17 QWidget *parentWidgetForGui =
nullptr;
18 bool guiEnabled =
true;
19 bool fallbackCharsetEnabled =
false;
20 bool allow8Bit =
false;
21 bool MDNRequested =
false;
22 bool requestDeleveryConfirmation =
false;
25 GlobalPart::GlobalPart(
QObject *parent)
27 , d(new GlobalPartPrivate)
31 GlobalPart::~GlobalPart() =
default;
33 bool GlobalPart::isGuiEnabled()
const
38 void GlobalPart::setGuiEnabled(
bool enabled)
40 d->guiEnabled = enabled;
43 QWidget *GlobalPart::parentWidgetForGui()
const
45 return d->parentWidgetForGui;
48 void GlobalPart::setParentWidgetForGui(
QWidget *widget)
50 d->parentWidgetForGui = widget;
53 bool GlobalPart::isFallbackCharsetEnabled()
const
55 return d->fallbackCharsetEnabled;
58 void GlobalPart::setFallbackCharsetEnabled(
bool enabled)
60 d->fallbackCharsetEnabled = enabled;
66 if (d->fallbackCharsetEnabled || forceFallback) {
78 bool GlobalPart::is8BitAllowed()
const
83 void GlobalPart::set8BitAllowed(
bool allowed)
85 d->allow8Bit = allowed;
88 bool GlobalPart::MDNRequested()
const
90 return d->MDNRequested;
93 void GlobalPart::setMDNRequested(
bool requestMDN)
95 d->MDNRequested = requestMDN;
98 bool GlobalPart::requestDeleveryConfirmation()
const
100 return d->requestDeleveryConfirmation;
103 void GlobalPart::setRequestDeleveryConfirmation(
bool value)
105 d->requestDeleveryConfirmation = value;
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-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:14 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.