diff options
Diffstat (limited to 'common/clientapi.h')
-rw-r--r-- | common/clientapi.h | 21 |
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 | ||
31 | class QAbstractItemModel; | 32 | class QAbstractItemModel; |
@@ -114,26 +115,6 @@ public: | |||
114 | }; | 115 | }; |
115 | 116 | ||
116 | namespace Resources { | 117 | namespace 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 | } |