From a9bf4396088c2cc598e65654ae009c5e175db742 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 12 Jan 2020 20:44:36 +0900 Subject: Added support for XDG_PICTURES_DIR and XDG_TEMPLATES_DIR in TDE global settings. Signed-off-by: Michele Calgaro (cherry picked from commit aca6b3d42409234a19e2910443d511328c0b025a) --- kdecore/kglobalsettings.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'kdecore/kglobalsettings.h') diff --git a/kdecore/kglobalsettings.h b/kdecore/kglobalsettings.h index b4bf0497f..0ef6e1883 100644 --- a/kdecore/kglobalsettings.h +++ b/kdecore/kglobalsettings.h @@ -277,6 +277,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; -- cgit v1.2.1