summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
commite49bc0460be4b94904b6e965845fb8f228672379 (patch)
treeb435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/MacOSX
parentd9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff)
downloadswift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.zip
swift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.tar.bz2
Moved platform-specific stuff out of Application.
Diffstat (limited to 'Swiften/Application/MacOSX')
-rw-r--r--Swiften/Application/MacOSX/MacOSXApplication.cpp4
-rw-r--r--Swiften/Application/MacOSX/MacOSXApplication.h1
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;