Skip to content

(core): allow to use start/stop slots in XML configurations

Description

The AppConfigManager has been modified to support the connection of start and stop slots. A service started by the trigger of a signal will be automatically stopped.

<connect>
    <signal>service1/computed</signal>
    <slot>service2/start</slot>
</connect>

<connect>
    <signal>service1/failed</signal>
    <slot>service2/stop</slot>
</connect>

This deprecates the service SStarter that was used as an alternative.

Other changes

This rework is part of a wider task &13 (closed). We use the opportunity to deprecate SSignal, which should have been done previously.

Closes #1118 (closed)

How to test it?

  • Unit-tests should cover the change
  • Test ported apps: Tuto04, Tuto14, SightViewer (Pacs import)
Edited by Flavien BRIDAULT

Merge request reports