Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadimonitorinterface.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #include <QObject> | 27 | #include <QObject> | ||
28 | #include <QSharedPointer> | 28 | #include <QSharedPointer> | ||
29 | 29 | | |||
30 | namespace Akonadi { | 30 | namespace Akonadi { | ||
31 | 31 | | |||
32 | class Collection; | 32 | class Collection; | ||
33 | class Item; | 33 | class Item; | ||
34 | class Tag; | | |||
35 | 34 | | |||
36 | class MonitorInterface : public QObject | 35 | class MonitorInterface : public QObject | ||
37 | { | 36 | { | ||
38 | Q_OBJECT | 37 | Q_OBJECT | ||
39 | public: | 38 | public: | ||
40 | typedef QSharedPointer<MonitorInterface> Ptr; | 39 | typedef QSharedPointer<MonitorInterface> Ptr; | ||
41 | 40 | | |||
42 | explicit MonitorInterface(QObject *parent = nullptr); | 41 | explicit MonitorInterface(QObject *parent = nullptr); | ||
43 | virtual ~MonitorInterface(); | 42 | virtual ~MonitorInterface(); | ||
44 | 43 | | |||
45 | signals: | 44 | signals: | ||
46 | void collectionAdded(const Akonadi::Collection &collection); | 45 | void collectionAdded(const Akonadi::Collection &collection); | ||
47 | void collectionRemoved(const Akonadi::Collection &collection); | 46 | void collectionRemoved(const Akonadi::Collection &collection); | ||
48 | void collectionChanged(const Akonadi::Collection &collection); | 47 | void collectionChanged(const Akonadi::Collection &collection); | ||
49 | void collectionSelectionChanged(const Akonadi::Collection &collection); | 48 | void collectionSelectionChanged(const Akonadi::Collection &collection); | ||
50 | 49 | | |||
51 | void itemAdded(const Akonadi::Item &item); | 50 | void itemAdded(const Akonadi::Item &item); | ||
52 | void itemRemoved(const Akonadi::Item &item); | 51 | void itemRemoved(const Akonadi::Item &item); | ||
53 | void itemChanged(const Akonadi::Item &items); | 52 | void itemChanged(const Akonadi::Item &items); | ||
54 | void itemMoved(const Akonadi::Item &item); | 53 | void itemMoved(const Akonadi::Item &item); | ||
55 | | ||||
56 | void tagAdded(const Akonadi::Tag &tag); | | |||
57 | void tagRemoved(const Akonadi::Tag &tag); | | |||
58 | void tagChanged(const Akonadi::Tag &tag); | | |||
59 | }; | 54 | }; | ||
60 | 55 | | |||
61 | } | 56 | } | ||
62 | 57 | | |||
63 | #endif // AKONADI_MONITORINTERFACE_H | 58 | #endif // AKONADI_MONITORINTERFACE_H |