diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
commit | e49bc0460be4b94904b6e965845fb8f228672379 (patch) | |
tree | b435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/MacOSX | |
parent | d9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff) | |
download | swift-e49bc0460be4b94904b6e965845fb8f228672379.zip swift-e49bc0460be4b94904b6e965845fb8f228672379.tar.bz2 |
Moved platform-specific stuff out of Application.
Diffstat (limited to 'Swiften/Application/MacOSX')
-rw-r--r-- | Swiften/Application/MacOSX/MacOSXApplication.cpp | 4 | ||||
-rw-r--r-- | Swiften/Application/MacOSX/MacOSXApplication.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Application/MacOSX/MacOSXApplication.cpp b/Swiften/Application/MacOSX/MacOSXApplication.cpp index 1df2bfa..79d7586 100644 --- a/Swiften/Application/MacOSX/MacOSXApplication.cpp +++ b/Swiften/Application/MacOSX/MacOSXApplication.cpp @@ -15,4 +15,8 @@ boost::filesystem::path MacOSXApplication::getSettingsDir() const { return result; } +boost::filesystem::path MacOSXApplication::getHomeDir() const { + return boost::filesystem::path(getenv("HOME")); +} + } diff --git a/Swiften/Application/MacOSX/MacOSXApplication.h b/Swiften/Application/MacOSX/MacOSXApplication.h index 9e77c54..e408ffd 100644 --- a/Swiften/Application/MacOSX/MacOSXApplication.h +++ b/Swiften/Application/MacOSX/MacOSXApplication.h @@ -11,6 +11,7 @@ namespace Swift { public: MacOSXApplication(const String& name); + virtual boost::filesystem::path getHomeDir() const; virtual ApplicationMessageDisplay* getApplicationMessageDisplay(); boost::filesystem::path getSettingsDir() const; |