diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 10:46:47 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-12 10:46:47 +0100 |
commit | 7d4784db80284874cd5b7e8e9f1c8694f6985b90 (patch) | |
tree | 0cc70a3ea1eb066ad1c146f42cad42a844ff12cd /common/store.h | |
parent | bb529848d4f7037ca92707b4dedbf40ae9c3d673 (diff) | |
download | sink-7d4784db80284874cd5b7e8e9f1c8694f6985b90.tar.gz sink-7d4784db80284874cd5b7e8e9f1c8694f6985b90.zip |
Modifications for multiple entities.
This allows to apply a modification to all entities matching some query.
Diffstat (limited to 'common/store.h')
-rw-r--r-- | common/store.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/store.h b/common/store.h index d2ab9b5..f787a3e 100644 --- a/common/store.h +++ b/common/store.h | |||
@@ -76,12 +76,24 @@ template <class DomainType> | |||
76 | KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject); | 76 | KAsync::Job<void> SINK_EXPORT modify(const DomainType &domainObject); |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Modify a set of entities identified by @param query. | ||
80 | */ | ||
81 | template <class DomainType> | ||
82 | KAsync::Job<void> SINK_EXPORT modify(const Query &query, const DomainType &domainObject); | ||
83 | |||
84 | /** | ||
79 | * Remove an entity. | 85 | * Remove an entity. |
80 | */ | 86 | */ |
81 | template <class DomainType> | 87 | template <class DomainType> |
82 | KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject); | 88 | KAsync::Job<void> SINK_EXPORT remove(const DomainType &domainObject); |
83 | 89 | ||
84 | /** | 90 | /** |
91 | * Remove a set of entities identified by @param query. | ||
92 | */ | ||
93 | template <class DomainType> | ||
94 | KAsync::Job<void> SINK_EXPORT remove(const Query &query); | ||
95 | |||
96 | /** | ||
85 | * Move an entity to a new resource. | 97 | * Move an entity to a new resource. |
86 | */ | 98 | */ |
87 | template <class DomainType> | 99 | template <class DomainType> |