diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-10 10:55:56 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-04-10 10:55:56 +0200 |
commit | 5adfceae08872b9d7f143d8b9464578fb8e43a69 (patch) | |
tree | c57dd610148cc7c42ebbfd50490d71d94cfd3beb /common/store.h | |
parent | 6b5ec926275ec3d0431ce74c5c5af905f407aa24 (diff) | |
download | sink-5adfceae08872b9d7f143d8b9464578fb8e43a69.tar.gz sink-5adfceae08872b9d7f143d8b9464578fb8e43a69.zip |
Allow clients to request a temporary file for BLOB properties
Diffstat (limited to 'common/store.h')
-rw-r--r-- | common/store.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/store.h b/common/store.h index af8e971..aed3be4 100644 --- a/common/store.h +++ b/common/store.h | |||
@@ -43,6 +43,11 @@ namespace Store { | |||
43 | 43 | ||
44 | QString SINK_EXPORT storageLocation(); | 44 | QString SINK_EXPORT storageLocation(); |
45 | 45 | ||
46 | /** | ||
47 | * Returns a unique path for a writable file that can be used to write BLOB properties. | ||
48 | */ | ||
49 | QString SINK_EXPORT getTemporaryFilePath(); | ||
50 | |||
46 | enum Roles | 51 | enum Roles |
47 | { | 52 | { |
48 | DomainObjectRole = Qt::UserRole + 1, // Must be the same as in ModelResult | 53 | DomainObjectRole = Qt::UserRole + 1, // Must be the same as in ModelResult |
@@ -51,8 +56,8 @@ enum Roles | |||
51 | }; | 56 | }; |
52 | 57 | ||
53 | /** | 58 | /** |
54 | * Asynchronusly load a dataset with tree structure information | 59 | * Asynchronusly load a dataset with tree structure information |
55 | */ | 60 | */ |
56 | template <class DomainType> | 61 | template <class DomainType> |
57 | QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query); | 62 | QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query); |
58 | 63 | ||