realtimesensorwindow.h 987 Bytes
#ifndef REALTIMESENSORWINDOW_H
#define REALTIMESENSORWINDOW_H

#include <QMainWindow>
#include <qlabel.h>
#include "servicedatas.h"

#define REALSENSOR_CONTROL_LIST_COL_MAX    4
#define REALSENSOR_CONTROL_LIST_ITEM_MAX   9

namespace Ui {
class realtimeSensorWindow;
}

class realtimeSensorWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit realtimeSensorWindow(QWidget *parent = 0);
    ~realtimeSensorWindow();

private slots:
    void on_backButton_clicked();

private:
    const uint16_t m_arrSensorItemIdxs[REALSENSOR_CONTROL_LIST_ITEM_MAX]={
        0,1,4,5,6,7,8,12,13
    };
    const uint16_t m_arrCriticalValue[REALSENSOR_CONTROL_LIST_ITEM_MAX] = {
        320,120,270,300,300,300,300,80,80
    };

    Ui::realtimeSensorWindow *ui;
    QLabel *m_arrLbState[REALSENSOR_CONTROL_LIST_COL_MAX][REALSENSOR_CONTROL_LIST_ITEM_MAX];
    sensor_log_item* m_arrSensorItems[REALSENSOR_CONTROL_LIST_ITEM_MAX];


    void reloadUi(void);
};

#endif // REALTIMESENSORWINDOW_H