diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-03-12 11:45:16 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-03-12 11:45:16 (GMT) |
commit | 1e2722460b9a67713484903bf6382d08f7e09278 (patch) | |
tree | bbce2e9524f927c754ddfedd99f0b9444273c8ff /Swiften/VCards/VCardStorage.h | |
parent | 137d42c7081fc31deb76446b2f6ef72ae21eeff5 (diff) | |
download | swift-contrib-1e2722460b9a67713484903bf6382d08f7e09278.zip swift-contrib-1e2722460b9a67713484903bf6382d08f7e09278.tar.bz2 |
Moved vcard photo hash management into vcard storage.
This makes it easy to adapt the code to cache photo hashes if we want to.
Diffstat (limited to 'Swiften/VCards/VCardStorage.h')
-rw-r--r-- | Swiften/VCards/VCardStorage.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/VCards/VCardStorage.h b/Swiften/VCards/VCardStorage.h index 854ccc6..977a40c 100644 --- a/Swiften/VCards/VCardStorage.h +++ b/Swiften/VCards/VCardStorage.h @@ -6,9 +6,10 @@ #pragma once +#include <string> #include <boost/shared_ptr.hpp> -#include "Swiften/Elements/VCard.h" +#include <Swiften/Elements/VCard.h> namespace Swift { class JID; @@ -19,5 +20,7 @@ namespace Swift { virtual VCard::ref getVCard(const JID& jid) const = 0; virtual void setVCard(const JID&, VCard::ref) = 0; + + virtual std::string getPhotoHash(const JID&) const; }; } |