Akonadi
11#include "private/protocol_p.h"
16class NotificationManagerTest;
23class NotificationSubscriber;
24class AggregatedCollectionFetchScope;
25class AggregatedItemFetchScope;
26class AggregatedTagFetchScope;
28class NotificationManager :
public AkThread
36 explicit NotificationManager(StartMode startMode = AutoStart);
39 ~NotificationManager()
override;
41 void forgetSubscriber(NotificationSubscriber *subscriber);
43 AggregatedCollectionFetchScope *collectionFetchScope()
const
45 return mCollectionFetchScope;
47 AggregatedItemFetchScope *itemFetchScope()
const
49 return mItemFetchScope;
51 AggregatedTagFetchScope *tagFetchScope()
const
53 return mTagFetchScope;
57 void registerConnection(quintptr socketDescriptor);
59 void emitPendingNotifications();
61 void slotNotify(
const Akonadi::Protocol::ChangeNotificationList &msgs);
67 void emitDebugNotification(
const Protocol::ChangeNotificationPtr &ntf,
const QList<QByteArray> &listeners);
70 Protocol::ChangeNotificationList mNotifications;
71 QTimer *mTimer =
nullptr;
73 QThreadPool *mNotifyThreadPool =
nullptr;
74 QList<QPointer<NotificationSubscriber>> mSubscribers;
75 int mDebugNotifications;
76 AggregatedCollectionFetchScope *mCollectionFetchScope =
nullptr;
77 AggregatedItemFetchScope *mItemFetchScope =
nullptr;
78 AggregatedTagFetchScope *mTagFetchScope =
nullptr;
80 bool mWaiting =
false;
81 bool mQuitting =
false;
83 friend class NotificationSubscriber;
84 friend class ::NotificationManagerTest;
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.