summaryrefslogtreecommitdiffstats
path: root/tdecore/tdeglobalsettings.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-12 20:44:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-12 20:44:36 +0900
commitaca6b3d42409234a19e2910443d511328c0b025a (patch)
tree09d97a2cb8289e7f763e5525acbffd33c392b5d5 /tdecore/tdeglobalsettings.h
parent3a4f7f51cfb88ab6b34918e8f79dea027d02b411 (diff)
downloadtdelibs-aca6b3d42409234a19e2910443d511328c0b025a.tar.gz
tdelibs-aca6b3d42409234a19e2910443d511328c0b025a.zip
Added support for XDG_PICTURES_DIR and XDG_TEMPLATES_DIR in TDE global settings.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdeglobalsettings.h')
-rw-r--r--tdecore/tdeglobalsettings.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tdecore/tdeglobalsettings.h b/tdecore/tdeglobalsettings.h
index 1570dc5a5..18b59fc12 100644
--- a/tdecore/tdeglobalsettings.h
+++ b/tdecore/tdeglobalsettings.h
@@ -278,6 +278,18 @@ class TDECORE_EXPORT TDEGlobalSettings
static TQString picturesPath() { initStatic(); return *s_picturesPath; }
/**
+ * The path where templates are stored of the current user.
+ * @return the path of the templates directory
+ */
+ static TQString templatesPath() { initStatic(); return *s_templatesPath; }
+
+ /**
+ * The path of the public share of the current user.
+ * @return the path of the public share directory
+ */
+ static TQString publicSharePath() { initStatic(); return *s_publicSharePath; }
+
+ /**
* The default color to use when highlighting toolbar buttons.
* @return the toolbar highlight color
*/
@@ -584,6 +596,8 @@ private:
static TQString* s_trashPath;
static TQString* s_documentPath;
static TQString* s_picturesPath;
+ static TQString* s_templatesPath;
+ static TQString* s_publicSharePath;
static TQString* s_downloadPath;
static TQString* s_musicPath;
static TQString* s_videosPath;