1#ifndef H_EXTENSIONS_CUTEHMI_SERVICES_3_INCLUDE_CUTEHMI_SERVICES_SERVICEABLE_HPP
2#define H_EXTENSIONS_CUTEHMI_SERVICES_3_INCLUDE_CUTEHMI_SERVICES_SERVICEABLE_HPP
4#include "internal/common.hpp"
8#include <QSignalTransition>
Serviceable interface.
Definition: Serviceable.hpp:33
virtual void configureEvacuating(QState *evacuating, AssignStatusFunction assignStatus)=0
Configure evacuating state.
virtual std::unique_ptr< QAbstractTransition > transitionToYielding() const =0
Transition to yielding state.
virtual void configureBroken(QState *broken, AssignStatusFunction assignStatus)=0
Configure broken state.
virtual void configureStopping(QState *stopping, AssignStatusFunction assignStatus)=0
Configure stopping state.
virtual ~Serviceable()=default
virtual std::unique_ptr< QAbstractTransition > transitionToIdling() const =0
Transition to idling state.
std::function< void(QState &state, const QString &status)> AssignStatusFunction
Definition: Serviceable.hpp:35
virtual std::unique_ptr< QAbstractTransition > transitionToBroken() const =0
Transition to broken state.
virtual void configureStarting(QState *starting, AssignStatusFunction assignStatus)=0
Configure starting state.
virtual std::unique_ptr< QAbstractTransition > transitionToStopped() const =0
Transition to stopped state.
Serviceable(const Serviceable &other)=default
virtual void configureStarted(QState *active, const QState *idling, const QState *yielding, AssignStatusFunction assignStatus)=0
Configure started state.
virtual void configureRepairing(QState *repairing, AssignStatusFunction assignStatus)=0
Configure repairing state.
virtual std::unique_ptr< QAbstractTransition > transitionToStarted() const =0
Transition to started state.