summaryrefslogtreecommitdiffstats
path: root/common/store.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 09:01:05 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 09:01:05 +0100
commit4d9746c828558c9f872e0aed52442863affb25d5 (patch)
tree507d7c2ba67f47d3cbbcf01a722236ff1b48426b /common/store.h
parent9cea920b7dd51867a0be0fed2f461b6be73c103e (diff)
downloadsink-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.h19
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
44QString SINK_EXPORT storageLocation(); 44QString SINK_EXPORT storageLocation();
45 45
46enum Roles { 46enum 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 */
69template <class DomainType> 70template <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 */
88KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier); 89KAsync::Job<void> SINK_EXPORT removeDataFromDisk(const QByteArray &resourceIdentifier);
@@ -91,11 +92,9 @@ template <class DomainType>
91KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query); 92KAsync::Job<DomainType> SINK_EXPORT fetchOne(const Sink::Query &query);
92 93
93template <class DomainType> 94template <class DomainType>
94KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetchAll(const Sink::Query &query); 95KAsync::Job<QList<typename DomainType::Ptr>> SINK_EXPORT fetchAll(const Sink::Query &query);
95 96
96template <class DomainType> 97template <class DomainType>
97KAsync::Job<QList<typename DomainType::Ptr> > SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0); 98KAsync::Job<QList<typename DomainType::Ptr>> SINK_EXPORT fetch(const Sink::Query &query, int minimumAmount = 0);
98 99}
99 }
100} 100}
101