diff options
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/vCardCache.cpp | 6 | ||||
| -rw-r--r-- | examples/GuiClient/vCardCache.h | 2 |
2 files changed, 8 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); +} diff --git a/examples/GuiClient/vCardCache.h b/examples/GuiClient/vCardCache.h index 9116142b..4abbd497 100644 --- a/examples/GuiClient/vCardCache.h +++ b/examples/GuiClient/vCardCache.h @@ -46,6 +46,8 @@ public: void loadFromFile(); + QByteArray getPhotoHash(const QString& bareJid) const; + signals: void vCardReadyToUse(const QString& bareJid); |
