Select one of the symbols to view example projects that use it.
 
Outline
#define MODEL_HPP
ModelListener
#include <gui/model/Time.hpp>
#include <gui/model/RoomTemperatureInfo.hpp>
Model
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/gui/include/gui/model/Model.hpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * 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. * ****************************************************************************** *//* ... */ #ifndef MODEL_HPP #define MODEL_HPP class ModelListener; #include <gui/model/Time.hpp> #include <gui/model/RoomTemperatureInfo.hpp> class Model { public: Model(); /** * Sets the modelListener to point to the currently active presenter. Called automatically * when switching screen. *//* ... */ void bind(ModelListener* listener) { modelListener = listener; }{ ... } void tick(); uint8_t getNumberOfRooms(); RoomTemperatureInfo& getRoomTemperatureInfo(uint8_t roomIndex); RoomTemperatureInfo& getRoomTemperatureInfoById(uint8_t roomId); void setSelectedRoom(uint8_t roomId); uint8_t getSelectedRoom(); void setRoomTemperature(int16_t temperature); bool getMCULoadActive() const { return mcuLoadActive; ...} void setMCULoadActive(bool active) { mcuLoadActive = active; }{ ... } public:protected: /** * Pointer to the currently active presenter. *//* ... */ ModelListener* modelListener; bool mcuLoadActive; Time currentTime; RoomTemperatureInfo roomTemperatureInfo[10]; uint8_t numberOfRooms; uint8_t selectedRoom;protected: ...}; /* ... */ #endif /* MODEL_HPP */