akonadi
20 #include "changerecorder.h"
21 #include "changerecorder_p.h"
24 #include <QtCore/QSettings>
26 using namespace Akonadi;
29 Monitor( new ChangeRecorderPrivate( 0, this ), parent )
46 d->settings = settings;
47 Q_ASSERT( d->pendingNotifications.isEmpty() );
48 d->loadNotifications();
49 }
else if ( d->settings ) {
50 if ( d->enableChangeRecording )
51 d->saveNotifications();
52 d->settings = settings;
59 if ( !d->pendingNotifications.isEmpty() ) {
60 const NotificationMessage msg = d->pendingNotifications.head();
61 if ( d->ensureDataAvailable( msg ) ) {
62 d->emitNotification( msg );
63 }
else if ( d->translateAndCompress( d->pipeline, msg ) ) {
70 d->dequeueNotification();
84 return d->pendingNotifications.isEmpty();
94 if ( !d->pendingNotifications.isEmpty() )
95 d->dequeueNotification();
101 if ( d->enableChangeRecording == enable )
103 d->enableChangeRecording = enable;
105 d->m_needFullSave =
true;
106 d->notificationsLoaded();
108 d->dispatchNotifications();
115 return d->dumpNotificationListToString();
118 #include "changerecorder.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Dec 10 2012 13:48:07 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.