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.

40 lines
697 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 ZONEITEM_H
  9. #define ZONEITEM_H
  10. #include <QWidget>
  11. #include <QObject>
  12. #include <QLabel>
  13. #include <QPushButton>
  14. class ZoneItem : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit ZoneItem(const QString &zoneName, QWidget *parent = Q_NULLPTR);
  19. ~ZoneItem();
  20. void refresh(void);
  21. double m_temperature_value;
  22. double m_hygro_value;
  23. double m_target_temperature;
  24. bool m_heating_on;
  25. private:
  26. QPushButton m_zoneNameBtn;
  27. QPushButton m_temperatureBtn;
  28. QPushButton m_hygroBtn;
  29. };
  30. #endif // ZONEITEM_H
  31. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */