X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17af82fb4c8f830f202567259472645c27724c32..75aa19469b8b31ae58d6e8956b0e4c7200e30578:/include/wx/stdpaths.h?ds=sidebyside diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index 1be4077d65..7828b69e62 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -43,6 +43,11 @@ public: // return the global standard paths object static wxStandardPathsBase& Get(); + // return the path (directory+filename) of the running executable or + // wxEmptyString if it couldn't be determined. + // The path is returned as an absolute path whenever possible. + // Default implementation only try to use wxApp->argv[0]. + virtual wxString GetExecutablePath() const; // return the directory with system config files: // /etc under Unix, c:\Documents and Settings\All Users\Application Data @@ -117,6 +122,9 @@ public: // $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(); @@ -149,6 +157,8 @@ class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase public: void SetInstallPrefix(const wxString& prefix) { m_prefix = prefix; } wxString GetInstallPrefix() const { return m_prefix; } + + virtual wxString GetExecutablePath() const { return m_prefix; } virtual wxString GetConfigDir() const { return m_prefix; } virtual wxString GetUserConfigDir() const { return m_prefix; } virtual wxString GetDataDir() const { return m_prefix; }