summaryrefslogtreecommitdiffstats
path: root/tdecore/tdeglobalsettings.h
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-06-12 13:01:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-06-12 13:01:08 +0900
commit4ca479102d0a1313ee8307d6045d0e46d6aa67f9 (patch)
tree7bd1d9dee008be79c81528282a71ae5d675eebd0 /tdecore/tdeglobalsettings.h
parent29c4dd8212dacf80b03d2bfe7f604997f30ef7c8 (diff)
downloadtdelibs-4ca479102d0a1313ee8307d6045d0e46d6aa67f9.tar.gz
tdelibs-4ca479102d0a1313ee8307d6045d0e46d6aa67f9.zip
Added support for XDG directories: music, pictures, videos, download.
This relates to bug 1499.
Diffstat (limited to 'tdecore/tdeglobalsettings.h')
-rw-r--r--tdecore/tdeglobalsettings.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tdecore/tdeglobalsettings.h b/tdecore/tdeglobalsettings.h
index ec286d2e4..1570dc5a5 100644
--- a/tdecore/tdeglobalsettings.h
+++ b/tdecore/tdeglobalsettings.h
@@ -253,6 +253,29 @@ class TDECORE_EXPORT TDEGlobalSettings
*/
static TQString documentPath() { initStatic(); return *s_documentPath; }
+ /**
+ * The path where documents are stored of the current user.
+ * @return the path of the videos directory
+ */
+ static TQString videosPath() { initStatic(); return *s_videosPath; }
+
+ /**
+ * The path where documents are stored of the current user.
+ * @return the path of the music directory
+ */
+ static TQString musicPath() { initStatic(); return *s_musicPath; }
+
+ /**
+ * The path where documents are stored of the current user.
+ * @return the path of the downloads directory
+ */
+ static TQString downloadPath() { initStatic(); return *s_downloadPath; }
+
+ /**
+ * The path where documents are stored of the current user.
+ * @return the path of the pictures directory
+ */
+ static TQString picturesPath() { initStatic(); return *s_picturesPath; }
/**
* The default color to use when highlighting toolbar buttons.
@@ -560,6 +583,10 @@ private:
static TQString* s_autostartPath;
static TQString* s_trashPath;
static TQString* s_documentPath;
+ static TQString* s_picturesPath;
+ static TQString* s_downloadPath;
+ static TQString* s_musicPath;
+ static TQString* s_videosPath;
static TQFont *_generalFont;
static TQFont *_fixedFont;
static TQFont *_toolBarFont;