Refactor dbus linked devices interface

Export a separate dbus object for each device
This commit is contained in:
AsamK committed 2021-10-02 18:04:30 +02:00
1 parent 1548ce9c79
commit 778adacb80
8 files changed
+157 -38

No files matched your search

@@ -117,7 +117,7 @@ public interface Manager extends Closeable {
List<Device> getLinkedDevices() throws IOException;
void removeLinkedDevices(int deviceId) throws IOException;
void removeLinkedDevices(long deviceId) throws IOException;
void addDeviceLink(URI linkUri) throws IOException, InvalidKeyException;
@@ -414,7 +414,7 @@ public class ManagerImpl implements Manager {
}
@Override
public void removeLinkedDevices(int deviceId) throws IOException {
public void removeLinkedDevices(long deviceId) throws IOException {
dependencies.getAccountManager().removeDevice(deviceId);
var devices = dependencies.getAccountManager().getDevices();
account.setMultiDevice(devices.size() > 1);