Review Request: Set correct protocol icon for accounts in dataengine

Olli Salli olli.salli at collabora.co.uk
Tue Jun 7 14:23:24 CEST 2011



> On June 7, 2011, 11:57 a.m., David Edmundson wrote:
> > When can a user change the account icon?
> > 
> > Code is fine, I just don't understand where you need it.
> 
> Francesco Nwokeka wrote:
>     Don't know. Oggis talked to me about it today and said that a user can be able to set custom account icons.

There is a change notification signal in the API: not connecting to it means that if the icon has changed, you'll update to the new icon once you repopulate the model for some reason; connecting to it means you'll update to it as soon as it has been changed.


> On June 7, 2011, 11:57 a.m., David Edmundson wrote:
> > presencesource.cpp, line 90
> > <http://git.reviewboard.kde.org/r/101531/diff/1/?file=24027#file24027line90>
> >
> >     sure you don't want m_account->profile()->iconName()
> 
> Francesco Nwokeka wrote:
>     Aren't they the same thing?

The account icon name uses in decreasing order of preference 1) any custom icon an user has set for the account, from kde-telepathy (which afaik doesn't support it) or otherwise (other telepathy clients) 2) the profile icon, if enabled and found 3) the protocol info icon, if enabled and found 4) im-<protocolname>

Profile::iconName() is just 2 of these, with no fallbacks to the others nor a provision to use an icon explicitly set by an user for the account.


- Olli


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101531/#review3738
-----------------------------------------------------------


On June 7, 2011, 9:11 a.m., Francesco Nwokeka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101531/
> -----------------------------------------------------------
> 
> (Updated June 7, 2011, 9:11 a.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> This patch sets the correct protocol icon for accounts.
> The protocol icon has been connected to a slot that updates the icon name in case the user changes it (suggested by oggis)
> 
> 
> Diffs
> -----
> 
>   presencesource.h 9706746 
>   presencesource.cpp e6f9ca3 
> 
> Diff: http://git.reviewboard.kde.org/r/101531/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Francesco
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110607/4b21eaff/attachment.htm 


More information about the KDE-Telepathy mailing list