[Bug 27269] review and clean up TplContact public API

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 15 18:49:36 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=27269

--- Comment #18 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-06-15 09:49:36 PDT ---
(In reply to comment #17)
> I renamed TplContact to TplEntity:
> http://git.collabora.co.uk/?p=user/cassidy/telepathy-logger;a=shortlog;h=refs/heads/entity

Looks good, but I'd like a couple more changes:

> +  tpl_entity_sender = _tpl_entity_from_tp_contact (me);
> +  _tpl_entity_set_entity_type (tpl_entity_sender, TPL_ENTITY_USER);

Pre-existing bug: in both on_received_signal_cb and on_sent_signal_cb,
shouldn't the entity created from @me be of type TPL_ENTITY_SELF?

>    /* contact is a user (buddy) */
> -  TPL_CONTACT_USER,
> +  TPL_ENTITY_USER,

Now that the word "contact" isn't in the API, I think TPL_ENTITY_USER should be
renamed to TPL_ENTITY_CONTACT. Remote contacts aren't necessarily users of our
software, whereas the local user is: so in telepathy-spec we frequently say
"the local user" to mean the equivalent of TPL_ENTITY_SELF, and "the remote
contact" to mean the equivalent of TPL_ENTITY_USER.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list