diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-20 11:47:21 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-20 14:38:58 (GMT) |
commit | 6eb30e0e1f0a8e7ee936f3c006c7f710785653df (patch) | |
tree | 1e72dd6445d7d8d4e06f71c52299260a941a5be6 /Swiften/Application | |
parent | 6d50c38e2bc6a17afb19effe06d2103f06c8ea1c (diff) | |
download | swift-6eb30e0e1f0a8e7ee936f3c006c7f710785653df.zip swift-6eb30e0e1f0a8e7ee936f3c006c7f710785653df.tar.bz2 |
Added vCard-based avatars support.
Diffstat (limited to 'Swiften/Application')
-rw-r--r-- | Swiften/Application/Application.cpp | 4 | ||||
-rw-r--r-- | Swiften/Application/Application.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Application/Application.cpp b/Swiften/Application/Application.cpp index e21d9e7..6ffb46f 100644 --- a/Swiften/Application/Application.cpp +++ b/Swiften/Application/Application.cpp @@ -17,6 +17,10 @@ boost::filesystem::path Application::getSettingsFileName() const { return getSettingsDir() / "settings"; } +boost::filesystem::path Application::getAvatarDir() const { + return getSettingsDir() / "avatars"; +} + boost::filesystem::path Application::getHomeDir() const { // FIXME: Does this work on windows? char* homeDirRaw = getenv("HOME"); diff --git a/Swiften/Application/Application.h b/Swiften/Application/Application.h index 4fda7af..a65b1de 100644 --- a/Swiften/Application/Application.h +++ b/Swiften/Application/Application.h @@ -14,6 +14,7 @@ namespace Swift { virtual ~Application(); boost::filesystem::path getSettingsFileName() const; + boost::filesystem::path getAvatarDir() const; boost::filesystem::path getHomeDir() const; virtual boost::filesystem::path getSettingsDir() const = 0; boost::filesystem::path getProfileDir(const String& profile) const; |