diff options
Diffstat (limited to 'Swiften/Avatars/AvatarManager.h')
-rw-r--r-- | Swiften/Avatars/AvatarManager.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Swiften/Avatars/AvatarManager.h b/Swiften/Avatars/AvatarManager.h index 0085405..13c6cb7 100644 --- a/Swiften/Avatars/AvatarManager.h +++ b/Swiften/Avatars/AvatarManager.h @@ -12,13 +12,14 @@ #include "Swiften/Elements/Error.h" namespace Swift { + class MUCRegistry; class AvatarStorage; class StanzaChannel; class IQRouter; class AvatarManager { public: - AvatarManager(StanzaChannel*, IQRouter*, AvatarStorage*); + AvatarManager(StanzaChannel*, IQRouter*, AvatarStorage*, MUCRegistry*); String getAvatarHash(const JID&) const; boost::filesystem::path getAvatarPath(const JID&) const; @@ -28,12 +29,15 @@ namespace Swift { private: void handlePresenceReceived(boost::shared_ptr<Presence>); - void handleVCardReceived(JID from, boost::shared_ptr<VCard>, const boost::optional<Error>&); + void handleVCardReceived(const JID& from, const String& hash, boost::shared_ptr<VCard>, const boost::optional<Error>&); + void setAvatarHash(const JID& from, const String& hash); + JID getAvatarJID(const JID& o) const; private: StanzaChannel* stanzaChannel_; IQRouter* iqRouter_; AvatarStorage* avatarStorage_; + MUCRegistry* mucRegistry_; std::map<JID, String> avatarHashes_; }; } |