diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 19:35:11 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 19:35:11 +0000 |
| commit | a6e4cd9f22be063120f45ca7249edb343b3ab27b (patch) | |
| tree | b4c92f3b85478609c7871f5120cfdbd47099a544 /examples/GuiClient/vCardCache.cpp | |
| parent | cbd5752bd5a1165e93edfad15bbbfac0ccebb81d (diff) | |
| download | qxmpp-a6e4cd9f22be063120f45ca7249edb343b3ab27b.tar.gz | |
add getPhotoHash
Diffstat (limited to 'examples/GuiClient/vCardCache.cpp')
| -rw-r--r-- | examples/GuiClient/vCardCache.cpp | 6 |
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); +} |
