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.

43 lines
796 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 set_temperature_value(double val);
  21. void set_target_temperature(double val);
  22. void set_hygro_value(double val);
  23. private:
  24. QPushButton m_zoneNameBtn;
  25. QPushButton m_temperatureBtn;
  26. QPushButton m_hygroBtn;
  27. void refresh(void);
  28. double m_temperature_value;
  29. double m_hygro_value;
  30. double m_target_temperature;
  31. };
  32. #endif // ZONEITEM_H
  33. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */