aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/vCardCache.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 11:19:00 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 11:19:00 +0000
commita6eead7cb98e59045ec513889a86c715abb06188 (patch)
treec6c1f3d1a09e3f13e05f510d9ab5d2beb89591de /examples/GuiClient/vCardCache.cpp
parent1a5119d7aa3c1ba765e45de71287ab6d125c5767 (diff)
downloadqxmpp-a6eead7cb98e59045ec513889a86c715abb06188.tar.gz
refactor vCardCache
Diffstat (limited to 'examples/GuiClient/vCardCache.cpp')
-rw-r--r--examples/GuiClient/vCardCache.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/GuiClient/vCardCache.cpp b/examples/GuiClient/vCardCache.cpp
index f5915bd1..9c0c18d0 100644
--- a/examples/GuiClient/vCardCache.cpp
+++ b/examples/GuiClient/vCardCache.cpp
@@ -42,11 +42,9 @@ vCardCache::vCardCache(QXmppClient* client) : QObject(client),
void vCardCache::vCardReceived(const QXmppVCardIq& vcard)
{
QString from = vcard.from();
+
if(from.isEmpty() && m_client)
- {
from = m_client->configuration().jidBare();
- m_selfFullName = vcard.fullName();
- }
m_mapBareJidVcard[from] = vcard;
@@ -126,11 +124,6 @@ void vCardCache::loadAllFromCache()
}
}
-QString vCardCache::getSelfFullName()
-{
- return m_selfFullName;
-}
-
// this should return scaled image
QImage vCardCache::getAvatar(const QString& bareJid) const
{