aa1a5e6689
The previous process had a problem: the device object didn't exist until after pairing was complete. But to pair we need some user interaction (press button on device) and thus the ability to send notifications from the device to the dbus client at the right time. This wasn't possible with the previous approach. The new approach: * renames Start/StopPairing to Start/StopSearch to indicate we're just searching, not pairing in the manager * creates a org.freedesktop.tuhi1.Device object when a suitable device is found. That object is not in Manager.Devices, it's "hidden" unless you know the object path. * Sends a PairableDevice signal with the new device's object path * Requires the client to call Pair() on the device * If the timeout expires without pairing, the device is removed again |
||
---|---|---|
.. | ||
__init__.py | ||
ble.py | ||
dbusserver.py | ||
wacom.py |