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
775 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 <QObject>
  11. #include <QLabel>
  12. #include "boost_dlg.h"
  13. class ZoneItem : public QLabel
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit ZoneItem(const QString &zoneName, QWidget *parent = Q_NULLPTR,
  18. Qt::WindowFlags f = Qt::WindowFlags());
  19. ~ZoneItem();
  20. void refresh(void);
  21. double m_temperature_value;
  22. double m_hygro_value;
  23. double m_target_temperature;
  24. bool m_available;
  25. bool m_heating_on;
  26. QString m_name;
  27. struct boost_data m_boost;
  28. signals:
  29. void clicked();
  30. protected:
  31. void mouseReleaseEvent(QMouseEvent* event);
  32. };
  33. #endif // ZONEITEM_H
  34. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */