KDE 4.5 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

ChangeRecorder Class Reference

from PyKDE4.akonadi import *

Inherits: Akonadi.Monitor → QObject
Namespace: Akonadi

Detailed Description

Records and replays change notification.

This class is responsible for recording change notification while an agent is not online and replaying the notifications when the agent is online again. Therefore the agent doesn't have to care about online/offline mode in its synchronization algorithm.

Author:
Volker Krause <vkrause@kde.org>


Signals

 changesAdded ()
 nothingToReplay ()

Methods

 __init__ (self, QObject parent=0)
 changeProcessed (self)
bool isEmpty (self)
 replayNext (self)
 setChangeRecordingEnabled (self, bool enable)
 setConfig (self, QSettings settings)

Signal Documentation

changesAdded (   )

Emitted when new changes are recorded.

Signal syntax:
QObject.connect(source, SIGNAL("changesAdded()"), target_slot)
nothingToReplay (   )

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().

Signal syntax:
QObject.connect(source, SIGNAL("nothingToReplay()"), target_slot)

Method Documentation

__init__ (  self,
QObject  parent=0
)

Creates a new change recorder.

changeProcessed (   self )

Removes the previously emitted change from the records.

bool isEmpty (   self )

Returns whether there are recorded changes.

replayNext (   self )

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

setChangeRecordingEnabled (  self,
bool  enable
)

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

setConfig (  self,
QSettings  settings
)

Sets the QSettings object used for persistent recorded changes.

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal