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 () |
bool | emitCollectionNotification (const NotificationMessage &msg, const Collection &col=Collection(), const Collection &par=Collection(), const Collection &dest=Collection()) |
bool | emitItemNotification (const NotificationMessage &msg, const Item &item=Item(), const Collection &collection=Collection(), const Collection &collectionDest=Collection()) |
virtual bool | 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 | serverStateChanged (Akonadi::ServerManager::State state) |
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::NotificationSource * | notificationSource |
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
Definition at line 48 of file monitor_p.h.
Member Function Documentation
bool Akonadi::MonitorPrivate::emitCollectionNotification | ( | const NotificationMessage & | msg, |
const Collection & | col = Collection() , |
||
const Collection & | par = Collection() , |
||
const Collection & | dest = Collection() |
||
) |
Sends out a change notification for a collection.
- Returns:
true
if the notification was actually send to someone,false
if noone was listening.
bool Akonadi::MonitorPrivate::emitItemNotification | ( | const NotificationMessage & | msg, |
const Item & | item = Item() , |
||
const Collection & | collection = Collection() , |
||
const Collection & | collectionDest = Collection() |
||
) |
Sends out a change notification for an item.
- Returns:
true
if the notification was actually send to someone,false
if noone was listening.
virtual bool Akonadi::MonitorPrivate::emitNotification | ( | const NotificationMessage & | msg | ) | [virtual] |
Sends out the change notification msg
.
- Returns:
true
if the notification was actually send to someone,false
if noone was listening.
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.
The documentation for this class was generated from the following file: