Loading...
Searching...
No Matches
ModelConsistency.hpp
1#pragma once
2#include <QObject>
3
4#include <score_plugin_scenario_export.h>
5
6#include <verdigris>
7
8namespace Scenario
9{
10class SCORE_PLUGIN_SCENARIO_EXPORT ModelConsistency final : public QObject
11{
12 W_OBJECT(ModelConsistency)
13public:
14 explicit ModelConsistency(QObject* parent);
16 ModelConsistency& operator=(const ModelConsistency& other);
17
18 bool isValid() const;
19 bool warning() const;
20
21 void setValid(bool arg);
22 void setWarning(bool warning);
23
24public:
25 void validChanged(bool arg) E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, validChanged, arg)
26 void warningChanged(bool warning)
27 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, warningChanged, warning)
28
29 W_PROPERTY(bool, warning READ warning WRITE setWarning NOTIFY warningChanged)
30 W_PROPERTY(bool, valid READ isValid WRITE setValid NOTIFY validChanged)
31
32private:
33 bool m_valid{true};
34 bool m_warning{false};
35};
36}
Definition ModelConsistency.hpp:11
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13