summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-09-15 16:40:20 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-09-15 16:41:16 (GMT)
commitc0ea59aed73b5425ad78e6bdb6f8f12e2b44567e (patch)
treebc111c071c92911d7e9745c86c8cdfac69cd64e7 /Swiften
parent3c45ed7c3b62609824c0ea50f1ce9c00bbe00849 (diff)
downloadswift-contrib-c0ea59aed73b5425ad78e6bdb6f8f12e2b44567e.zip
swift-contrib-c0ea59aed73b5425ad78e6bdb6f8f12e2b44567e.tar.bz2
Added Snarl notification support
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Avatars/AvatarMemoryStorage.h4
-rw-r--r--Swiften/Avatars/DummyAvatarManager.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Avatars/AvatarMemoryStorage.h b/Swiften/Avatars/AvatarMemoryStorage.h
index 13fbd9b..6f1ba49 100644
--- a/Swiften/Avatars/AvatarMemoryStorage.h
+++ b/Swiften/Avatars/AvatarMemoryStorage.h
@@ -22,8 +22,8 @@ namespace Swift {
return i == avatars.end() ? ByteArray() : i->second;
}
- virtual boost::filesystem::path getAvatarPath(const String& /*hash*/) const {
- return boost::filesystem::path();
+ virtual boost::filesystem::path getAvatarPath(const String& hash) const {
+ return boost::filesystem::path("/avatars") / hash.getUTF8String();
}
private:
diff --git a/Swiften/Avatars/DummyAvatarManager.h b/Swiften/Avatars/DummyAvatarManager.h
index db63b05..ec5068e 100644
--- a/Swiften/Avatars/DummyAvatarManager.h
+++ b/Swiften/Avatars/DummyAvatarManager.h
@@ -13,8 +13,8 @@
namespace Swift {
class DummyAvatarManager : public AvatarManager {
public:
- virtual boost::filesystem::path getAvatarPath(const JID&) const {
- return boost::filesystem::path();
+ virtual boost::filesystem::path getAvatarPath(const JID& j) const {
+ return boost::filesystem::path("/avatars") / j.toString().getUTF8String();
}
virtual ByteArray getAvatar(const JID& jid) const {