diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-19 11:47:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-19 11:47:03 +0100 |
commit | 9aa1cf3fb9bb380f6f069fc539b037bfd3d07030 (patch) | |
tree | 6c206f8af96b2c9ce5becca6f0712a8d3fafdc95 /common | |
parent | 9e539844bb62fd8bcc4a8e423205ea4a15a1c15e (diff) | |
download | sink-9aa1cf3fb9bb380f6f069fc539b037bfd3d07030.tar.gz sink-9aa1cf3fb9bb380f6f069fc539b037bfd3d07030.zip |
ExisteneceInspection
Diffstat (limited to 'common')
-rw-r--r-- | common/inspection.h | 12 |
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; |