Bug 43722 - High level bindings for o.f.T.Debug
Summary: High level bindings for o.f.T.Debug
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-qt (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://cgit.collabora.com/git/user/gk...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 10:49 UTC by George Kiagiadakis
Modified: 2012-07-03 02:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description George Kiagiadakis 2011-12-11 10:49:24 UTC
Hi,

I started playing a bit with the o.f.T.Debug interface, wanting to implement a log viewer for tp-kde. So, I added low level generated bindings and a high level class called "DebugReceiver" (to match the TpDebugSender of tp-glib, which is the server-side), together with the helper "PendingDebugMessageList" to carry the return value of the "GetMessages" method.

The implementation is far from perfect, but I submit it here for discussion. I think the spec is problematic because there is no way of tracking the "Enabled" property (so you cannot reliably cache it) and also there is no reference-counting on "Enabled", so if I set it to false in my program, any other possible log viewer that is running at that time will malfunction. I went for the option of not exporting "Enabled" at all to the user and use a Feature instead to enable it. The problem with this is that I cannot set it back to false later, so all the services will continue to have the overhead of emitting debug messages on the bus after my log viewer closes. Ideas welcome.

Branch at: http://cgit.collabora.com/git/user/gkiagia/telepathy-qt4.git/log/?h=debug-receiver
Comment 1 George Kiagiadakis 2012-07-03 02:50:44 UTC
Merged in master


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.