// SPDX-License-Identifier: GPL-3.0-or-later /* * Qt mutizone MQTT thermostat * * Copyright (C) 2019 Richard Genoud * */ #ifndef SETTINGS_H #define SETTINGS_H #include #include #define MAX_NB_ZONES 4 struct Heater { QString ctrl_topic; }; struct Room { QString name; QString sensor_topic; QString availability_topic; QVector heaters; }; class Settings : public QSettings { Q_OBJECT public: static Settings *getInstance(void); int nbZones(); QVector m_rooms; private: Settings(); ~Settings(); static Settings *_singleton; }; #endif // SETTINGS_H /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */