#ifndef TB_MESURES_H
#define TB_MESURES_H

#include <QAbstractSeries>
#include <QAbstractTableModel>
#include <QDateTime>
#include <QDebug>
#include <QSqlTableModel>
#include <QString>
#include <QVector>


#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
    QT_CHARTS_USE_NAMESPACE
#endif

//==============================================================
class TbMesuresModel : public QObject
{
    Q_OBJECT

public:
    TbMesuresModel();

    Q_INVOKABLE QStringList maj_data(QAbstractSeries *serie, QString table, quint32 id, quint32 id_variable, QDateTime date_debut, QDateTime date_fin, quint32 regroupement_donnees, qreal coeff_valeur_unite, qreal fuseau, quint8 type_unite, quint32 unite);
    Q_INVOKABLE void copie_series(QAbstractSeries *serie_source, QAbstractSeries *serie_destination);

};

#endif

