API improvement suggestions

Ivan Čukić ivan.cukic at kde.org
Mon Aug 24 19:21:37 UTC 2015


Hi,

> There's a QIdentityProxyModel model in KTp that effectively

While that seems to be sufficient, it is KTp-specific.

It would be nice if I was also able to show if there are new e-mails
for a specific contact. (and the fact I'd like to have the same thing
from two different places that are supposed to be supported by KPeople
tells me it should be supported by KPeople :) )

It would be great if clients did not need to know of KTp nor Akonadi
do be able to do basic things. And I see this as a basic thing.
Naturally, if you don't, I'll just use KTp directly.

> I'm not sure that makes sense Most protocols allow you
> to message an offline

I know, but people (myself included) tend to miss out those messages
somehow (especially gchat ones) so I'm used to sending e-mails when I
see someone is offline.

Cheers,
Ivan


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



-- 
Cheerio,
Ivan

--
While you were hanging yourself on someone else's words
Dying to believe in what you heard
I was staring straight into the shining sun


More information about the KDE-Telepathy mailing list