Declaring Slots in D-Bus Adaptors The Qt D-Bus Type System
Any signal in a class derived from QDBusAbstractAdaptor will be automatically relayed into D-Bus, provided that the signal's parameters conform to certain rules (see The Qt D-Bus Type System for more information). No special code is necessary to make this relay.
However, signals must still be emitted. The easiest way to emit an adaptor signal is to connect another signal to it, so that Qt's signals and slots mechanism automatically emits the adaptor signal, too. This can be done in the adaptor's constructor, as you can see in the D-Bus Complex Ping Pong Example.
The QDBusAbstractAdaptor::setAutoRelaySignals() convenience function can also be used to make and break connections between signals in the real object and the corresponding signals in the adaptor. It will inspect the list of signals in both classes and connect those whose parameters match exactly.
See also Using Qt D-Bus Adaptors, Declaring Slots in D-Bus Adaptors, The Qt D-Bus Type System, and QDBusAbstractAdaptor.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: