akonadi
21 #ifndef AKONADI_CHANGEMEDIATOR_P_H
22 #define AKONADI_CHANGEMEDIATOR_P_H
24 #include <QtCore/QList>
25 #include <QtCore/QObject>
26 #include <QtCore/QSet>
28 #include <akonadi/item.h>
29 #include <akonadi/private/notificationmessagev2_p.h>
40 class ChangeMediator :
public QObject
44 explicit ChangeMediator(QObject* parent = 0);
46 static ChangeMediator* instance();
48 static void registerMonitor( QObject *monitor );
49 static void unregisterMonitor( QObject *monitor );
52 static void invalidateItem(
const Akonadi::Item &item );
54 static void registerSession(
const QByteArray &
id );
55 static void unregisterSession(
const QByteArray &
id );
56 static void beginMoveItems( JobPrivate *movePrivate,
const QByteArray &
id );
57 static void itemsMoved(
const Item::List &items,
const Collection &sourceParent,
const QByteArray &
id );
60 void do_registerMonitor( QObject *monitor );
61 void do_unregisterMonitor( QObject *monitor );
64 void do_invalidateItem(
const Akonadi::Item &item );
66 void do_registerSession(
const QByteArray &
id );
67 void do_unregisterSession(
const QByteArray &
id );
68 void do_beginMoveItems( JobPrivate *movePrivate,
const QByteArray &
id );
69 void do_itemsMoved(
const Item::List &items,
const Collection &sourceParent,
const QByteArray &
id);
72 QList<QObject*> m_monitors;
74 QVector<Akonadi::NotificationMessageV2> messageQueue;
75 QVector<Akonadi::Job*> unfilteredJobs;
77 QSet<QByteArray> m_sessions;
Represents a collection of PIM items.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.