diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
commit | 4d9746c828558c9f872e0aed52442863affb25d5 (patch) | |
tree | 507d7c2ba67f47d3cbbcf01a722236ff1b48426b /common/store.h | |
parent | 9cea920b7dd51867a0be0fed2f461b6be73c103e (diff) | |
download | sink-4d9746c828558c9f872e0aed52442863affb25d5.tar.gz sink-4d9746c828558c9f872e0aed52442863affb25d5.zip |
Fromatted the whole codebase with clang-format.
clang-format -i */**{.cpp,.h}
Diffstat (limited to 'common/store.h')
-rw-r--r-- | common/store.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/common/store.h b/common/store.h index 6696833..af8e971 100644 --- a/common/store.h +++ b/common/store.h | |||
@@ -35,7 +35,7 @@ namespace Sink { | |||
35 | 35 | ||
36 | /** | 36 | /** |
37 | * The unified Sink Store. | 37 | * The unified Sink Store. |
38 | * | 38 | * |
39 | * This is the primary interface for clients to interact with Sink. | 39 | * This is the primary interface for clients to interact with Sink. |
40 | * It provides a unified store where all data provided by various resources can be accessed and modified. | 40 | * It provides a unified store where all data provided by various resources can be accessed and modified. |
41 | */ | 41 | */ |
@@ -43,8 +43,9 @@ namespace Store { | |||
43 | 43 | ||
44 | QString SINK_EXPORT storageLocation(); | 44 | QString SINK_EXPORT storageLocation(); |
45 | 45 | ||
46 | enum Roles { | 46 | enum Roles |
47 | DomainObjectRole = Qt::UserRole + 1, //Must be the same as in ModelResult | 47 | { |
48 | DomainObjectRole = Qt::UserRole + 1, // Must be the same as in ModelResult | ||
48 | ChildrenFetchedRole, | 49 | ChildrenFetchedRole, |
49 | DomainObjectBaseRole | 50 | DomainObjectBaseRole |
50 | }; | 51 | }; |
@@ -63,7 +64,7 @@ KAsync::Job<void> SINK_EXPORT create(const DomainType &domainObject); | |||
63 | 64 | ||
64 | /** | 65 | /** |
65 | * Modify an entity. | 66 | * Modify an entity. |
66 | * | 67 | * |
67 | * This includes moving etc. since these are also simple settings on a property. | 68 | * This includes moving etc. since these are also simple settings on a property. |
68 | */ | 69 | */ |
69 | template <class DomainType> | 70 | template <class DomainType> |
@@ -82,7 +83,7 @@ KAsync::Job<void> SINK_EXPORT synchronize(const Sink::Query &query); | |||
82 | 83 | ||
83 | /** | 84 | /** |
84 | * Removes all resource data from disk. | 85 | * Removes all resource data from disk. |
85 | * | 86 | * |
86 | * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed. | 87 | * This will not touch the configuration. All commands that that arrived at the resource before this command will be dropped. All commands that arrived later will be executed. |
87 | */ | 88 | */ |
88 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); | 89 | KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); |
@@ -91,11 +92,9 @@ template <class DomainType> | |||
91 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); | 92 | KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); |
92 | 93 | ||
93 | template <class DomainType> | 94 | template <class DomainType> |
94 | KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetchAll(const Sink::Query &query); | 95 | KAsync::Job<QList<typename DomainType::Ptr>> SINK_EXPORT fetchAll(const Sink::Query &query); |
95 | 96 | ||
96 | template <class DomainType> | 97 | template <class DomainType> |
97 | KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); | 98 | KAsync::Job<QList<typename DomainType::Ptr>> SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); |
98 | 99 | } | |
99 | } | ||
100 | } | 100 | } |
101 | |||