1#ifndef H_EXTENSIONS_CUTEHMI_DATAACQUISITION_1_INCLUDE_CUTEHMI_DATAACQUISITION_ABSTRACTLISTMODEL_HPP
2#define H_EXTENSIONS_CUTEHMI_DATAACQUISITION_1_INCLUDE_CUTEHMI_DATAACQUISITION_ABSTRACTLISTMODEL_HPP
4#include "internal/common.hpp"
5#include "internal/DbServiceableMixin.hpp"
8#include <cutehmi/services/Serviceable.hpp>
10#include <QAbstractListModel>
13namespace dataacquisition {
22 QML_UNCREATABLE(
"AbstractListModel is an abstract class")
27 static constexpr int INITIAL_INTERVAL = 1000;
32 Q_PROPERTY(
bool busy READ busy NOTIFY busyChanged)
40 Q_PROPERTY(
int interval READ interval WRITE setInterval NOTIFY intervalChanged)
46 virtual bool busy()
const = 0;
50 void setInterval(
int interval);
54 void setSchema(
Schema * schema);
110 void onSchemaValidated(
bool result);
112 void startUpdateTimer();
114 void stopUpdateTimer();
126 interval(INITIAL_INTERVAL)
Definition: AbstractListModel.hpp:19
virtual void requestUpdate()=0
Q_SIGNAL void updateTimerStarted()
virtual void confirmUpdateFinished()=0
Q_SIGNAL void updateTimerStopped()
Q_SIGNAL void updateFinished()
virtual bool busy() const =0
Q_SIGNAL void schemaValidated()
Q_SIGNAL void databaseConnected()
Database schema.
Definition: Schema.hpp:18
Definition: DbServiceableMixin.hpp:17