-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtablemgr.h
34 lines (28 loc) · 999 Bytes
/
tablemgr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef TABLEMGR_H
#define TABLEMGR_H
#include "defines.h"
#include <QVector>
#include <QTableView>
#include <QDateTime>
#include <QString>
#include <QStandardItem>
#include <QStandardItemModel>
#include "input/sensormanager.h"
#include "input/sensorvalue.h"
class TableMgr
{
public:
TableMgr (QVector<QTableView*>* tab_historique, SensorManager* sensormgr_i);
void addData (SensorValue *valeur,int index,QTime start, QTime end);
void actualisay (QVector<QVector<Data> > data);
void requestActualization (QDateTime start, QDateTime end);
protected:
void update (int capteur);
bool lineFull (int capteur);
private:
QVector<QTableView*>* m_tab_historique;
QVector<QVector<QString> > line;
QVector<QVector<QString> > bef_line;
SensorManager* sensormgr;
};
#endif // TABLEMGR_H