![]() |
CopperSpice DBUS
1.7.4
|
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. 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 the CopperSpice signals and slots mechanism automatically emits the adaptor signal, too. This can be done in the adaptor's constructor, as shown in the DBus Adaptor Example.
The QDBusAbstractAdaptor::setAutoRelaySignals() method can also be used to add and remove 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.
broom check links