Akonadi

changerecorder.h
1 /*
2  SPDX-FileCopyrightText: 2007 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_CHANGERECORDER_H
8 #define AKONADI_CHANGERECORDER_H
9 
10 #include "akonadicore_export.h"
11 #include "monitor.h"
12 
13 class QSettings;
14 
15 namespace Akonadi
16 {
17 
18 class ChangeRecorderPrivate;
19 
36 class AKONADICORE_EXPORT ChangeRecorder : public Monitor
37 {
38  Q_OBJECT
39 public:
43  explicit ChangeRecorder(QObject *parent = nullptr);
44 
49  ~ChangeRecorder();
50 
54  void setConfig(QSettings *settings);
55 
59  Q_REQUIRED_RESULT bool isEmpty() const;
60 
64  void changeProcessed();
65 
72  void setChangeRecordingEnabled(bool enable);
73 
77  Q_REQUIRED_RESULT QString dumpNotificationListToString() const;
78 
79 public Q_SLOTS:
83  void replayNext();
84 
85 Q_SIGNALS:
89  void changesAdded();
90 
97  void nothingToReplay();
98 
99 protected:
100  //@cond PRIVATE
101  explicit ChangeRecorder(ChangeRecorderPrivate *d, QObject *parent = nullptr);
102  //@endcond
103 
104 private:
105  //@cond PRIVATE
106  Q_DECLARE_PRIVATE(ChangeRecorder)
107  //@endcond
108 };
109 
110 }
111 
112 #endif
Monitors an item or collection for changes.
Definition: monitor.h:71
Helper integration between Akonadi and Qt.
Records and replays change notification.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 23:15:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.