• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • MonitorPrivate
Classes | Public Member Functions | Public Attributes | List of all members
Akonadi::MonitorPrivate Class Reference

#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 > &notificationQueue, 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 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 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 int Akonadi::MonitorPrivate::pipelineSize ( ) const
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:
  • monitor_p.h
This file is part of the KDE documentation.
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.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal