1 #ifndef H_EXTENSIONS_CUTEHMI_DATAACQUISITION_0_INCLUDE_CUTEHMI_DATAACQUISITION_EVENTMODEL_HPP
2 #define H_EXTENSIONS_CUTEHMI_DATAACQUISITION_0_INCLUDE_CUTEHMI_DATAACQUISITION_EVENTMODEL_HPP
4 #include "internal/common.hpp"
6 #include "AbstractListModel.hpp"
7 #include "internal/EventCollective.hpp"
8 #include "internal/ModelMixin.hpp"
11 namespace dataacquisition {
25 TAG_ROLE = Qt::UserRole,
30 Q_PROPERTY(
QStringList tags READ tags WRITE setTags NOTIFY tagsChanged)
32 Q_PROPERTY(
QDateTime begin READ begin NOTIFY beginChanged)
34 Q_PROPERTY(
QDateTime end READ end NOTIFY endChanged)
36 Q_PROPERTY(
QDateTime from READ from WRITE setFrom NOTIFY fromChanged)
38 Q_PROPERTY(
QDateTime to READ to WRITE setTo NOTIFY toChanged)
58 bool busy() const override;
78 void requestUpdate() override;
81 void confirmUpdateFinished() override;
89 void onSchemaChanged();
91 void onSelected(internal::EventCollective::ColumnValues columnValues,
QDateTime minTime,
QDateTime maxTime);