Emits-Change flag on property #249
-
Hi all! Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a small section about the usage of DBus Standard Interfaces in the documentation: https://github.com/Kistler-Group/sdbus-cpp/blob/master/docs/using-sdbus-c%2B%2B.md#standard-d-bus-interfaces The short summary for properties interface is: In your adaptor implementation, you need to add the I hope that helps. |
Beta Was this translation helpful? Give feedback.
There is a small section about the usage of DBus Standard Interfaces in the documentation: https://github.com/Kistler-Group/sdbus-cpp/blob/master/docs/using-sdbus-c%2B%2B.md#standard-d-bus-interfaces
The short summary for properties interface is: In your adaptor implementation, you need to add the
sdbus::Properties_adaptor
to the template parameters ofsdbus::AdaptorInterfaces
. This adds theemitPropertiesChangedSignal
method to your adaptor that you can call to emit the signal on theorg.freedesktop.DBus.Properties
interface.I hope that helps.