akonadi
Akonadi::ChangeRecorder Class Reference
Records and replays change notification. More...
#include <changerecorder.h>

Public Slots | |
void | replayNext () |
Signals | |
void | changesAdded () |
void | nothingToReplay () |
Public Member Functions | |
void | changeProcessed () |
ChangeRecorder (QObject *parent=0) | |
bool | isEmpty () const |
void | setChangeRecordingEnabled (bool enable) |
void | setConfig (QSettings *settings) |
~ChangeRecorder () |
Detailed Description
Records and replays change notification.This class is responsible for recording change notification during an agent is not online and replay the notifications when the agent is online again. Therefor the agent doesn't have to care about online/offline mode in its synchronization algorithm.
Definition at line 41 of file changerecorder.h.
Constructor & Destructor Documentation
ChangeRecorder::ChangeRecorder | ( | QObject * | parent = 0 |
) | [explicit] |
ChangeRecorder::~ChangeRecorder | ( | ) |
Destroys the change recorder.
All not yet processed changes are written back to the config file.
Definition at line 132 of file changerecorder.cpp.
Member Function Documentation
void ChangeRecorder::changeProcessed | ( | ) |
Removes the previously emitted change from the records.
Definition at line 178 of file changerecorder.cpp.
void Akonadi::ChangeRecorder::changesAdded | ( | ) | [signal] |
Emitted when new changes are recorded.
bool ChangeRecorder::isEmpty | ( | ) | const |
void Akonadi::ChangeRecorder::nothingToReplay | ( | ) | [signal] |
Emitted when replayNext() was called, but there was no valid change to replay.
This can happen when all pending changes have been filtered out for example. You only need to connect to this signal if you rely on one signal being emitted as a result of calling replayNext().
void ChangeRecorder::replayNext | ( | ) | [slot] |
Replay the next change notification and erase the previous one from the record.
Definition at line 151 of file changerecorder.cpp.
void ChangeRecorder::setChangeRecordingEnabled | ( | bool | enable | ) |
Enables change recording.
If change recording is disabled, this class behaves exactly like Akonadi::Monitor. Change recording is enabled by default.
Definition at line 186 of file changerecorder.cpp.
void ChangeRecorder::setConfig | ( | QSettings * | settings | ) |
Sets the QSettings object used for persisting recorded changes.
Definition at line 138 of file changerecorder.cpp.
The documentation for this class was generated from the following files: