[Bug 59024] Think about a more introspectable way of doing mixins

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 9 13:47:37 PDT 2014


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

--- Comment #12 from Xavier Claessens <xclaesse at gmail.com> ---
Now that we ported tp-glib to GDBus, it became possible[1] to implement dbus
interfaces using gdbus-codegen skeletons. That means that TpPresenceMixin can
be just like TpBaseContactList[2]: a standalone GObject.

TpPresenceMixin could be turned into an abstract GObject that takes a
TpBaseConnection as construct-only property. It will then create the
gdbus-codegen' skeleton, implement all its stuff, and simply call
tp_dbus_object_add_skeleton(base_connection, presence_skeleton);

We only have 3 mixins, How Hard Can It Be?™

[1] With few extra patches, still unmerged at time of writing:
http://cgit.collabora.com/git/user/xclaesse/telepathy-glib.git/log/?h=gdbus-custom-skeletons

[2] With few extra patches, still unmerged at time of writing: 
http://cgit.collabora.com/git/user/xclaesse/telepathy-glib.git/log/?h=gdbus-contactlist

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list