akonadi
Akonadi::MonitorPrivate Class Reference
#include <monitor_p.h>
Classes | |
class | PurgeBuffer |
Class used to determine when to purge items in a Collection. More... | |
Public Member Functions | |
MonitorPrivate (Monitor *parent) | |
bool | acceptNotification (const NotificationMessage &msg) |
void | appendAndCompress (const NotificationMessage &msg) |
void | cleanOldNotifications () |
virtual bool | connectToNotificationManager () |
void | dataAvailable () |
Collection::Id | deref (Collection::Id id) |
void | dispatchNotifications () |
void | emitCollectionNotification (const NotificationMessage &msg, const Collection &col=Collection(), const Collection &par=Collection(), const Collection &dest=Collection()) |
void | emitItemNotification (const NotificationMessage &msg, const Item &item=Item(), const Collection &collection=Collection(), const Collection &collectionDest=Collection()) |
void | emitNotification (const NotificationMessage &msg) |
bool | ensureDataAvailable (const NotificationMessage &msg) |
void | init () |
void | invalidateCache (const Collection &col) |
void | invalidateCaches (const NotificationMessage &msg) |
virtual int | pipelineSize () const |
void | ref (Collection::Id id) |
void | slotFlushRecentlyChangedCollections () |
virtual void | slotNotify (const NotificationMessage::List &msgs) |
void | slotSessionDestroyed (QObject *) |
void | slotStatisticsChangedFinished (KJob *) |
void | updatePendingStatistics (const NotificationMessage &msg) |
Public Attributes | |
CollectionCache | collectionCache |
Collection::List | collections |
bool | fetchCollection |
bool | fetchCollectionStatistics |
ItemCache | itemCache |
QSet< Item::Id > | items |
class Akonadi::MonitorPrivate::PurgeBuffer | m_buffer |
CollectionFetchScope | mCollectionFetchScope |
QSet< QString > | mimetypes |
ItemFetchScope | mItemFetchScope |
bool | monitorAll |
org::freedesktop::Akonadi::NotificationManager * | nm |
QQueue< NotificationMessage > | pendingNotifications |
QQueue< NotificationMessage > | pipeline |
Monitor * | q_ptr |
QHash< Collection::Id, int > | refCountMap |
QSet< QByteArray > | resources |
Session * | session |
QList< QByteArray > | sessions |
bool | useRefCounting |
Detailed Description
For internal use only.
Definition at line 47 of file monitor_p.h.
Member Function Documentation
void Akonadi::MonitorPrivate::invalidateCache | ( | const Collection & | col | ) |
Used by ResourceBase to inform us about collection changes before the notifications are emitted, needed to avoid the missing RID race on change replay.
Member Data Documentation
class Akonadi::MonitorPrivate::PurgeBuffer Akonadi::MonitorPrivate::m_buffer |
Class used to determine when to purge items in a Collection.
The buffer method can be used to buffer a Collection. This may cause another Collection to be purged if it is removed from the buffer.
The purge method is used to purge a Collection from the buffer, but not the model. This is used for example, to not buffer Collections anymore if they get referenced, and to ensure that one Collection does not appear twice in the buffer.
Check whether a Collection is buffered using the isBuffered method.
The documentation for this class was generated from the following file: