Bug 43722

Summary: High level bindings for o.f.T.Debug
Product: Telepathy Reporter: George Kiagiadakis <gkiagia>
Component: tp-qtAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: git master   
Hardware: Other   
OS: All   
URL: http://cgit.collabora.com/git/user/gkiagia/telepathy-qt4.git/log/?h=debug-receiver
Whiteboard:
i915 platform: i915 features:

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.