aboutsummaryrefslogtreecommitdiffstats
path: root/app/file_operation.cpp
diff options
context:
space:
mode:
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;
+}