summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-11 20:22:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-11 22:22:04 (GMT)
commit59aa5d7e29ca142ae324ad97e6a5f0353d1a6b89 (patch)
treee450b95ff4c0ba7f770723402a2634773f1a0451 /Swiften/Avatars/AvatarStorage.h
parent3ff52013d810f94b6095e93f550f58133e2df239 (diff)
downloadswift-59aa5d7e29ca142ae324ad97e6a5f0353d1a6b89.zip
swift-59aa5d7e29ca142ae324ad97e6a5f0353d1a6b89.tar.bz2
Store JID->Avatar mappings.
Resolves: #653
Diffstat (limited to 'Swiften/Avatars/AvatarStorage.h')
-rw-r--r--Swiften/Avatars/AvatarStorage.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/Avatars/AvatarStorage.h b/Swiften/Avatars/AvatarStorage.h
index 826a648..48fc885 100644
--- a/Swiften/Avatars/AvatarStorage.h
+++ b/Swiften/Avatars/AvatarStorage.h
@@ -7,9 +7,10 @@
#pragma once
#include <boost/filesystem.hpp>
+#include <string>
namespace Swift {
-
+ class JID;
class ByteArray;
class AvatarStorage {
@@ -20,6 +21,9 @@ namespace Swift {
virtual void addAvatar(const std::string& hash, const ByteArray& avatar) = 0;
virtual ByteArray getAvatar(const std::string& hash) const = 0;
virtual boost::filesystem::path getAvatarPath(const std::string& hash) const = 0;
+
+ virtual void setAvatarForJID(const JID& jid, const std::string& hash) = 0;
+ virtual std::string getAvatarForJID(const JID& jid) const = 0;
};
}