Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Ticket #2 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

Rely on introspection rather than hardcoding the interface

Reported by: mickey Owned by: mickey
Priority: major Milestone: milestone3
Component: framework/controller Version:
Keywords: org.freesmartphone.Device.List Cc:

Description

To implement org.freesmartphone.Device.List we rely on <object>.interface. This is wrong for two reasons:

  • An object can have more than just one interface
  • Double bookkeeping is evil

Solution: Use the built-in dbus introspection interface of objects. Downside: Will require an additional dbus roundtrip, but I gather List'ing objects will only occur seldomly (once on startup).

Change History

comment:1 Changed 5 years ago by mickey

  • Milestone changed from milestone2 to milestone3

comment:2 Changed 5 years ago by mickey

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.