summaryrefslogtreecommitdiffstats
path: root/app/file_operation.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-26 10:23:05 -0800
committerScott Murray <scott.murray@konsulko.com>2019-11-28 16:16:39 +0000
commit852ec71c8621044f05a01f2bfc1a44661bceedf6 (patch)
treeb9a04c9dea480f45ae7c64c5835b24154f65dd31 /app/file_operation.cpp
parent373728f8e6b9cb85dbeda18af5deee9960f94ba1 (diff)
tbtnavi: add qml invokable function for cache location
Bug-AGL: SPEC-2985 Change-Id: I5b412e968cac0d1034be35822de3bff70bb073c1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> (cherry picked from commit 87629ba85ac7ea6675d7d4ba7565d5ae15d156cb)
Diffstat (limited to 'app/file_operation.cpp')
-rw-r--r--app/file_operation.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/file_operation.cpp b/app/file_operation.cpp
index 8da7227..ff51b19 100644
--- a/app/file_operation.cpp
+++ b/app/file_operation.cpp
@@ -1,3 +1,4 @@
+#include <unistd.h>
#include "file_operation.h"
File_Operation::File_Operation(){
@@ -101,3 +102,14 @@ double File_Operation::getStartLongitude(){
QString File_Operation::getMapStyleUrls() {
return m_mapStyleUrls;
}
+
+QString File_Operation::getCachePath(QString name)
+{
+ QString path("/var/run/user/");
+
+ path.append(QString::number(getuid()));
+ path.append("/usrshr/cache/");
+ path.append(name);
+
+ return path;
+}