Allow marking/unmarking devices as lost.

This commit is contained in:
Vibhav Pant
2023-09-08 16:48:00 +05:30
parent d0c6f5fc26
commit e295e2eca2
4 changed files with 63 additions and 10 deletions
@@ -28,7 +28,8 @@ namespace linux {
BluetoothDevice::BluetoothDevice(sdbus::IConnection &system_bus,
sdbus::ObjectPath device_object_path)
: ProxyInterfaces(system_bus, bluez::SERVICE_DEST,
std::move(device_object_path)) {
std::move(device_object_path)),
lost_(false) {
registerProxy();
try {
last_known_name_ = Alias();