#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include #include "../oven_control/all_share.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; QUdpSocket *sock; oven_control_t control; oven_state_t state; private slots: void readPendingDatagrams(); void processDatagram(QByteArray &datagram); void processControl(oven_control_t *control); void processState(oven_state_t *state); void updateControl(oven_control_t *control); void updateState(oven_state_t *state); }; #endif // MAINWINDOW_H