~unity-team/bamf/0.4

Viewing all changes in revision 426.

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-01-19 19:23:44 UTC
  • mfrom: (424.1.26 bamfdaemon-gdbus)
  • Revision ID: tarmac-20120119192344-17qtvtg18efzqmp6
Ported the BAMF daemon to GDBus, using gdbus-codegen to generate most of the low-level code.

The BamfMatcher and BamfControl are directly extending the generated skeleton class, while the Views are now extending the generated BamfDBusItemObjectSkeleton class, so it has been easily possible to transform each subclass into a kind of proxy to the generated skeleton interface. To reduce code redundancy for initializing signals, some view classes are also implementing the related skeleton interface, but this has been done only for convenience.

Then, I've added a BamfDaemon class to handle the daemon initialization and termination, and I've updated the tests against the new internal APIs.

Finally, I've also ported all the code for indicators and tabs, while I guess that this is now quite obsolete (the indicator part shouldn't totally, but the tabs really are), so maybe it could safely be removed.

I also want to make clear that the public DBus API interface has not been touched by this porting, so the new bamfdaemon can safely replace the old one (in fact I'm using it on my PC for some days with no crashes or unexpected behavior).

The port of libbamf will begin soon as well, and doing that maybe we should refine also the DBus interface.

PS: of course I've also included some random code fixes and cleanup.. Fixes: https://bugs.launchpad.net/bugs/697148. Appoved by Jason Smith.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: