~cyphermox/+junk/wip-bt

Viewing all changes in revision 126.

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2014-07-04 13:45:55 UTC
  • Revision ID: mathieu-tl@ubuntu.com-20140704134555-4ei8z6z6xx3nc6j9
Don't call BlueZ's CreateDevice as remote bluetooth devices are discovered, as
that will make them always show in ListDevices, and thus will pollute the list
with devices that could no longer be in range.

Instead, create a partial Device object with the properties we receive from
the DeviceFound signal without hooking up the DBus interfaces (which we don't
have yet anyway), that can be done later when the device is actually created
when pairing, and the Device can finish initialization when we receive the
DeviceCreated signal, which carries the DBus object path we need to connect
to the device's interfaces and signals.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: