summaryrefslogtreecommitdiffstats
path: root/common/clientapi.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-19 09:52:40 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-19 09:52:40 +0100
commite7ddc02bce5b4e46b44e3cb39c06ed25dc291c0a (patch)
tree5ade33a7647941d536d652623a0a36633768620c /common/clientapi.h
parentdb48154e47a9f611b7d3dceb195b14a8953e7abb (diff)
downloadsink-e7ddc02bce5b4e46b44e3cb39c06ed25dc291c0a.tar.gz
sink-e7ddc02bce5b4e46b44e3cb39c06ed25dc291c0a.zip
Prepared maildir inspection implementation
Diffstat (limited to 'common/clientapi.h')
-rw-r--r--common/clientapi.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/common/clientapi.h b/common/clientapi.h
index 5ed99e0..14caa7a 100644
--- a/common/clientapi.h
+++ b/common/clientapi.h
@@ -26,6 +26,7 @@
26#include <Async/Async> 26#include <Async/Async>
27 27
28#include "query.h" 28#include "query.h"
29#include "inspection.h"
29#include "applicationdomaintype.h" 30#include "applicationdomaintype.h"
30 31
31class QAbstractItemModel; 32class QAbstractItemModel;
@@ -114,26 +115,6 @@ public:
114}; 115};
115 116
116namespace Resources { 117namespace Resources {
117 struct Inspection {
118 static Inspection PropertyInspection(const Akonadi2::ApplicationDomain::Entity &entity, const QByteArray &property, const QVariant &expectedValue)
119 {
120 Inspection inspection;
121 inspection.resourceIdentifier = entity.resourceInstanceIdentifier();
122 inspection.entityIdentifier = entity.identifier();
123 inspection.property = property;
124 inspection.expectedValue = expectedValue;
125 return inspection;
126 }
127
128 enum Type {
129 PropertyInspectionType
130 };
131
132 QByteArray resourceIdentifier;
133 QByteArray entityIdentifier;
134 QByteArray property;
135 QVariant expectedValue;
136 };
137 template <class DomainType> 118 template <class DomainType>
138 KAsync::Job<void> inspect(const Inspection &inspectionCommand); 119 KAsync::Job<void> inspect(const Inspection &inspectionCommand);
139} 120}