summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Avatars/VCardUpdateAvatarManager.h')
-rw-r--r--Swiften/Avatars/VCardUpdateAvatarManager.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/Swiften/Avatars/VCardUpdateAvatarManager.h b/Swiften/Avatars/VCardUpdateAvatarManager.h
index e29db1c..2220906 100644
--- a/Swiften/Avatars/VCardUpdateAvatarManager.h
+++ b/Swiften/Avatars/VCardUpdateAvatarManager.h
@@ -6,12 +6,10 @@
#pragma once
-#include <boost/filesystem.hpp>
#include <boost/shared_ptr.hpp>
-#include <boost/optional.hpp>
#include <map>
-#include "Swiften/Base/boost_bsignals.h"
+#include "Swiften/Avatars/AvatarProvider.h"
#include "Swiften/JID/JID.h"
#include "Swiften/Elements/Presence.h"
#include "Swiften/Elements/VCard.h"
@@ -23,15 +21,12 @@ namespace Swift {
class StanzaChannel;
class VCardManager;
- class VCardUpdateAvatarManager {
+ class VCardUpdateAvatarManager : public AvatarProvider {
public:
VCardUpdateAvatarManager(VCardManager*, StanzaChannel*, AvatarStorage*, MUCRegistry* = NULL);
virtual ~VCardUpdateAvatarManager();
- virtual boost::filesystem::path getAvatarPath(const JID&) const;
-
- public:
- boost::signal<void (const JID&, const String& /*hash*/)> onAvatarChanged;
+ String getAvatarHash(const JID&) const;
private:
void handlePresenceReceived(boost::shared_ptr<Presence>);
@@ -39,7 +34,6 @@ namespace Swift {
void handleVCardChanged(const JID& from, VCard::ref);
void setAvatarHash(const JID& from, const String& hash);
JID getAvatarJID(const JID& o) const;
- String getAvatarHash(const JID&) const;
private:
VCardManager* vcardManager_;