Fixes: Cannot fetch avatars from IM accounts
authorAdrien Bustany <adrien.bustany@nokia.com>
Wed, 6 Oct 2010 08:02:30 +0000 (11:02 +0300)
committerAdrien Bustany <adrien.bustany@nokia.com>
Mon, 18 Oct 2010 05:42:11 +0000 (08:42 +0300)
commit1c4292d14c0b82e82b34cd621b3ef7cd8eb97f1b
tree4900f418702d9b2511d7e86aff58a8af6751224d
parent188211973972c16451e1a3d5f1132052a6c4bd74
Fixes: Cannot fetch avatars from IM accounts

Bug: NB#188038
RevBy: TrustMe
Details:

This commit alters the behaviour of QContact::details<QContactAvatar>() so that
it not only returns the nco:photo property, but also the avatar from the linked
nco:IMAddress. The avatars are returned with the nco:photo first, and then the
IM avatars sorted by availability of the account (most available first). The
avatars from IM account have the URI of their IM account stored in the linked
details (use linkedDetailUris() to retrieve it).
src/dao/contactdetailschema.cpp
src/engine/contactfetchrequest.cpp
src/engine/contactsaverequest.cpp
src/engine/contactsaverequest.h
src/engine/engine.cpp
src/engine/engine.h
src/lib/customdetails.cpp
src/lib/customdetails.h