summaryrefslogtreecommitdiffstats
path: root/kdecore/kglobalsettings.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-12 20:44:36 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-03 17:37:46 +0100
commita9bf4396088c2cc598e65654ae009c5e175db742 (patch)
tree13fa1cd3df1e14d217afa23761a7331d636ff6f3 /kdecore/kglobalsettings.h
parentfb65a4b2125e377acdf11080c6086154fddf16ac (diff)
downloadtdelibs-a9bf4396088c2cc598e65654ae009c5e175db742.tar.gz
tdelibs-a9bf4396088c2cc598e65654ae009c5e175db742.zip
Added support for XDG_PICTURES_DIR and XDG_TEMPLATES_DIR in TDE global settings.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit aca6b3d42409234a19e2910443d511328c0b025a)
Diffstat (limited to 'kdecore/kglobalsettings.h')
-rw-r--r--kdecore/kglobalsettings.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kdecore/kglobalsettings.h b/kdecore/kglobalsettings.h
index b4bf0497f..0ef6e1883 100644
--- a/kdecore/kglobalsettings.h
+++ b/kdecore/kglobalsettings.h
@@ -278,6 +278,18 @@ class KDECORE_EXPORT KGlobalSettings
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;