From 9aa1cf3fb9bb380f6f069fc539b037bfd3d07030 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 19 Jan 2016 11:47:03 +0100 Subject: ExisteneceInspection --- common/inspection.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'common') 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 { return inspection; } + static Inspection ExistenceInspection(const Akonadi2::ApplicationDomain::Entity &entity, bool exists) + { + Inspection inspection; + inspection.resourceIdentifier = entity.resourceInstanceIdentifier(); + inspection.entityIdentifier = entity.identifier(); + inspection.expectedValue = exists; + return inspection; + } + enum Type { - PropertyInspectionType + PropertyInspectionType, + ExistenceInspectionType }; QByteArray resourceIdentifier; QByteArray entityIdentifier; -- cgit v1.2.3