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.

48 lines
847 B

  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. /*
  3. * Qt mutizone MQTT thermostat
  4. *
  5. * Copyright (C) 2020 Richard Genoud
  6. *
  7. */
  8. #ifndef BOOSTDLG_H
  9. #define BOOSTDLG_H
  10. #include <QSpinBox>
  11. #include <QDoubleSpinBox>
  12. #include <QDialog>
  13. #include <QObject>
  14. #include <QDateTime>
  15. struct boost_data
  16. {
  17. double temperature;
  18. QDateTime end_date;
  19. };
  20. class BoostDlg : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. BoostDlg(int idx, const QString &zoneName, double temperature = 21,
  25. QWidget *parent = Q_NULLPTR,
  26. Qt::WindowFlags f = Qt::WindowFlags());
  27. ~BoostDlg();
  28. int m_idx; // room index
  29. private:
  30. QDoubleSpinBox m_boost_temperature;
  31. QSpinBox m_boost_duration;
  32. private slots:
  33. void send_result(void);
  34. signals:
  35. void boost_changed(int idx, struct boost_data &data);
  36. };
  37. #endif // BOOSTDLG_H
  38. /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */