From a6e4cd9f22be063120f45ca7249edb343b3ab27b Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Wed, 13 Oct 2010 19:35:11 +0000 Subject: add getPhotoHash --- examples/GuiClient/vCardCache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/GuiClient/vCardCache.cpp') 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); +} -- cgit v1.2.3