aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/vCardCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/GuiClient/vCardCache.cpp')
-rw-r--r--examples/GuiClient/vCardCache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/GuiClient/vCardCache.cpp b/examples/GuiClient/vCardCache.cpp
index 85c91993..49396f35 100644
--- a/examples/GuiClient/vCardCache.cpp
+++ b/examples/GuiClient/vCardCache.cpp
@@ -132,3 +132,9 @@ QImage vCardCache::getAvatar(const QString& bareJid) const
else
return QImage();
}
+
+QByteArray vCardCache::getPhotoHash(const QString& bareJid) const
+{
+ return QCryptographicHash::hash(m_mapBareJidVcard[bareJid].photo(),
+ QCryptographicHash::Sha1);
+}