akonadi
#include <monitor_p.h>
Inherited by Akonadi::ChangeRecorderPrivate.
Classes | |
class | PurgeBuffer |
Public Member Functions | |
MonitorPrivate (ChangeNotificationDependenciesFactory *dependenciesFactory_, Monitor *parent) | |
bool | acceptNotification (const NotificationMessage &msg) const |
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 | flushPipeline () |
void | init () |
void | invalidateCache (const Collection &col) |
void | invalidateCaches (const NotificationMessage &msg) |
void | invalidateCollectionCache (qint64 collectionId) |
void | invalidateItemCache (qint64 itemId) |
virtual void | notificationsEnqueued (int) |
virtual void | notificationsErased () |
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 *) |
bool | translateAndCompress (QQueue< NotificationMessage > ¬ificationQueue, const NotificationMessage &msg) |
void | updatePendingStatistics (const NotificationMessage &msg) |
Public Attributes | |
CollectionCache * | collectionCache |
bool | collectionMoveTranslationEnabled |
Collection::List | collections |
ChangeNotificationDependenciesFactory * | dependenciesFactory |
bool | fetchCollection |
bool | fetchCollectionStatistics |
ItemCache * | itemCache |
QSet< Item::Id > | items |
class Akonadi::MonitorPrivate::PurgeBuffer | m_buffer |
CollectionFetchScope | mCollectionFetchScope |
bool | mFetchChangedOnly |
QSet< QString > | mimetypes |
ItemFetchScope | mItemFetchScope |
bool | monitorAll |
QObject * | 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 49 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 no one 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 no one was listening.
|
virtual |
Sends out the change notification msg
.
- Returns
true
if the notification was actually send to someone,false
if no one 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.
void Akonadi::MonitorPrivate::invalidateCollectionCache | ( | qint64 | collectionId | ) |
This method is called by the ChangeMediator to enforce an invalidation of the passed collection.
void Akonadi::MonitorPrivate::invalidateItemCache | ( | qint64 | itemId | ) |
This method is called by the ChangeMediator to enforce an invalidation of the passed item.
|
virtual |
Virtual so that ChangeRecorder can set it to 0 and handle the pipeline itself.
bool Akonadi::MonitorPrivate::translateAndCompress | ( | QQueue< NotificationMessage > & | notificationQueue, |
const NotificationMessage & | msg | ||
) |
Returns whether a message was appended to notificationQueue
.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:51 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.