Review Request: Use type instead of status to identify the current presence.
Paolo Capriotti
p.capriotti at gmail.com
Mon Jul 18 20:09:59 CEST 2011
> On July 17, 2011, 9:26 p.m., David Edmundson wrote:
> > I can see why you did it, however I'm not sure it's overall right.
> >
> > Telepathy presence is very confusing, here's a bad attempt at an explanation:
> >
> > - there are lots of status's defined by "status", this is a string identifier. It will be values such as "away" "dnd", "online".
> >
> > - because we're dealing with strings telepathy provides a fallback solution as a smaller fixed set of statuses as a simple enum. This is to be used if you don't understand the status.
> >
> > All presence stuff /should/ (but probably don't) be switching on the string (status), then falling back to using the enum value (type)
>
> George Goldberg wrote:
> David is spot on with that explanation :)
Yes, I had the wrong idea about what status and type were. After reading the telepathy spec, it makes sense now.
See http://git.reviewboard.kde.org/r/101992/ for a better patch to solve this problem.
- Paolo
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101984/#review4790
-----------------------------------------------------------
On July 17, 2011, 7:43 p.m., Paolo Capriotti wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101984/
> -----------------------------------------------------------
>
> (Updated July 17, 2011, 7:43 p.m.)
>
>
> Review request for Telepathy.
>
>
> Summary
> -------
>
> The presence status does not uniquely identify the current presence, so use type instead.
>
>
> Diffs
> -----
>
> account-button.cpp 2ccda54
>
> Diff: http://git.reviewboard.kde.org/r/101984/diff
>
>
> Testing
> -------
>
> Change presence in contact list, observe that the presence button's tooltip matches the action text for all actions.
>
>
> Thanks,
>
> Paolo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110718/9bb3a0b1/attachment.htm
More information about the KDE-Telepathy
mailing list