Review Request: Synchronize tp-integration-daemon with subscription/publication states and newly added contacts

George Goldberg grundleborg at googlemail.com
Tue Apr 13 13:18:10 CEST 2010



> On 2010-04-05 14:41:10, George Goldberg wrote:
> > /trunk/playground/network/telepathy-integration-daemon/telepathycontact.cpp, line 91
> > <http://reviewboard.kde.org/r/3468/diff/2/?file=22396#file22396line91>
> >
> >     m_contact->publishState() would do I think.
> >     
> >     Same applies to the two lines below.
> 
> Dario Freddi wrote:
>     Are we using this as "coding style"? Here I'm following the latest trend in Qt API, aka QWeakPointer, where operator-> is no longer defined and you explicitely have to access the pointer using .data(). I can switch back using -> though.

I hadn't thought of that - to be honest I don't think it matters, although I personally perfer the shorter version, and since TpQt4 doesn't use QWeakPointers in its API, this would do fine. I'll leave it up to you whether you care enough to change them ;)


> On 2010-04-05 14:41:10, George Goldberg wrote:
> > /trunk/playground/network/telepathy-integration-daemon/telepathycontact.cpp, line 325
> > <http://reviewboard.kde.org/r/3468/diff/2/?file=22396#file22396line325>
> >
> >     I'm not sure what the possibilities are here. Can you explain please?
> 
> Dario Freddi wrote:
>     Basically - do we want to record if the contact is no longer subscribed to us? Random example: in MSN, if a contact unsubscribes from you but still does not block you, you can see in your client (if it supports it, like KMess) "This contact has no longer you in his contact list".

That would be a nice feature.

Overall, I believe the possible things we can record are: 
- Is Contact Blocked?
- Can I see the Contacts Presence?
- Is the contact subscribed to me?
- What outstanding invitations are there?

That list is off the top of my head - it would be necessary to check with the spec (and probably #telepathy wizards) to find out exactly what stuff like this is supported, and whether yes/no is enough or if yes/no/unknown is needed (where e.g. protocol X doesn't support bool Y).


> On 2010-04-05 14:41:10, George Goldberg wrote:
> > /trunk/playground/network/telepathy-integration-daemon/telepathycontact.cpp, line 355
> > <http://reviewboard.kde.org/r/3468/diff/2/?file=22396#file22396line355>
> >
> >     Is there a bug report against Nepomuk for that? Or is it not as simple as that?
> 
> Dario Freddi wrote:
>     I don't know - I really wanted to check as usual if it was me doing something totally wrong or not.

Looks to me like it should work, so best to check with #nepomuk-kde people.


> On 2010-04-05 14:41:10, George Goldberg wrote:
> > /trunk/playground/network/telepathy-integration-daemon/telepathycontact.cpp, line 364
> > <http://reviewboard.kde.org/r/3468/diff/2/?file=22396#file22396line364>
> >
> >     Umm, I'm not sure, for now. Let's leave a FIXME there and figure out what to do later.
> >     
> >     It'll probably be some way for the UI to know the subscription state is ASK because it'll want to have some "resend subscription request" button.
> 
> Dario Freddi wrote:
>     Ok - in this case we probably also have to notify the UI about capabilities (are you able to cancel a subscription request, etc).

Yeah. Let's leave that for now, but file a bug report or make a note or something so this issue doesn't get forgotten·


- George


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


On 2010-04-05 22:38:42, Dario Freddi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3468/
> -----------------------------------------------------------
> 
> (Updated 2010-04-05 22:38:42)
> 
> 
> Review request for telepathy and George Goldberg.
> 
> 
> Summary
> -------
> 
> This patch makes tp-integration-daemon pick up the changes done at a subscription/publication level to telepathy contacts. Bottom line: now adding/removing contacts from tp-contactlist no longer screws up your nepomuk database.
> 
> Please note that tp-contactlist won't pick up changes in realtime: you have to restart it to see the effect. This is because tp-contactlist does not watch nepomuk resources for changes (my next target, after this patch and the other one will make it in)
> 
> 
> Diffs
> -----
> 
>   /trunk/playground/network/telepathy-integration-daemon/telepathy.trig 1111532 
>   /trunk/playground/network/telepathy-integration-daemon/telepathyaccount.h 1111532 
>   /trunk/playground/network/telepathy-integration-daemon/telepathyaccount.cpp 1111532 
>   /trunk/playground/network/telepathy-integration-daemon/telepathycontact.h 1111532 
>   /trunk/playground/network/telepathy-integration-daemon/telepathycontact.cpp 1111532 
> 
> Diff: http://reviewboard.kde.org/r/3468/diff
> 
> 
> Testing
> -------
> 
> Works, as shown in tp-contactlist.
> 
> 
> Thanks,
> 
> Dario
> 
>



More information about the KDE-Telepathy mailing list