1#ifndef H_EXTENSIONS_CUTEHMI_SERVICES_3_INCLUDE_CUTEHMI_SERVICES_SELFSERVICE_HPP
2#define H_EXTENSIONS_CUTEHMI_SERVICES_3_INCLUDE_CUTEHMI_SERVICES_SELFSERVICE_HPP
4#include "internal/common.hpp"
6#include "AbstractService.hpp"
7#include "Serviceable.hpp"
38 Q_PROPERTY(
QAbstractState * startingState READ startingState WRITE setStartingState NOTIFY startingStateChanged)
40 Q_PROPERTY(
QAbstractState * activeState READ activeState WRITE setActiveState NOTIFY activeStateChanged)
42 Q_PROPERTY(
QAbstractState * stoppingState READ stoppingState WRITE setStoppingState NOTIFY stoppingStateChanged)
44 Q_PROPERTY(
QAbstractState * brokenState READ brokenState WRITE setBrokenState NOTIFY brokenStateChanged)
46 Q_PROPERTY(
QAbstractState * repairingState READ repairingState WRITE setRepairingState NOTIFY repairingStateChanged)
48 Q_PROPERTY(
QAbstractState * evacuatingState READ evacuatingState WRITE setEvacuatingState NOTIFY evacuatingStateChanged)
50 Q_PROPERTY(
QJSValue signalToStarted READ signalToStarted WRITE setSignalToStarted NOTIFY signalToStartedChanged)
52 Q_PROPERTY(
QJSValue signalToStopped READ signalToStopped WRITE setSignalToStopped NOTIFY signalToStoppedChanged)
54 Q_PROPERTY(
QJSValue signalToBroken READ signalToBroken WRITE setSignalToBroken NOTIFY signalToBrokenChanged)
56 Q_PROPERTY(
QJSValue signalToIdling READ signalToIdling WRITE setSignalToIdling NOTIFY signalToIdlingChanged)
58 Q_PROPERTY(
QJSValue signalToYielding READ signalToYielding WRITE setSignalToYielding NOTIFY signalToYieldingChanged)
92 void setSignalToStarted(
const QJSValue & signal);
96 void setSignalToStopped(
const QJSValue & signal);
100 void setSignalToBroken(
const QJSValue & signal);
104 void setSignalToIdling(
const QJSValue & signal);
108 void setSignalToYielding(
const QJSValue & signal);
132 void classBegin()
override;
134 void componentComplete()
override;
160 static const char * DSM_IMPORT_STATEMENT;
162 static QString & DefaultStatus();
187 QJSValue helperSignalTransitionJSValue()
const;
191 void configureStateInterface();
221 mutable QJSValue helperSignalTransitionJSValue;
Abstract service.
Definition: AbstractService.hpp:49
Definition: SelfServiceAttachedType.hpp:14
Self service.
Definition: SelfService.hpp:31
void stoppingStateChanged()
void activeStateChanged()
void signalToBrokenChanged()
void evacuatingStateChanged()
void repairingStateChanged()
void signalToStoppedChanged()
void brokenStateChanged()
void signalToIdlingChanged()
void signalToYieldingChanged()
void signalToStartedChanged()
void startingStateChanged()
Serviceable interface.
Definition: Serviceable.hpp:33
Definition: ServiceStateInterface.hpp:24
Service state machine.
Definition: ServiceStateMachine.hpp:24