diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-06-12 13:01:08 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-12 13:01:08 +0900 |
commit | 4ca479102d0a1313ee8307d6045d0e46d6aa67f9 (patch) | |
tree | 7bd1d9dee008be79c81528282a71ae5d675eebd0 /tdecore/tdeglobalsettings.h | |
parent | 29c4dd8212dacf80b03d2bfe7f604997f30ef7c8 (diff) | |
download | tdelibs-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.h | 27 |
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; |