Messagelib

messagecomposersettings.h
1/*
2 This file is part of KMail.
3
4 SPDX-FileCopyrightText: 2005 David Faure <faure@kde.org>
5
6 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
7*/
8
9#pragma once
10
11#include "messagecomposer_export.h"
12#include "messagecomposersettings_base.h"
13
14class QTimer;
15
16namespace MessageComposer
17{
18/**
19 * @brief The MessageComposerSettings class
20 */
21class MESSAGECOMPOSER_EXPORT MessageComposerSettings : public MessageComposer::MessageComposerSettingsBase
22{
23 Q_OBJECT
24public:
25 static MessageComposerSettings *self();
26
27 /** Call this slot instead of directly @ref KConfig::sync() to
28 minimize the overall config writes. Calling this slot will
29 schedule a sync of the application config file using a timer, so
30 that many consecutive calls can be condensed into a single
31 sync, which is more efficient. */
32 void requestSync();
33
34private Q_SLOTS:
35 void slotSyncNow();
36
37private:
39 ~MessageComposerSettings() override;
40 static MessageComposerSettings *mSelf;
41
42 QTimer *mConfigSyncTimer = nullptr;
43};
44}
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 Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.