diff options
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/clientapi.h b/common/clientapi.h index d496715..5ed99e0 100644 --- a/common/clientapi.h +++ b/common/clientapi.h | |||
@@ -31,6 +31,8 @@ | |||
31 | class QAbstractItemModel; | 31 | class QAbstractItemModel; |
32 | 32 | ||
33 | namespace Akonadi2 { | 33 | namespace Akonadi2 { |
34 | class ResourceAccess; | ||
35 | class ResourceNotification; | ||
34 | 36 | ||
35 | /** | 37 | /** |
36 | * Store interface used in the client API. | 38 | * Store interface used in the client API. |
@@ -136,6 +138,15 @@ namespace Resources { | |||
136 | KAsync::Job<void> inspect(const Inspection &inspectionCommand); | 138 | KAsync::Job<void> inspect(const Inspection &inspectionCommand); |
137 | } | 139 | } |
138 | 140 | ||
141 | class Notifier { | ||
142 | public: | ||
143 | Notifier(const QSharedPointer<ResourceAccess> &resourceAccess); | ||
144 | void registerHandler(std::function<void(const ResourceNotification &)>); | ||
145 | |||
146 | private: | ||
147 | class Private; | ||
148 | QScopedPointer<Private> d; | ||
149 | }; | ||
139 | 150 | ||
140 | } | 151 | } |
141 | 152 | ||