X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c94336825149d5f329eaea77ba32ae5b5fd3a31..ce4b7808ca940be201422a066de141ca12f13863:/include/wx/stdpaths.h diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index d0b9dee54d..80d3a8e89d 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -17,6 +17,7 @@ #if wxUSE_STDPATHS #include "wx/string.h" +#include "wx/filefn.h" // ---------------------------------------------------------------------------- // wxStandardPaths returns the standard locations in the file system @@ -110,6 +111,15 @@ public: return GetResourcesDir() + wxFILE_SEP_PATH + lang; } + // return the "Documents" directory for the current user + // + // C:\Documents and Settings\username\Documents under Windows, + // $HOME under Unix and ~/Documents under Mac + virtual wxString GetDocumentsDir() const; + + // return the temporary directory for the current user + virtual wxString GetTempDir() const; + // virtual dtor for the base class virtual ~wxStandardPathsBase(); @@ -148,6 +158,7 @@ public: virtual wxString GetLocalDataDir() const { return m_prefix; } virtual wxString GetUserDataDir() const { return m_prefix; } virtual wxString GetPluginsDir() const { return m_prefix; } + virtual wxString GetDocumentsDir() const { return m_prefix; } private: wxString m_prefix;