# class ChangeRecorder

###

Module | akonadi
Namespace | Akonadi
Class | ChangeRecorder
Inherits | Akonadi::Monitor

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.

Author Volker Krause <vkrause@kde.org>

### methods

- ChangeRecorder (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

  Creates a new change recorder.

- changeProcessed ( )

  returns Nothing

  Removes the previously emitted change from the records.

- changesAdded ( )

  returns Nothing
  SIGNAL ("changesAdded ()")

  Emitted when new changes are recorded.

- isEmpty ( )

  returns bool

  Returns whether there are recorded changes.

- replayNext ( )

  returns Nothing

  Replay the next change notification and erase the previous one from the record.

- setChangeRecordingEnabled (enable)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enable | bool |

  Enables change recording. If change recording is disabled, this class behaves exactly like Akonadi.Monitor. Change recording is enabled by default.

- setConfig (settings)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  settings | QSettings |

  Sets the QSettings object used for persisting recorded changes.