Akonadi::MonitorPrivate Class Reference

#include <monitor_p.h>

Inherited by Akonadi::ChangeRecorderPrivate.

List of all members.

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)
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)
bool isCollectionMonitored (Collection::Id collection, const QByteArray &resource) const
bool isItemMonitored (Item::Id item, Collection::Id collection, Collection::Id collectionDest, const QString &mimetype, const QByteArray &resource) const
bool isSessionIgnored (const QByteArray &sessionId) const
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::Iditems
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
Monitorq_ptr
QHash< Collection::Id, int > refCountMap
QSet< QByteArray > resources
Sessionsession
QList< QByteArray > sessions
bool useRefCounting

Detailed Description

For internal use only.

Definition at line 46 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 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:
KDE Home | KDE Accessibility Home | Description of Access Keys