summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-18 18:36:41 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-18 18:36:41 +0100
commit67e83aadde8db2bb1293cee61e8c6306a4ffcca0 (patch)
tree10531201cb5dca7617e17a4e4393bda20694c4ca /common/clientapi.h
parenta857d9b36f80adf045cd195653cb2f8b91452981 (diff)
downloadsink-67e83aadde8db2bb1293cee61e8c6306a4ffcca0.tar.gz
sink-67e83aadde8db2bb1293cee61e8c6306a4ffcca0.zip
Working resource inspection
Diffstat (limited to 'common/clientapi.h')
-rw-r--r--common/clientapi.h11
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 @@
31class QAbstractItemModel; 31class QAbstractItemModel;
32 32
33namespace Akonadi2 { 33namespace Akonadi2 {
34class ResourceAccess;
35class 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
141class Notifier {
142public:
143 Notifier(const QSharedPointer<ResourceAccess> &resourceAccess);
144 void registerHandler(std::function<void(const ResourceNotification &)>);
145
146private:
147 class Private;
148 QScopedPointer<Private> d;
149};
139 150
140} 151}
141 152