Thermostat pour piloter jusqu'à 4 radiateurs avec fil pilote
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
802 B

  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. /*
  3. * Qt mutizone MQTT thermostat
  4. *
  5. * Copyright (C) 2019 Richard Genoud
  6. *
  7. */
  8. #ifndef MAINWINDOW_H
  9. #define MAINWINDOW_H
  10. #include <QMainWindow>
  11. #include <QPushButton>
  12. #include <QtWidgets>
  13. #include "mqttclient.h"
  14. #include "zoneitem.h"
  15. #include "backgroundloop.h"
  16. #define NB_ZONES 4
  17. class MainWindow : public QMainWindow
  18. {
  19. Q_OBJECT
  20. public:
  21. explicit MainWindow(QWidget *parent = NULL);
  22. ~MainWindow();
  23. MQTTSubcriber *mqttclient;
  24. private:
  25. BackgroundLoop m_backLoop;
  26. ZoneItem *m_zones[NB_ZONES];
  27. private slots:
  28. void temperature_slot(unsigned idx, double val);
  29. void hygro_slot(unsigned idx, double val);
  30. void availability_slot(unsigned idx, bool ok);
  31. };
  32. #endif // MAINWINDOW_H
  33. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */