summaryrefslogtreecommitdiffstats
path: root/common/store.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-10 10:55:56 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-04-10 10:55:56 +0200
commit5adfceae08872b9d7f143d8b9464578fb8e43a69 (patch)
treec57dd610148cc7c42ebbfd50490d71d94cfd3beb /common/store.h
parent6b5ec926275ec3d0431ce74c5c5af905f407aa24 (diff)
downloadsink-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.h9
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
44QString SINK_EXPORT storageLocation(); 44QString SINK_EXPORT storageLocation();
45 45
46/**
47 * Returns a unique path for a writable file that can be used to write BLOB properties.
48 */
49QString SINK_EXPORT getTemporaryFilePath();
50
46enum Roles 51enum 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*/
56template <class DomainType> 61template <class DomainType>
57QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query); 62QSharedPointer<QAbstractItemModel> SINK_EXPORT loadModel(Query query);
58 63