mvidner / ruby-dbus

A Ruby binding for DBus
GNU Lesser General Public License v2.1
170 stars 48 forks source link

Service side emits_changed_signal, affecting PropertiesChanged #117

Closed mvidner closed 2 years ago

mvidner commented 2 years ago

At the service side, allow declaring that PropertiesChanged will send only the property name (:invalidates) or that the signal will not be emitted at all, either because the property is a constant (:const) or for another reason (false). If true it sends the signal with the property value.

See also the description of the org.freedesktop.DBus.Property.EmitsChangedSignal annotation at https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format

(A classic case of yak shaving: to fix #115 it will be necessary to add/change some API around service side properties, and it does not make sense to do it while EmitsChangedSIgnal is not clear.)

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.1%) to 93.665% when pulling b110792fcf1f8aabd9c279f88e8c20bf1f338c2d on emits_changed_signal into 44dac02e4d533f74eb415a4f7026f70ec35df769 on master.