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 )
34 Monitor( privateclass, parent )
41 d->saveNotifications();
48 d->settings = settings;
49 Q_ASSERT( d->pendingNotifications.isEmpty() );
50 d->loadNotifications();
51 }
else if ( d->settings ) {
52 d->saveNotifications();
53 d->settings = settings;
60 if ( !d->pendingNotifications.isEmpty() ) {
61 const NotificationMessage msg = d->pendingNotifications.head();
63 if ( d->ensureDataAvailable( msg ) )
64 d->emitNotification( msg );
65 else if ( !d->translateAndCompress( d->pipeline, msg ) ) {
68 d->pendingNotifications.dequeue();
77 d->saveNotifications();
83 return d->pendingNotifications.isEmpty();
89 if ( !d->pendingNotifications.isEmpty() )
90 d->pendingNotifications.dequeue();
98 d->saveNotifications();
104 if ( d->enableChangeRecording == enable )
106 d->enableChangeRecording = enable;
108 d->dispatchNotifications();
114 return d->dumpNotificationListToString();
117 #include "changerecorder.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:24 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.