Messagelib

messagecomposersettings.h
1 /*
2  This file is part of KMail.
3 
4  SPDX-FileCopyrightText: 2005 David Faure <[email protected]>
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 
14 class QTimer;
15 
16 namespace MessageComposer
17 {
18 /**
19  * @brief The MessageComposerSettings class
20  */
21 class MESSAGECOMPOSER_EXPORT MessageComposerSettings : public MessageComposer::MessageComposerSettingsBase
22 {
23  Q_OBJECT
24 public:
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 
34 private Q_SLOTS:
35  void slotSyncNow();
36 
37 private:
39  ~MessageComposerSettings() override;
40  static MessageComposerSettings *mSelf;
41 
42  QTimer *mConfigSyncTimer = nullptr;
43 };
44 }
45 
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The MessageComposerSettings class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.