summaryrefslogtreecommitdiffstats
path: root/common/inspection.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/inspection.h')
-rw-r--r--common/inspection.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/common/inspection.h b/common/inspection.h
index 45d599a..ecf5b3d 100644
--- a/common/inspection.h
+++ b/common/inspection.h
@@ -37,8 +37,18 @@ struct Inspection {
37 return inspection; 37 return inspection;
38 } 38 }
39 39
40 static Inspection ExistenceInspection(const Akonadi2::ApplicationDomain::Entity &entity, bool exists)
41 {
42 Inspection inspection;
43 inspection.resourceIdentifier = entity.resourceInstanceIdentifier();
44 inspection.entityIdentifier = entity.identifier();
45 inspection.expectedValue = exists;
46 return inspection;
47 }
48
40 enum Type { 49 enum Type {
41 PropertyInspectionType 50 PropertyInspectionType,
51 ExistenceInspectionType
42 }; 52 };
43 QByteArray resourceIdentifier; 53 QByteArray resourceIdentifier;
44 QByteArray entityIdentifier; 54 QByteArray entityIdentifier;