Closed OlegAndreych closed 3 years ago
I added methods to remove signal handlers.
But you can already do that without these methods by calling deviceManager.getDBusConnection().removeSigHandler(class, handler)
But you can already do that without these methods by calling deviceManager.getDBusConnection().removeSigHandler(class, handler)
Thanks for the methods and the idea.
I have a case when the need for subscriptions for different properties comes and goes.
As a workaround, I can have a generic subscription, which will delegate to specific handlers, relieving one from the need to register handlers in the
DeviceManager
. But having only handlers with a lifecycle tied to the objects representing devices seems more natural.As far as I can see, underlying org.freedesktop.dbus.connections.impl.DBusConnection already has corresponding methods.