<div dir="ltr"><br><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 7:38 PM, Ivan Čukić <span dir="ltr"><<a href="mailto:ivan.cukic@kde.org" target="_blank">ivan.cukic@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
As you might have noticed, KPeople is being used in yet another<br>
'read-only' client.<br>
<br>
The things that I think would be beneficial to add (I might have<br>
missed something) to the API of PersonData:<br>
<br>
1. presence method that returns enum Online/... (what is the current<br>
QString presence() const; meant to return? it returns empty strings<br>
for me)<br>
<br>
2. unread message count (either per-account, or just a sum, or just a<br>
notification that there are unread messages from that person)><br></blockquote><div> <br>There's a QIdentityProxyModel model in KTp that effectively does this.<br>see TextChannelWatcherProxyModel.<br><br></div>I'd rather keep it here as it's quite app specific.<br></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
3. (not that important) default contact action - chat if online, mail if offline</blockquote><div> </div><div>I'm not sure that makes sense Most protocols allow you to message an offline person<br></div><div>and Tp has API to connect you if you try to message someone whilst you're offline.<br></div><div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If needed, I can write use-cases as well.<br>
<br>
Cheerio,<br>
Ivan<br>
<br>
--<br>
While you were hanging yourself on someone else's words<br>
Dying to believe in what you heard<br>
I was staring straight into the shining sun<br>
_______________________________________________<br>
KDE-Telepathy mailing list<br>
<a href="mailto:KDE-Telepathy@kde.org">KDE-Telepathy@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-telepathy" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kde-telepathy</a><br>
</blockquote></div><br></div></div>