summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/store.cpp b/common/store.cpp
index 4bf1c58..700263b 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -22,6 +22,7 @@
22 22
23#include <QTime> 23#include <QTime>
24#include <QAbstractItemModel> 24#include <QAbstractItemModel>
25#include <QUuid>
25#include <functional> 26#include <functional>
26#include <memory> 27#include <memory>
27 28
@@ -45,6 +46,11 @@ QString Store::storageLocation()
45 return Sink::storageLocation(); 46 return Sink::storageLocation();
46} 47}
47 48
49QString Store::getTemporaryFilePath()
50{
51 return Sink::temporaryFileLocation() + "/" + QUuid::createUuid().toString();
52}
53
48static QList<QByteArray> getResources(const QList<QByteArray> &resourceFilter, const QByteArray &type = QByteArray()) 54static QList<QByteArray> getResources(const QList<QByteArray> &resourceFilter, const QByteArray &type = QByteArray())
49{ 55{
50 // Return the global resource (signified by an empty name) for types that don't belong to a specific resource 56 // Return the global resource (signified by an empty name) for types that don't belong to a specific resource