/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * @attention * * Copyright (c) 2018 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */#ifndefMODEL_HPP#defineMODEL_HPPclassModelListener;#include<gui/model/Time.hpp>#include<gui/model/RoomTemperatureInfo.hpp>classModel{public:Model();/** * Sets the modelListener to point to the currently active presenter. Called automatically * when switching screen. *//* ... */voidbind(ModelListener*listener){modelListener=listener;}{ ... }voidtick();uint8_tgetNumberOfRooms();RoomTemperatureInfo&getRoomTemperatureInfo(uint8_troomIndex);RoomTemperatureInfo&getRoomTemperatureInfoById(uint8_troomId);voidsetSelectedRoom(uint8_troomId);uint8_tgetSelectedRoom();voidsetRoomTemperature(int16_ttemperature);boolgetMCULoadActive()const{returnmcuLoadActive;...}voidsetMCULoadActive(boolactive){mcuLoadActive=active;}{ ... }public:protected:/** * Pointer to the currently active presenter. *//* ... */ModelListener*modelListener;boolmcuLoadActive;TimecurrentTime;RoomTemperatureInforoomTemperatureInfo[10];uint8_tnumberOfRooms;uint8_tselectedRoom;protected:...};/* ... */#endif/* MODEL_HPP */