modify DBus SignalControl

remove listAccounts() from methods available to DBus clients, because it returns a list of "DBusPath" objects, which DBus itself cannot handle
add getObjectPath, because it is already implemented in DbusSignalControlImpl.java
This commit is contained in:
John Freed 2021-08-12 09:10:13 +02:00
parent 2e82a12bbf
commit f70507ca24
2 changed files with 2 additions and 3 deletions

View file

@ -26,9 +26,9 @@ public interface SignalControl extends DBusInterface {
String link(String newDeviceName) throws Error.Failure;
public String version();
String version();
List<DBusPath> listAccounts();
String getObjectPath();
interface Error {

View file

@ -150,7 +150,6 @@ public class DbusSignalControlImpl implements org.asamk.SignalControl {
return BaseConfig.PROJECT_VERSION;
}
@Override
public List<DBusPath> listAccounts() {
synchronized (receiveThreads) {
return receiveThreads.stream()