hypfvieh / dbus-java

Improved version of java DBus library provided by freedesktop.org (https://dbus.freedesktop.org/doc/dbus-java/)
https://hypfvieh.github.io/dbus-java/
MIT License
185 stars 73 forks source link

Send/Recieve arbitrary signals #40

Closed rm5248 closed 5 years ago

rm5248 commented 5 years ago

This adds the ability to both send and recieve arbitrary signals on the bus. To recieve an arbitrary signal, you must implement DBusSigHandler(as normal), but the generic type is just DBusSignal. This adds two new methods to help accomplish this on AbstractConnection: addGenericHandler and removeGenericHandler. The new methods are required in order for the code that will normally create a new subclass of DBusSignal, which for arbitrary signals we can't have.

rm5248 commented 5 years ago

Proposed fix for issue #39